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

Delta Between Two Patch Sets: include/AdblockPlus/WebRequest.h

Issue 10259001: XMLHttpRequest API (Closed)
Left Patch Set: Created April 10, 2013, 3:19 p.m.
Right Patch Set: Addressed review comments Created April 11, 2013, 4:30 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « include/AdblockPlus/JsEngine.h ('k') | libadblockplus.gyp » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 #ifndef ADBLOCKPLUS_WEB_REQUEST_H 1 #ifndef ADBLOCKPLUS_WEB_REQUEST_H
2 #define ADBLOCKPLUS_WEB_REQUEST_H 2 #define ADBLOCKPLUS_WEB_REQUEST_H
Felix Dahlke 2013/04/11 09:33:42 We usually have ADBLOCK_PLUS (with an underscore)
Wladimir Palant 2013/04/11 16:32:33 You better check that again, all include files hav
Felix Dahlke 2013/04/11 17:39:28 No, not really. Just the one in Thread.h for some
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> > HeadersList; 9 typedef std::vector<std::pair<std::string, std::string> > HeaderList;
Felix Dahlke 2013/04/11 09:33:42 We usually only have whitespace between >/< if it'
Wladimir Palant 2013/04/11 16:32:33 I prefer proper grouping as done here. Seeing the
10 10
11 struct ServerResponse 11 struct ServerResponse
12 { 12 {
13 HeadersList responseHeaders; 13 HeaderList responseHeaders;
Felix Dahlke 2013/04/11 09:33:42 How about "Headers" or "HeaderList"? I prefer the
14 int responseStatus; 14 int responseStatus;
15 std::string responseText; 15 std::string responseText;
16 }; 16 };
17 17
18 class WebRequest 18 class WebRequest
19 { 19 {
20 public: 20 public:
21 virtual ~WebRequest(); 21 virtual ~WebRequest();
22 virtual ServerResponse GET(const std::string& url, const HeadersList& reques tHeaders) const = 0; 22 virtual ServerResponse GET(const std::string& url, const HeaderList& request Headers) const = 0;
23 }; 23 };
24 } 24 }
25 25
26 #endif 26 #endif
LEFTRIGHT

Powered by Google App Engine
This is Rietveld