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

Side by Side Diff: Shared/PluginTabBase.cpp

Issue 10580043: Run a single FilterEngine instance in a separate process (Closed)
Patch Set: Addressed review issues Created May 23, 2013, 7:10 p.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 | « Shared/PluginStdAfx.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « Shared/PluginStdAfx.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld