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

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

Issue 11292028: Status bar menu added (Closed)
Patch Set: Created July 29, 2013, 5:25 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_TAB_BASE_H_ 1 #ifndef _PLUGIN_TAB_BASE_H_
2 #define _PLUGIN_TAB_BASE_H_ 2 #define _PLUGIN_TAB_BASE_H_
3 3
4 4
5 #ifdef SUPPORT_DOM_TRAVERSER 5 #ifdef SUPPORT_DOM_TRAVERSER
6 class CPluginDomTraverser; 6 class CPluginDomTraverser;
7 #endif 7 #endif
8 8
9 #include "PluginUserSettings.h" 9 #include "PluginUserSettings.h"
10 #include "PluginFilter.h" 10 #include "PluginFilter.h"
11 11
12 class CPluginClass; 12 class CPluginClass;
13 13
14 namespace
15 {
16 CString ExtractDomain(const CString& url)
17 {
18 int pos = 0;
19 if (url.Find('/', pos) >= 0)
20 url.Tokenize(L"/", pos);
21 CString domain = url.Tokenize(L"/", pos);
22 domain.MakeLower();
23 return domain;
24 }
25 }
Wladimir Palant 2013/08/01 10:48:19 I don't see the point of moving this function. Fun
26
14 27
15 class CPluginTabBase 28 class CPluginTabBase
16 { 29 {
17 30
18 friend class CPluginClass; 31 friend class CPluginClass;
19 32
20 protected: 33 protected:
21 34
22 CComAutoCriticalSection m_criticalSection; 35 CComAutoCriticalSection m_criticalSection;
23 36
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 #ifdef SUPPORT_FRAME_CACHING 93 #ifdef SUPPORT_FRAME_CACHING
81 void CacheFrame(const CString& url); 94 void CacheFrame(const CString& url);
82 bool IsFrameCached(const CString& url); 95 bool IsFrameCached(const CString& url);
83 void ClearFrameCache(const CString& domain=""); 96 void ClearFrameCache(const CString& domain="");
84 #endif 97 #endif
85 98
86 }; 99 };
87 100
88 101
89 #endif // _PLUGIN_TAB_BASE_H_ 102 #endif // _PLUGIN_TAB_BASE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld