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

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

Issue 11013110: Cleanup (Closed)
Left Patch Set: SetPref/GetPref type safety. Comments addressed. Created July 22, 2013, 12:42 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/PluginFilter.cpp ('k') | src/plugin/PluginHttpRequest.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_HTTP_REQUEST_H_
2 #define _PLUGIN_HTTP_REQUEST_H_
3
4
5 class CPluginChecksum;
6 class CPluginIniFile;
7
8 class CPluginHttpRequest
9 {
10
11 public:
12
13 CPluginHttpRequest(const CString& script, bool addChecksum=true);
14 ~CPluginHttpRequest();
15
16 bool Send(bool checkResponse=true);
17
18 void AddPluginId();
19 void AddOsInfo();
20
21 void Add(const CString& arg, const CString& value, bool addToChecksum=true);
22 void Add(const CString& arg, unsigned int value, bool addToChecksum=true);
23
24 CString GetUrl();
25 CStringA GetResponseText() const;
26 const std::auto_ptr<CPluginIniFile>& GetResponseFile() const;
27 bool IsValidResponse() const;
28
29 static CString GetStandardUrl(const CString& script);
30
31 static BOOL GetProxySettings(CString& proxyName, CString& proxyBypass);
32
33 static bool SendHttpRequest(LPCWSTR server, LPCWSTR file, CStringA* response, WORD nServerPort);
34
35 protected:
36
37 CString m_url;
38 CString m_urlPrefix;
39 CString m_script;
40 CStringA m_responseText;
41 bool m_addChecksum;
42
43 std::auto_ptr<CPluginChecksum> m_checksum;
44 std::auto_ptr<CPluginIniFile> m_responseFile;
45 };
46
47
48 #endif // _PLUGIN_HTTP_REQUEST_H_
LEFTRIGHT

Powered by Google App Engine
This is Rietveld