OLD | NEW |
1 #ifndef _PLUGIN_TAB_BASE_H_ | 1 #ifndef _PLUGIN_TAB_BASE_H_ |
2 #define _PLUGIN_TAB_BASE_H_ | 2 #define _PLUGIN_TAB_BASE_H_ |
3 | 3 |
4 | 4 |
5 #ifdef SUPPORT_DOM_TRAVERSER | 5 #ifdef SUPPORT_DOM_TRAVERSER |
6 class CPluginDomTraverser; | 6 class CPluginDomTraverser; |
7 #endif | 7 #endif |
8 | 8 |
9 #include "PluginUserSettings.h" | 9 #include "PluginUserSettings.h" |
10 #include "PluginFilter.h" | 10 #include "PluginFilter.h" |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 | 53 |
54 static DWORD WINAPI ThreadProc(LPVOID pParam); | 54 static DWORD WINAPI ThreadProc(LPVOID pParam); |
55 | 55 |
56 #ifdef SUPPORT_FRAME_CACHING | 56 #ifdef SUPPORT_FRAME_CACHING |
57 CComAutoCriticalSection m_criticalSectionCache; | 57 CComAutoCriticalSection m_criticalSectionCache; |
58 std::set<CString> m_cacheFrames; | 58 std::set<CString> m_cacheFrames; |
59 CString m_cacheDomain; | 59 CString m_cacheDomain; |
60 #endif | 60 #endif |
61 | 61 |
62 void SetDocumentUrl(const CString& url); | 62 void SetDocumentUrl(const CString& url); |
63 | 63 void InjectABP(IWebBrowser2* browser); |
64 public: | 64 public: |
65 | 65 |
66 CPluginTabBase(CPluginClass* plugin); | 66 CPluginTabBase(CPluginClass* plugin); |
67 ~CPluginTabBase(); | 67 ~CPluginTabBase(); |
68 | 68 |
69 CString GetDocumentDomain(); | 69 CString GetDocumentDomain(); |
70 CString GetDocumentUrl(); | 70 CString GetDocumentUrl(); |
71 | 71 |
72 virtual void OnActivate(); | 72 virtual void OnActivate(); |
73 virtual void OnUpdate(); | 73 virtual void OnUpdate(); |
74 virtual void OnNavigate(const CString& url); | 74 virtual void OnNavigate(const CString& url); |
75 virtual void OnDownloadComplete(IWebBrowser2* browser); | 75 virtual void OnDownloadComplete(IWebBrowser2* browser); |
76 virtual void OnDocumentComplete(IWebBrowser2* browser, const CString& url, boo
l isDocumentBrowser); | 76 virtual void OnDocumentComplete(IWebBrowser2* browser, const CString& url, boo
l isDocumentBrowser); |
77 | 77 |
78 static DWORD WINAPI TabThreadProc(LPVOID pParam); | 78 static DWORD WINAPI TabThreadProc(LPVOID pParam); |
79 | 79 |
80 #ifdef SUPPORT_FRAME_CACHING | 80 #ifdef SUPPORT_FRAME_CACHING |
81 void CacheFrame(const CString& url); | 81 void CacheFrame(const CString& url); |
82 bool IsFrameCached(const CString& url); | 82 bool IsFrameCached(const CString& url); |
83 void ClearFrameCache(const CString& domain=""); | 83 void ClearFrameCache(const CString& domain=""); |
84 #endif | 84 #endif |
85 | 85 |
86 }; | 86 }; |
87 | 87 |
88 | 88 |
89 #endif // _PLUGIN_TAB_BASE_H_ | 89 #endif // _PLUGIN_TAB_BASE_H_ |
OLD | NEW |