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

Unified Diff: include/AdblockPlus/WebRequest.h

Issue 10259001: XMLHttpRequest API (Closed)
Patch Set: Addressed review comments Created April 11, 2013, 4:30 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « include/AdblockPlus/JsEngine.h ('k') | libadblockplus.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/AdblockPlus/WebRequest.h
===================================================================
new file mode 100644
--- /dev/null
+++ b/include/AdblockPlus/WebRequest.h
@@ -0,0 +1,26 @@
+#ifndef ADBLOCKPLUS_WEB_REQUEST_H
+#define ADBLOCKPLUS_WEB_REQUEST_H
+
+#include <string>
+#include <vector>
+
+namespace AdblockPlus
+{
+ typedef std::vector<std::pair<std::string, std::string> > HeaderList;
+
+ struct ServerResponse
+ {
+ HeaderList responseHeaders;
+ int responseStatus;
+ std::string responseText;
+ };
+
+ class WebRequest
+ {
+ public:
+ virtual ~WebRequest();
+ virtual ServerResponse GET(const std::string& url, const HeaderList& requestHeaders) const = 0;
+ };
+}
+
+#endif
« 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