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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « no previous file | content/renderer/render_frame_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ 5 #ifndef CONTENT_RENDERER_RENDER_FRAME_IMPL_H_
6 #define CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ 6 #define CONTENT_RENDERER_RENDER_FRAME_IMPL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 627 matching lines...) Expand 10 before | Expand all | Expand 10 after
638 // TODO(creis): Remove when the only caller, the HistoryController, is no 638 // TODO(creis): Remove when the only caller, the HistoryController, is no
639 // more. 639 // more.
640 void SetPendingNavigationParams( 640 void SetPendingNavigationParams(
641 scoped_ptr<NavigationParams> navigation_params); 641 scoped_ptr<NavigationParams> navigation_params);
642 642
643 media::MediaPermission* GetMediaPermission(); 643 media::MediaPermission* GetMediaPermission();
644 644
645 // Sends the current frame's navigation state to the browser. 645 // Sends the current frame's navigation state to the browser.
646 void SendUpdateState(); 646 void SendUpdateState();
647 647
648 // Creates a MojoBindingsController to allow WebUI documents to communicate 648 // Creates a MojoBindingsController if Mojo bindings have been enabled for
649 // with the browser process. If |for_layout_tests| is true, the module system 649 // this frame. For WebUI, this allows the page to communicate with the browser
650 // is exposed on a global "mojo" object rather than "define". 650 // process; for layout tests, this allows the test to mock out services at
651 void EnableMojoBindings(bool for_layout_tests); 651 // the Mojo IPC layer.
652 void MaybeEnableMojoBindings();
652 653
653 protected: 654 protected:
654 explicit RenderFrameImpl(const CreateParams& params); 655 explicit RenderFrameImpl(const CreateParams& params);
655 656
656 private: 657 private:
657 friend class RenderFrameImplTest; 658 friend class RenderFrameImplTest;
658 friend class RenderFrameObserver; 659 friend class RenderFrameObserver;
659 friend class RendererAccessibilityTest; 660 friend class RendererAccessibilityTest;
660 friend class TestRenderFrame; 661 friend class TestRenderFrame;
661 FRIEND_TEST_ALL_PREFIXES(ExternalPopupMenuDisplayNoneTest, SelectItem); 662 FRIEND_TEST_ALL_PREFIXES(ExternalPopupMenuDisplayNoneTest, SelectItem);
(...skipping 545 matching lines...) Expand 10 before | Expand all | Expand 10 after
1207 #endif 1208 #endif
1208 1209
1209 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; 1210 base::WeakPtrFactory<RenderFrameImpl> weak_factory_;
1210 1211
1211 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); 1212 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl);
1212 }; 1213 };
1213 1214
1214 } // namespace content 1215 } // namespace content
1215 1216
1216 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ 1217 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_
OLDNEW
« 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