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

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

Issue 5117917230268416: No issue - remove dead code (Closed)
Patch Set: Created Oct. 8, 2014, 2:46 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 | « src/plugin/PluginDomTraverser.h ('k') | src/plugin/PluginTabBase.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 14 matching lines...) Expand all
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
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_
OLDNEW
« no previous file with comments | « src/plugin/PluginDomTraverser.h ('k') | src/plugin/PluginTabBase.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld