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

Unified Diff: headless/lib/browser/headless_browser_main_parts.cc

Issue 2043603004: headless: Introduce a browser context (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address nits Created 4 years, 6 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
« no previous file with comments | « headless/lib/browser/headless_browser_main_parts.h ('k') | headless/lib/browser/headless_devtools.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: headless/lib/browser/headless_browser_main_parts.cc
diff --git a/headless/lib/browser/headless_browser_main_parts.cc b/headless/lib/browser/headless_browser_main_parts.cc
index 9781e39905ca1d08b9ffda56a3981dde5e7c2cc6..8a92222bc3df318873f6bf45a8fe26a5136ab691 100644
--- a/headless/lib/browser/headless_browser_main_parts.cc
+++ b/headless/lib/browser/headless_browser_main_parts.cc
@@ -5,7 +5,7 @@
#include "headless/lib/browser/headless_browser_main_parts.h"
#include "components/devtools_http_handler/devtools_http_handler.h"
-#include "headless/lib/browser/headless_browser_context.h"
+#include "headless/lib/browser/headless_browser_context_impl.h"
#include "headless/lib/browser/headless_browser_impl.h"
#include "headless/lib/browser/headless_devtools.h"
#include "headless/lib/browser/headless_screen.h"
@@ -32,7 +32,7 @@ HeadlessBrowserMainParts::HeadlessBrowserMainParts(HeadlessBrowserImpl* browser)
HeadlessBrowserMainParts::~HeadlessBrowserMainParts() {}
void HeadlessBrowserMainParts::PreMainMessageLoopRun() {
- browser_context_.reset(new HeadlessBrowserContext(browser_->options()));
+ browser_context_.reset(new HeadlessBrowserContextImpl(browser_->options()));
if (browser_->options()->devtools_endpoint.address().IsValid()) {
devtools_http_handler_ =
CreateLocalDevToolsHttpHandler(browser_context_.get());
@@ -46,7 +46,8 @@ void HeadlessBrowserMainParts::PostMainMessageLoopRun() {
PlatformExit();
}
-HeadlessBrowserContext* HeadlessBrowserMainParts::browser_context() const {
+HeadlessBrowserContextImpl* HeadlessBrowserMainParts::default_browser_context()
+ const {
return browser_context_.get();
}
« no previous file with comments | « headless/lib/browser/headless_browser_main_parts.h ('k') | headless/lib/browser/headless_devtools.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698