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

Delta Between Two Patch Sets: src/plugin/PluginDomTraverserBase.h

Issue 11427013: Appear fast for IE (Closed)
Left Patch Set: Created Aug. 7, 2013, 5:44 a.m.
Right Patch Set: Comments addressed Created Aug. 7, 2013, 4:01 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
LEFTRIGHT
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) ; 118 DWORD res = WaitForSingleObject(m_tab->m_filter->hideFiltersLoadedEvent, TIMEO UT_VALUE);
Felix Dahlke 2013/08/07 09:34:49 We have a higher timeout in AdblockPlusClient, whe
119 if (!IsEnabled()) return; 119 if (!IsEnabled()) return;
120 120
121 VARIANT_BOOL isBusy; 121 VARIANT_BOOL isBusy;
122 if (SUCCEEDED(pBrowser->get_Busy(&isBusy))) 122 if (SUCCEEDED(pBrowser->get_Busy(&isBusy)))
123 { 123 {
124 if (isBusy) 124 if (isBusy)
125 { 125 {
126 return; 126 return;
127 } 127 }
128 } 128 }
(...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after
460 if (tab->m_plugin->GetTabHWND() == NULL) 460 if (tab->m_plugin->GetTabHWND() == NULL)
461 { 461 {
462 return; 462 return;
463 } 463 }
464 464
465 465
466 } 466 }
467 467
468 468
469 #endif // _PLUGIN_DOM_TRAVERSER_BASE_H_ 469 #endif // _PLUGIN_DOM_TRAVERSER_BASE_H_
LEFTRIGHT

Powered by Google App Engine
This is Rietveld