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

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

Issue 11013110: Cleanup (Closed)
Patch Set: Created July 5, 2013, 3:28 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
(Empty)
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_
OLDNEW

Powered by Google App Engine
This is Rietveld