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

Unified Diff: content/renderer/render_frame_impl.h

Issue 1707233003: Expose mojo bindings to subframes in layout tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@layout-test-mojom
Patch Set: Created 4 years, 9 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 | « no previous file | content/renderer/render_frame_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_frame_impl.h
diff --git a/content/renderer/render_frame_impl.h b/content/renderer/render_frame_impl.h
index 0d7a3fabc15ea251ec30aa17976476ce96258d90..b554ead998149fb3ce14a61c150947127da1abed 100644
--- a/content/renderer/render_frame_impl.h
+++ b/content/renderer/render_frame_impl.h
@@ -645,10 +645,11 @@ class CONTENT_EXPORT RenderFrameImpl
// Sends the current frame's navigation state to the browser.
void SendUpdateState();
- // Creates a MojoBindingsController to allow WebUI documents to communicate
- // with the browser process. If |for_layout_tests| is true, the module system
- // is exposed on a global "mojo" object rather than "define".
- void EnableMojoBindings(bool for_layout_tests);
+ // Creates a MojoBindingsController if Mojo bindings have been enabled for
+ // this frame. For WebUI, this allows the page to communicate with the browser
+ // process; for layout tests, this allows the test to mock out services at
+ // the Mojo IPC layer.
+ void MaybeEnableMojoBindings();
protected:
explicit RenderFrameImpl(const CreateParams& params);
« no previous file with comments | « no previous file | content/renderer/render_frame_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698