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

Unified Diff: headless/public/headless_browser.cc

Issue 1908983002: headless: Switch to multiprocess mode by default (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 years, 8 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/public/headless_browser.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: headless/public/headless_browser.cc
diff --git a/headless/public/headless_browser.cc b/headless/public/headless_browser.cc
index 194eeac5212704cfbdb851b134348f954d10f527..6ff0a0c35ff00fa081f6429764dea3e1b469d2f0 100644
--- a/headless/public/headless_browser.cc
+++ b/headless/public/headless_browser.cc
@@ -20,7 +20,8 @@ Options::Options(int argc, const char** argv)
: argc(argc),
argv(argv),
user_agent(content::BuildUserAgentFromProduct(kProductName)),
- message_pump(nullptr) {}
+ message_pump(nullptr),
+ single_process_mode(false) {}
Options::Options(const Options& other) = default;
@@ -57,6 +58,11 @@ Builder& Builder::SetHostResolverRules(const std::string& host_resolver_rules) {
return *this;
}
+Builder& Builder::SetSingleProcessMode(bool single_process_mode) {
+ options_.single_process_mode = single_process_mode;
+ return *this;
+}
+
Options Builder::Build() {
return options_;
}
« no previous file with comments | « headless/public/headless_browser.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698