| LEFT | RIGHT |
| (no file at all) | |
| 1 #ifndef _SIMPLE_ADBLOCK_CLIENT_H_ | 1 #ifndef _SIMPLE_ADBLOCK_CLIENT_H_ |
| 2 #define _SIMPLE_ADBLOCK_CLIENT_H_ | 2 #define _SIMPLE_ADBLOCK_CLIENT_H_ |
| 3 | 3 |
| 4 | 4 |
| 5 #include "PluginTypedef.h" | 5 #include "PluginTypedef.h" |
| 6 #include "PluginClientBase.h" | 6 #include "PluginClientBase.h" |
| 7 #include "AdblockPlus.h" | 7 #include "AdblockPlus.h" |
| 8 | 8 |
| 9 | 9 |
| 10 using namespace AdblockPlus; | 10 using namespace AdblockPlus; |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 { | 37 { |
| 38 | 38 |
| 39 private: | 39 private: |
| 40 | 40 |
| 41 std::auto_ptr<CPluginFilter> m_filter; | 41 std::auto_ptr<CPluginFilter> m_filter; |
| 42 std::auto_ptr<LibFileReader> fileReader; | 42 std::auto_ptr<LibFileReader> fileReader; |
| 43 std::auto_ptr<CerrErrorCallback> errorCallback; | 43 std::auto_ptr<CerrErrorCallback> errorCallback; |
| 44 std::auto_ptr<AdblockPlus::JsEngine> jsEngine; | 44 std::auto_ptr<AdblockPlus::JsEngine> jsEngine; |
| 45 std::auto_ptr<AdblockPlus::FilterEngine> filterEngine; | 45 std::auto_ptr<AdblockPlus::FilterEngine> filterEngine; |
| 46 | 46 |
| 47 TFilterFileList m_filterDownloads; | |
| 48 | |
| 49 CComAutoCriticalSection m_criticalSectionFilter; | 47 CComAutoCriticalSection m_criticalSectionFilter; |
| 50 CComAutoCriticalSection m_criticalSectionCache; | 48 CComAutoCriticalSection m_criticalSectionCache; |
| 51 | 49 |
| 52 std::map<CString,bool> m_cacheBlockedSources; | 50 std::map<CString,bool> m_cacheBlockedSources; |
| 53 | 51 |
| 54 | 52 |
| 55 // Private constructor used by the singleton pattern | 53 // Private constructor used by the singleton pattern |
| 56 CAdblockPlusClient(); | 54 CAdblockPlusClient(); |
| 57 | 55 |
| 58 public: | 56 public: |
| (...skipping 11 matching lines...) Expand all Loading... |
| 70 bool ShouldBlock(CString src, int contentType, const CString& domain, bool add
Debug=false); | 68 bool ShouldBlock(CString src, int contentType, const CString& domain, bool add
Debug=false); |
| 71 | 69 |
| 72 bool IsElementHidden(const CString& tag, IHTMLElement* pEl, const CString& dom
ain, const CString& indent, CPluginFilter* filter); | 70 bool IsElementHidden(const CString& tag, IHTMLElement* pEl, const CString& dom
ain, const CString& indent, CPluginFilter* filter); |
| 73 bool IsUrlWhiteListed(const CString& url); | 71 bool IsUrlWhiteListed(const CString& url); |
| 74 | 72 |
| 75 int GetIEVersion(); | 73 int GetIEVersion(); |
| 76 | 74 |
| 77 }; | 75 }; |
| 78 | 76 |
| 79 #endif // _SIMPLE_ADBLOCK_CLIENT_H_ | 77 #endif // _SIMPLE_ADBLOCK_CLIENT_H_ |
| LEFT | RIGHT |