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

Unified Diff: include/AdblockPlus/DefaultWebRequest.h

Issue 29453572: Issue 5286 - Update to use libadblockplus rev. b88d098aeab5 (Closed)
Patch Set: Created June 1, 2017, 11:10 a.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 | « android_x86/libv8_snapshot.a ('k') | include/AdblockPlus/FilterEngine.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 | « android_x86/libv8_snapshot.a ('k') | include/AdblockPlus/FilterEngine.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld