OLD | NEW |
1 #include "PluginStdAfx.h" | 1 #include "PluginStdAfx.h" |
2 | 2 |
3 #include "PluginClient.h" | 3 #include "PluginClient.h" |
4 #include "PluginSettings.h" | 4 #include "PluginSettings.h" |
5 #include "PluginDictionary.h" | 5 #include "PluginDictionary.h" |
6 #ifdef SUPPORT_CONFIG | 6 #ifdef SUPPORT_CONFIG |
7 #include "PluginConfig.h" | 7 #include "PluginConfig.h" |
8 #endif | 8 #endif |
9 #include "PluginTab.h" | 9 #include "PluginTab.h" |
10 #include "PluginDomTraverser.h" | 10 #include "PluginDomTraverser.h" |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 void CPluginTabBase::OnNavigate(const CString& url) | 128 void CPluginTabBase::OnNavigate(const CString& url) |
129 { | 129 { |
130 SetDocumentUrl(url); | 130 SetDocumentUrl(url); |
131 | 131 |
132 | 132 |
133 #ifdef SUPPORT_FRAME_CACHING | 133 #ifdef SUPPORT_FRAME_CACHING |
134 ClearFrameCache(GetDocumentDomain()); | 134 ClearFrameCache(GetDocumentDomain()); |
135 #endif | 135 #endif |
136 | 136 |
137 std::string domainString = CT2A(GetDocumentDomain()); | 137 std::string domainString = CT2A(GetDocumentDomain()); |
138 m_filter->LoadHideFilters(CPluginClient::GetInstance()->GetFilterEngine()->Get
ElementHidingSelectors(domainString)); | 138 m_filter->LoadHideFilters(CPluginClient::GetInstance()->GetElementHidingSelect
ors(domainString)); |
139 | 139 |
140 #ifdef SUPPORT_DOM_TRAVERSER | 140 #ifdef SUPPORT_DOM_TRAVERSER |
141 m_traverser->ClearCache(); | 141 m_traverser->ClearCache(); |
142 #endif | 142 #endif |
143 } | 143 } |
144 | 144 |
145 void CPluginTabBase::OnDownloadComplete(IWebBrowser2* browser) | 145 void CPluginTabBase::OnDownloadComplete(IWebBrowser2* browser) |
146 { | 146 { |
147 #ifdef SUPPORT_DOM_TRAVERSER | 147 #ifdef SUPPORT_DOM_TRAVERSER |
148 m_traverser->TraverseDocument(browser, GetDocumentDomain(), GetDocumentUrl()); | 148 m_traverser->TraverseDocument(browser, GetDocumentDomain(), GetDocumentUrl()); |
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
440 | 440 |
441 // Non-hanging sleep | 441 // Non-hanging sleep |
442 Sleep(50); | 442 Sleep(50); |
443 } | 443 } |
444 | 444 |
445 tabLoopIteration++; | 445 tabLoopIteration++; |
446 } | 446 } |
447 | 447 |
448 return 0; | 448 return 0; |
449 } | 449 } |
OLD | NEW |