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 |