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

Unified Diff: include/AdblockPlus/DefaultWebRequest.h

Issue 29428650: Issue 5180 - introduce asynchronous web request (Closed) Base URL: https://github.com/adblockplus/libadblockplus.git
Patch Set: Created May 3, 2017, 2:21 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/IWebRequest.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/AdblockPlus/DefaultWebRequest.h
diff --git a/include/AdblockPlus/DefaultWebRequest.h b/include/AdblockPlus/DefaultWebRequest.h
index 83940c299a92b99831a795b0f0189e922e2721c9..0c7e8721f04e6f01080a10c220c6011b4c399765 100644
--- a/include/AdblockPlus/DefaultWebRequest.h
+++ b/include/AdblockPlus/DefaultWebRequest.h
@@ -27,10 +27,21 @@ namespace AdblockPlus
* on other platforms. A dummy implementation that always reports failure is
* used if libcurl is not available.
*/
- class DefaultWebRequest : public WebRequest
+ class DefaultWebRequestSync : public WebRequest
{
ServerResponse GET(const std::string& url, const HeaderList& requestHeaders) const;
};
+
+ class DefaultWebRequest : public IWebRequest
+ {
+ public:
+ explicit DefaultWebRequest(const WebRequestSharedPtr& syncImpl);
+ ~DefaultWebRequest();
+
+ void GET(const std::string& url, const HeaderList& requestHeaders, const GetCallback& getCallback) override;
+ private:
+ WebRequestSharedPtr syncImpl;
+ };
}
#endif
« no previous file with comments | « no previous file | include/AdblockPlus/IWebRequest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld