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

Unified Diff: include/AdblockPlus/IWebRequest.h

Issue 29533641: Issue 5569 - add the possibility to use synchronous WebRequest and base path in File System (Closed) Base URL: https://github.com/adblockplus/libadblockplus.git
Patch Set: Created Sept. 1, 2017, 3:32 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 | « no previous file | include/AdblockPlus/Platform.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/AdblockPlus/IWebRequest.h
diff --git a/include/AdblockPlus/IWebRequest.h b/include/AdblockPlus/IWebRequest.h
index aa34362d9e09250c31532045f02331d76e79b5de..895f0170780f6044e940edd294bb43cc2431617e 100644
--- a/include/AdblockPlus/IWebRequest.h
+++ b/include/AdblockPlus/IWebRequest.h
@@ -114,6 +114,17 @@ namespace AdblockPlus
* Unique smart pointer to an instance of `IWebRequest` implementation.
*/
typedef std::unique_ptr<IWebRequest> WebRequestPtr;
+
+
+ /**
+ * Private functionality.
+ */
+ struct IWebRequestSync
+ {
+ virtual ~IWebRequestSync() {}
+ virtual ServerResponse GET(const std::string& url, const HeaderList& requestHeaders) const = 0;
+ };
+ typedef std::unique_ptr<IWebRequestSync> WebRequestSyncPtr;
}
#endif
« no previous file with comments | « no previous file | include/AdblockPlus/Platform.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld