Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: src/plugin/PluginClientBase.h

Issue 10955040: Fix domain whitelisting and remove unused code (Closed)
Patch Set: Addressed all issues Created June 25, 2013, 2:19 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
OLDNEW
1 #ifndef _PLUGIN_CLIENT_BASE_H_ 1 #ifndef _PLUGIN_CLIENT_BASE_H_
2 #define _PLUGIN_CLIENT_BASE_H_ 2 #define _PLUGIN_CLIENT_BASE_H_
3 3
4 4
5 #include "PluginTypedef.h" 5 #include "PluginTypedef.h"
6 6
7 7
8 class CPluginClientFactory; 8 class CPluginClientFactory;
9 9
10 10
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 CPluginClientBase(); 60 CPluginClientBase();
61 61
62 static CComAutoCriticalSection s_criticalSectionLocal; 62 static CComAutoCriticalSection s_criticalSectionLocal;
63 63
64 public: 64 public:
65 65
66 ~CPluginClientBase(); 66 ~CPluginClientBase();
67 67
68 static void SetLocalization(); 68 static void SetLocalization();
69 69
70 #ifdef SUPPORT_WHITELIST
71 bool IsUrlWhiteListed(const CString& url);
72 #endif // SUPPORT_WHITELIST
73
74 static bool IsValidDomain(const CString& domain); 70 static bool IsValidDomain(const CString& domain);
75 static CString ExtractDomain(const CString& url);
76 static CString& UnescapeUrl(CString& url); 71 static CString& UnescapeUrl(CString& url);
77 72
78 static void LogPluginError(DWORD errorCode, int errorId, int errorSubid, const CString& description="", bool isAsync=false, DWORD dwProcessId=0, DWORD dwThrea dId=0); 73 static void LogPluginError(DWORD errorCode, int errorId, int errorSubid, const CString& description="", bool isAsync=false, DWORD dwProcessId=0, DWORD dwThrea dId=0);
79 74
80 static void PostPluginError(int errorId, int errorSubid, DWORD errorCode, cons t CString& errorDescription); 75 static void PostPluginError(int errorId, int errorSubid, DWORD errorCode, cons t CString& errorDescription);
81 static bool PopFirstPluginError(CPluginError& pluginError); 76 static bool PopFirstPluginError(CPluginError& pluginError);
82 }; 77 };
83 78
84 79
85 #endif // _PLUGIN_CLIENT_BASE_H_ 80 #endif // _PLUGIN_CLIENT_BASE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld