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

Side by Side Diff: include/AdblockPlus/WebRequest.h

Issue 10184021: Some refactoring of global JavaScript objects (Closed)
Patch Set: Unbitrotted patch Created April 16, 2013, 3:32 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « include/AdblockPlus/JsValue.h ('k') | src/ConsoleJsObject.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #ifndef ADBLOCKPLUS_WEB_REQUEST_H 1 #ifndef ADBLOCKPLUS_WEB_REQUEST_H
2 #define ADBLOCKPLUS_WEB_REQUEST_H 2 #define ADBLOCKPLUS_WEB_REQUEST_H
3 3
4 #include <string> 4 #include <string>
5 #include <vector> 5 #include <vector>
6 6
7 namespace AdblockPlus 7 namespace AdblockPlus
8 { 8 {
9 typedef std::vector<std::pair<std::string, std::string> > HeaderList; 9 typedef std::vector<std::pair<std::string, std::string> > HeaderList;
10 10
11 struct ServerResponse 11 struct ServerResponse
12 { 12 {
13 unsigned int status; 13 int64_t status;
14 HeaderList responseHeaders; 14 HeaderList responseHeaders;
15 int responseStatus; 15 int responseStatus;
16 std::string responseText; 16 std::string responseText;
17 }; 17 };
18 18
19 class WebRequest 19 class WebRequest
20 { 20 {
21 public: 21 public:
22 enum 22 enum
23 { 23 {
(...skipping 17 matching lines...) Expand all
41 virtual ServerResponse GET(const std::string& url, const HeaderList& request Headers) const = 0; 41 virtual ServerResponse GET(const std::string& url, const HeaderList& request Headers) const = 0;
42 }; 42 };
43 43
44 class DefaultWebRequest : public WebRequest 44 class DefaultWebRequest : public WebRequest
45 { 45 {
46 ServerResponse GET(const std::string& url, const HeaderList& requestHeaders) const; 46 ServerResponse GET(const std::string& url, const HeaderList& requestHeaders) const;
47 }; 47 };
48 } 48 }
49 49
50 #endif 50 #endif
OLDNEW
« no previous file with comments | « include/AdblockPlus/JsValue.h ('k') | src/ConsoleJsObject.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld