OLD | NEW |
1 #ifndef _ADBLOCK_PLUS_CLIENT_H_ | 1 #ifndef _ADBLOCK_PLUS_CLIENT_H_ |
2 #define _ADBLOCK_PLUS_CLIENT_H_ | 2 #define _ADBLOCK_PLUS_CLIENT_H_ |
3 | 3 |
4 | 4 |
5 #include "PluginTypedef.h" | 5 #include "PluginTypedef.h" |
6 #include "PluginClientBase.h" | 6 #include "PluginClientBase.h" |
7 #include "../shared/Communication.h" | 7 #include "../shared/Communication.h" |
8 | 8 |
9 | 9 |
10 class CPluginFilter; | 10 class CPluginFilter; |
(...skipping 11 matching lines...) Expand all Loading... |
22 | 22 |
23 private: | 23 private: |
24 | 24 |
25 std::auto_ptr<CPluginFilter> m_filter; | 25 std::auto_ptr<CPluginFilter> m_filter; |
26 | 26 |
27 CComAutoCriticalSection m_criticalSectionFilter; | 27 CComAutoCriticalSection m_criticalSectionFilter; |
28 CComAutoCriticalSection m_criticalSectionCache; | 28 CComAutoCriticalSection m_criticalSectionCache; |
29 | 29 |
30 std::map<CString,bool> m_cacheBlockedSources; | 30 std::map<CString,bool> m_cacheBlockedSources; |
31 | 31 |
| 32 std::shared_ptr<Communication::Pipe> enginePipe; |
| 33 |
32 | 34 |
33 // Private constructor used by the singleton pattern | 35 // Private constructor used by the singleton pattern |
34 CAdblockPlusClient(); | 36 CAdblockPlusClient(); |
| 37 |
| 38 bool CallEngine(Communication::OutputBuffer& message, Communication::InputBuff
er& inputBuffer = Communication::InputBuffer()); |
| 39 bool CallEngine(Communication::ProcType proc, Communication::InputBuffer& inpu
tBuffer = Communication::InputBuffer()); |
35 public: | 40 public: |
36 | 41 |
37 static CAdblockPlusClient* s_instance; | 42 static CAdblockPlusClient* s_instance; |
38 | 43 |
39 ~CAdblockPlusClient(); | 44 ~CAdblockPlusClient(); |
40 | 45 |
41 static CAdblockPlusClient* GetInstance(); | 46 static CAdblockPlusClient* GetInstance(); |
42 | 47 |
43 // Removes the url from the list of whitelisted urls if present | 48 // Removes the url from the list of whitelisted urls if present |
44 // Only called from ui thread | 49 // Only called from ui thread |
(...skipping 21 matching lines...) Expand all Loading... |
66 bool GetPref(const std::wstring& name, bool defaultValue = false); | 71 bool GetPref(const std::wstring& name, bool defaultValue = false); |
67 int64_t GetPref(const std::wstring& name, int64_t defaultValue = 0); | 72 int64_t GetPref(const std::wstring& name, int64_t defaultValue = 0); |
68 void CheckForUpdates(); | 73 void CheckForUpdates(); |
69 std::wstring GetAppLocale(); | 74 std::wstring GetAppLocale(); |
70 std::wstring GetDocumentationLink(); | 75 std::wstring GetDocumentationLink(); |
71 | 76 |
72 bool IsFirstRun(); | 77 bool IsFirstRun(); |
73 }; | 78 }; |
74 | 79 |
75 #endif // _ADBLOCK_PLUS_CLIENT_H_ | 80 #endif // _ADBLOCK_PLUS_CLIENT_H_ |
OLD | NEW |