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

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

Issue 10259001: XMLHttpRequest API (Closed)
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:
View unified diff | Download patch
« no previous file with comments | « include/AdblockPlus/JsEngine.h ('k') | libadblockplus.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 #ifndef ADBLOCKPLUS_WEB_REQUEST_H
2 #define ADBLOCKPLUS_WEB_REQUEST_H
3
4 #include <string>
5 #include <vector>
6
7 namespace AdblockPlus
8 {
9 typedef std::vector<std::pair<std::string, std::string> > HeaderList;
10
11 struct ServerResponse
12 {
13 HeaderList responseHeaders;
14 int responseStatus;
15 std::string responseText;
16 };
17
18 class WebRequest
19 {
20 public:
21 virtual ~WebRequest();
22 virtual ServerResponse GET(const std::string& url, const HeaderList& request Headers) const = 0;
23 };
24 }
25
26 #endif
OLDNEW
« no previous file with comments | « include/AdblockPlus/JsEngine.h ('k') | libadblockplus.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld