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

Unified Diff: content/renderer/mojo_bindings_controller.h

Issue 2049363003: Adds support for headless chrome embedder mojo services (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase 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 | « content/public/common/bindings_policy.h ('k') | content/renderer/mojo_bindings_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/mojo_bindings_controller.h
diff --git a/content/renderer/mojo_bindings_controller.h b/content/renderer/mojo_bindings_controller.h
index b0a3fb6f8e8c9d0cf310e5655bdc4ad85a0f0f94..bfa61e1c48e3bbe95f5872f41b19c774492bdce9 100644
--- a/content/renderer/mojo_bindings_controller.h
+++ b/content/renderer/mojo_bindings_controller.h
@@ -20,6 +20,8 @@ namespace content {
class MojoContextState;
+enum class MojoBindingsType { FOR_WEB_UI, FOR_LAYOUT_TESTS, FOR_HEADLESS };
+
// MojoBindingsController is responsible for enabling the renderer side of mojo
// bindings. It creates (and destroys) a MojoContextState at the appropriate
// times and handles the necessary browser messages. MojoBindingsController
@@ -28,7 +30,8 @@ class MojoBindingsController
: public RenderFrameObserver,
public RenderFrameObserverTracker<MojoBindingsController> {
public:
- MojoBindingsController(RenderFrame* render_frame, bool for_layout_tests);
+ MojoBindingsController(RenderFrame* render_frame,
+ MojoBindingsType bindings_type);
void RunScriptsAtDocumentStart();
void RunScriptsAtDocumentReady();
@@ -45,7 +48,7 @@ class MojoBindingsController
void DidClearWindowObject() override;
void OnDestruct() override;
- const bool for_layout_tests_;
+ const MojoBindingsType bindings_type_;
DISALLOW_COPY_AND_ASSIGN(MojoBindingsController);
};
« no previous file with comments | « content/public/common/bindings_policy.h ('k') | content/renderer/mojo_bindings_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698