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

Unified Diff: headless/public/headless_browser.h

Issue 2489673005: [headless] Make browser service manifest overlay configurable. (Closed)
Patch Set: v1 load from resource id provided in options. 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
Index: headless/public/headless_browser.h
diff --git a/headless/public/headless_browser.h b/headless/public/headless_browser.h
index 954b79e0db4609324864c8ef209bbf7db28be0d8..c21bad7b3fc9272ad155987c099c57c8dc087926 100644
--- a/headless/public/headless_browser.h
+++ b/headless/public/headless_browser.h
@@ -115,6 +115,11 @@ struct HeadlessBrowser::Options {
// string can be used to disable GL rendering (e.g., WebGL support).
std::string gl_implementation;
+ // Resource identifier of a service manifest.json file that includes interface
+ // provider specs for mojo services that the browser exposes to the renderers.
+ // For an example, see headless/lib/embedder_test_manifest_overlay.json.
+ int mojo_service_manifest_resource_id;
Sami 2016/11/09 18:35:52 Looks uninitialized?
+
// 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& SetMojoServiceManifestResourceId(int resource_id);
// Per-context settings.

Powered by Google App Engine
This is Rietveld 408576698