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

Unified Diff: headless/public/headless_browser_context.h

Issue 2352663003: Adds a --deterministic-fetch flag to headless_shell (Closed)
Patch Set: Changed a few comments Created 4 years, 3 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/headless_browser_context.h
diff --git a/headless/public/headless_browser_context.h b/headless/public/headless_browser_context.h
index 4cdaf3559c2cd608e4db5356b4fe799e1652ea14..55847ef0d497a95afdf92f4e77591928199e8c3c 100644
--- a/headless/public/headless_browser_context.h
+++ b/headless/public/headless_browser_context.h
@@ -17,6 +17,14 @@
#include "net/base/host_port_pair.h"
#include "net/url_request/url_request_job_factory.h"
+namespace base {
+class FilePath;
+} // namespace base
+
+namespace net {
+class URLRequestContext;
+} // namespace net
+
namespace headless {
class HeadlessBrowserImpl;
class HeadlessBrowserContextOptions;
@@ -55,6 +63,9 @@ class HEADLESS_EXPORT HeadlessBrowserContext {
// GUID for this browser context.
virtual const std::string& Id() const = 0;
+ // Returns the URLRequestContext associated with this browser context.
+ virtual net::URLRequestContext* GetRequestContext() const = 0;
Sami 2016/09/23 14:27:29 Not needed anymore?
alex clarke (OOO till 29th) 2016/09/23 16:40:26 Good point, it's gone.
+
// TODO(skyostil): Allow saving and restoring contexts (crbug.com/617931).
protected:

Powered by Google App Engine
This is Rietveld 408576698