Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(479)

Unified Diff: headless/public/util/deterministic_http_protocol_handler.h

Issue 2863953003: Headless: Remove obsolete Mojo code and some other obsolete APIs (Closed)
Patch Set: Rebased Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: headless/public/util/deterministic_http_protocol_handler.h
diff --git a/headless/public/util/deterministic_http_protocol_handler.h b/headless/public/util/deterministic_http_protocol_handler.h
index 05d5215402a8ffbeef445c2307f3d5f8354cfee8..7fc6057632742eacaacf351d626863006f68a0a2 100644
--- a/headless/public/util/deterministic_http_protocol_handler.h
+++ b/headless/public/util/deterministic_http_protocol_handler.h
@@ -18,6 +18,7 @@ class URLRequestJobFactory;
namespace headless {
class DeterministicDispatcher;
+class HeadlessBrowserContext;
// A deterministic protocol handler. Requests made to this protocol handler
// will return in order of creation, regardless of what order the network
@@ -37,10 +38,16 @@ class HEADLESS_EXPORT DeterministicHttpProtocolHandler
net::URLRequest* request,
net::NetworkDelegate* network_delegate) const override;
+ void SetHeadlessBrowserContext(
+ HeadlessBrowserContext* headless_browser_context) {
+ headless_browser_context_ = headless_browser_context;
+ }
+
private:
class NopGenericURLRequestJobDelegate;
DeterministicDispatcher* deterministic_dispatcher_; // NOT OWNED.
+ HeadlessBrowserContext* headless_browser_context_; // NOT OWNED.
scoped_refptr<base::SingleThreadTaskRunner> io_task_runner_;
std::unique_ptr<NopGenericURLRequestJobDelegate> nop_delegate_;
« no previous file with comments | « headless/public/headless_web_contents.h ('k') | headless/public/util/deterministic_http_protocol_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698