OLD | NEW |
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 } |
| 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 Loading... |
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_ |
OLD | NEW |