OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |