OLD | NEW |
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 14 matching lines...) Expand all Loading... |
25 CPluginDomTraverserBase(CPluginTab* tab); | 25 CPluginDomTraverserBase(CPluginTab* tab); |
26 ~CPluginDomTraverserBase(); | 26 ~CPluginDomTraverserBase(); |
27 | 27 |
28 void TraverseHeader(bool isHeaderTraversed); | 28 void TraverseHeader(bool isHeaderTraversed); |
29 | 29 |
30 void TraverseDocument(IWebBrowser2* pBrowser, const std::wstring& domain, cons
t CString& documentName); | 30 void TraverseDocument(IWebBrowser2* pBrowser, const std::wstring& domain, cons
t CString& documentName); |
31 void TraverseSubdocument(IWebBrowser2* pBrowser, const std::wstring& domain, c
onst CString& documentName); | 31 void TraverseSubdocument(IWebBrowser2* pBrowser, const std::wstring& domain, c
onst CString& documentName); |
32 | 32 |
33 virtual void ClearCache(); | 33 virtual void ClearCache(); |
34 | 34 |
35 void ShowNotification(CPluginTab* tab); | |
36 | |
37 protected: | 35 protected: |
38 | 36 |
39 virtual bool OnIFrame(IHTMLElement* pEl, const CString& url, CString& indent)
{ return true; } | 37 virtual bool OnIFrame(IHTMLElement* pEl, const CString& url, CString& indent)
{ return true; } |
40 virtual bool OnElement(IHTMLElement* pEl, const CString& tag, T* cache, bool i
sDebug, CString& indent) { return true; } | 38 virtual bool OnElement(IHTMLElement* pEl, const CString& tag, T* cache, bool i
sDebug, CString& indent) { return true; } |
41 | 39 |
42 virtual bool IsEnabled(); | 40 virtual bool IsEnabled(); |
43 | 41 |
44 protected: | 42 protected: |
45 | 43 |
46 void TraverseDocument(IWebBrowser2* pBrowser, bool isMainDoc, CString indent); | 44 void TraverseDocument(IWebBrowser2* pBrowser, bool isMainDoc, CString indent); |
(...skipping 400 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
447 void CPluginDomTraverserBase<T>::ClearCache() | 445 void CPluginDomTraverserBase<T>::ClearCache() |
448 { | 446 { |
449 m_criticalSection.Lock(); | 447 m_criticalSection.Lock(); |
450 { | 448 { |
451 m_cacheIndexLast = 0; | 449 m_cacheIndexLast = 0; |
452 m_cacheDocumentHasFrames.clear(); | 450 m_cacheDocumentHasFrames.clear(); |
453 m_cacheDocumentHasIframes.clear(); | 451 m_cacheDocumentHasIframes.clear(); |
454 } | 452 } |
455 m_criticalSection.Unlock(); | 453 m_criticalSection.Unlock(); |
456 } | 454 } |
457 template <class T> | |
458 void CPluginDomTraverserBase<T>::ShowNotification(CPluginTab* tab) | |
459 { | |
460 if (tab->m_plugin->GetTabHWND() == NULL) | |
461 { | |
462 return; | |
463 } | |
464 | |
465 | |
466 } | |
467 | 455 |
468 | 456 |
469 #endif // _PLUGIN_DOM_TRAVERSER_BASE_H_ | 457 #endif // _PLUGIN_DOM_TRAVERSER_BASE_H_ |
OLD | NEW |