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

Unified Diff: headless/public/headless_browser.h

Issue 2489673005: [headless] Make browser service manifest overlay configurable. (Closed)
Patch Set: fix includes. Created 4 years, 1 month 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/resources/headless_lib_resources.grd ('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 954b79e0db4609324864c8ef209bbf7db28be0d8..021e91064fbc4e099945b7cc782d1b430afc5a7a 100644
--- a/headless/public/headless_browser.h
+++ b/headless/public/headless_browser.h
@@ -8,6 +8,7 @@
#include <memory>
#include <string>
#include <unordered_map>
+#include <unordered_set>
#include <vector>
#include "base/callback.h"
@@ -115,6 +116,10 @@ struct HeadlessBrowser::Options {
// string can be used to disable GL rendering (e.g., WebGL support).
std::string gl_implementation;
+ // Names of mojo services exposed by the browser to the renderer. These
+ // services will be added to the browser's service manifest.
+ std::unordered_set<std::string> mojo_service_names;
+
// Default per-context options, can be specialized on per-context basis.
std::string user_agent;
@@ -159,6 +164,7 @@ class HeadlessBrowser::Options::Builder {
Builder& SetSingleProcessMode(bool single_process_mode);
Builder& SetDisableSandbox(bool disable_sandbox);
Builder& SetGLImplementation(const std::string& gl_implementation);
+ Builder& AddMojoServiceName(const std::string& mojo_service_name);
// Per-context settings.
« no previous file with comments | « headless/lib/resources/headless_lib_resources.grd ('k') | headless/public/headless_browser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698