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

Unified Diff: headless/public/headless_browser.h

Issue 2187473002: [headless] Add option to disable sandbox from API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Enable sandbox by default Created 4 years, 5 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/headless_content_main_delegate.cc ('k') | headless/public/headless_browser.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: headless/public/headless_browser.h
diff --git a/headless/public/headless_browser.h b/headless/public/headless_browser.h
index b98a40acd866820ba10df3fff87d1adaf9ec95f7..90635905f3e6818d1a03d2c74eaf0c4cb887194f 100644
--- a/headless/public/headless_browser.h
+++ b/headless/public/headless_browser.h
@@ -113,6 +113,10 @@ struct HeadlessBrowser::Options {
// web content, which can be a security risk.
bool single_process_mode;
+ // Run the browser without renderer sandbox. This option can be
+ // a security risk and should be used with caution.
+ bool disable_sandbox;
+
// Custom network protocol handlers. These can be used to override URL
// fetching for different network schemes.
ProtocolHandlerMap protocol_handlers;
@@ -135,6 +139,7 @@ class HeadlessBrowser::Options::Builder {
Builder& SetProxyServer(const net::HostPortPair& proxy_server);
Builder& SetHostResolverRules(const std::string& host_resolver_rules);
Builder& SetSingleProcessMode(bool single_process_mode);
+ Builder& SetDisableSandbox(bool disable_sandbox);
Builder& SetProtocolHandlers(ProtocolHandlerMap protocol_handlers);
Options Build();
« no previous file with comments | « headless/lib/headless_content_main_delegate.cc ('k') | headless/public/headless_browser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698