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

Unified Diff: headless/public/headless_browser.h

Issue 2810353003: Adds a command-line flag indicating an open and listening socket to (Closed)
Patch Set: Merge branch 'master' of https://chromium.googlesource.com/chromium/src into headlessport Created 3 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/lib/browser/headless_devtools.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 8d0689fa4ba9b19bd46c93917a115606f33e3154..19694ec18af19b40f4e72857a1850a01b0745155 100644
--- a/headless/public/headless_browser.h
+++ b/headless/public/headless_browser.h
@@ -108,9 +108,16 @@ struct HeadlessBrowser::Options {
const char** argv;
// Address at which DevTools should listen for connections. Disabled by
- // default.
+ // default. Mutually exclusive with devtools_socket_fd.
net::IPEndPoint devtools_endpoint;
+ // The fd of an already-open socket inherited from a parent process. Disabled
+ // by default. Mutually exclusive with devtools_endpoint.
+ size_t devtools_socket_fd;
+
+ // A single way to test whether the devtools server has been requested.
+ bool DevtoolsServerEnabled();
+
// Optional message pump that overrides the default. Must outlive the browser.
base::MessagePump* message_pump;
@@ -187,6 +194,7 @@ class HeadlessBrowser::Options::Builder {
// Browser-wide settings.
Builder& EnableDevToolsServer(const net::IPEndPoint& endpoint);
+ Builder& EnableDevToolsServer(const size_t socket_fd);
Builder& SetMessagePump(base::MessagePump* message_pump);
Builder& SetSingleProcessMode(bool single_process_mode);
Builder& SetDisableSandbox(bool disable_sandbox);
« no previous file with comments | « headless/lib/browser/headless_devtools.cc ('k') | headless/public/headless_browser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698