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

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

Issue 11364091: Fix ABP pages on refresh (Closed)
Patch Set: Created Aug. 8, 2013, 6:45 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | src/plugin/PluginTabBase.cpp » ('j') | src/plugin/PluginTabBase.cpp » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « no previous file | src/plugin/PluginTabBase.cpp » ('j') | src/plugin/PluginTabBase.cpp » ('J')

Powered by Google App Engine
This is Rietveld