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

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

Issue 11013110: Cleanup (Closed)
Left Patch Set: Refactoring CallAdblockPlusEngine Created July 24, 2013, 9:09 a.m.
Right Patch Set: More beautification and addressing comments Created July 29, 2013, 12:13 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Right: Side by side diff | Download
« no previous file with change/comment | « src/plugin/PluginClientBase.cpp ('k') | src/plugin/PluginConfig.cpp » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
(no file at all)
1 #ifndef _PLUGIN_CONFIG_H_
2 #define _PLUGIN_CONFIG_H_
3
4
5 #include "PluginTypedef.h"
6 #include "PluginIniFileW.h"
7 #include "PluginChecksum.h"
8
9
10 class CPluginConfig
11 {
12
13 private:
14
15 static CPluginConfig* s_instance;
16
17 static CComAutoCriticalSection s_criticalSection;
18
19 TDownloadFileProperties m_downloadFileProperties;
20 TDownloadFileCategories m_downloadFileCategories;
21 TDownloadDomainTitles m_downloadDomainTitles;
22
23 // private constructor used by the singleton pattern
24 CPluginConfig(bool forceCreate=true);
25
26 public:
27
28 ~CPluginConfig();
29
30 // Returns an instance of the Dictionary
31 static CPluginConfig* GetInstance(bool forceCreate=true);
32
33 static bool Download(const CString& url, const CString& filename);
34 bool GetDownloadProperties(const CString& headers, SDownloadFileProperties& properties) const;
35
36 void Read();
37 void Create(bool forceCreate=true);
38
39 int GenerateFilterString(TCHAR* pBuffer, SDownloadFileProperties& proper ties, std::vector<std::pair<CString,CString>>& filterData, bool allowConversion) const;
40
41 void GetDownloadDomainTitles(TDownloadDomainTitles& domainTitles) const;
42
43 std::vector<CString> GetConversionExtenssions();
44 };
45
46
47 #endif // _PLUGIN_CONFIG_H_
LEFTRIGHT

Powered by Google App Engine
This is Rietveld