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

Unified Diff: src/DefaultWebRequest.h

Issue 29499621: Issue 4983 - Get rid of Sleep() in the WebRequest test (Closed) Base URL: https://github.com/adblockplus/libadblockplus.git
Patch Set: Created July 27, 2017, 10:18 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 | « libadblockplus.gyp ('k') | src/DefaultWebRequest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/DefaultWebRequest.h
diff --git a/src/DefaultWebRequest.h b/src/DefaultWebRequest.h
index aefa5e6e1fe7ff21b5247242b0d2a9322ed2573e..0d4bb6b8e5bffa1f83a7240e32c120eac4af4a56 100644
--- a/src/DefaultWebRequest.h
+++ b/src/DefaultWebRequest.h
@@ -19,6 +19,7 @@
#define ADBLOCK_PLUS_DEFAULT_WEB_REQUEST_H
#include <AdblockPlus/IWebRequest.h>
+#include <AdblockPlus/Scheduler.h>
namespace AdblockPlus
{
@@ -36,11 +37,12 @@ namespace AdblockPlus
class DefaultWebRequest : public IWebRequest
{
public:
- explicit DefaultWebRequest(std::unique_ptr<DefaultWebRequestSync>&& syncImpl);
+ explicit DefaultWebRequest(const Scheduler& scheduler, std::unique_ptr<DefaultWebRequestSync>&& syncImpl);
~DefaultWebRequest();
void GET(const std::string& url, const HeaderList& requestHeaders, const GetCallback& getCallback) override;
private:
+ Scheduler scheduler;
std::unique_ptr<DefaultWebRequestSync> syncImpl;
};
}
« no previous file with comments | « libadblockplus.gyp ('k') | src/DefaultWebRequest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld