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

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

Issue 11427013: Appear fast for IE (Closed)
Patch Set: Created Aug. 7, 2013, 5:44 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
OLDNEW
1 #ifndef _PLUGIN_DOM_TRAVERSER_BASE_H_ 1 #ifndef _PLUGIN_DOM_TRAVERSER_BASE_H_
2 #define _PLUGIN_DOM_TRAVERSER_BASE_H_ 2 #define _PLUGIN_DOM_TRAVERSER_BASE_H_
3 3
4 4
5 #include "PluginTypedef.h" 5 #include "PluginTypedef.h"
6 #include "PluginTab.h" 6 #include "PluginTab.h"
7 7
8 8
9 class CPluginDomTraverserCacheBase 9 class CPluginDomTraverserCacheBase
10 { 10 {
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 template <class T> 108 template <class T>
109 bool CPluginDomTraverserBase<T>::IsEnabled() 109 bool CPluginDomTraverserBase<T>::IsEnabled()
110 { 110 {
111 return CPluginSettings::GetInstance()->IsPluginEnabled(); 111 return CPluginSettings::GetInstance()->IsPluginEnabled();
112 } 112 }
113 113
114 114
115 template <class T> 115 template <class T>
116 void CPluginDomTraverserBase<T>::TraverseDocument(IWebBrowser2* pBrowser, bool i sMainDoc, CString indent) 116 void CPluginDomTraverserBase<T>::TraverseDocument(IWebBrowser2* pBrowser, bool i sMainDoc, CString indent)
117 { 117 {
118 DWORD res = WaitForSingleObject(m_tab->m_filter->hideFiltersLoadedEvent, 1000) ;
Felix Dahlke 2013/08/07 09:34:49 We have a higher timeout in AdblockPlusClient, whe
118 if (!IsEnabled()) return; 119 if (!IsEnabled()) return;
119 120
120 VARIANT_BOOL isBusy; 121 VARIANT_BOOL isBusy;
121 if (SUCCEEDED(pBrowser->get_Busy(&isBusy))) 122 if (SUCCEEDED(pBrowser->get_Busy(&isBusy)))
122 { 123 {
123 if (isBusy) 124 if (isBusy)
124 { 125 {
125 return; 126 return;
126 } 127 }
127 } 128 }
(...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after
459 if (tab->m_plugin->GetTabHWND() == NULL) 460 if (tab->m_plugin->GetTabHWND() == NULL)
460 { 461 {
461 return; 462 return;
462 } 463 }
463 464
464 465
465 } 466 }
466 467
467 468
468 #endif // _PLUGIN_DOM_TRAVERSER_BASE_H_ 469 #endif // _PLUGIN_DOM_TRAVERSER_BASE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld