| 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 636 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 647 // Expose MediaPermission to the non-UI threads. Any calls to this will be | 647 // Expose MediaPermission to the non-UI threads. Any calls to this will be |
| 648 // redirected to |media_permission_dispatcher_| on UI thread and have the | 648 // redirected to |media_permission_dispatcher_| on UI thread and have the |
| 649 // callback called on |caller_task_runner|. | 649 // callback called on |caller_task_runner|. |
| 650 scoped_ptr<media::MediaPermission> CreateMediaPermissionProxy( | 650 scoped_ptr<media::MediaPermission> CreateMediaPermissionProxy( |
| 651 scoped_refptr<base::SingleThreadTaskRunner> caller_task_runner); | 651 scoped_refptr<base::SingleThreadTaskRunner> caller_task_runner); |
| 652 | 652 |
| 653 // Sends the current frame's navigation state to the browser. | 653 // Sends the current frame's navigation state to the browser. |
| 654 void SendUpdateState(); | 654 void SendUpdateState(); |
| 655 | 655 |
| 656 // Creates a MojoBindingsController to allow WebUI documents to communicate | 656 // Creates a MojoBindingsController to allow WebUI documents to communicate |
| 657 // with the browser process. | 657 // with the browser process. If |for_layout_tests| is true, the module system |
| 658 void EnableMojoBindings(); | 658 // is exposed on a global "mojo" object rather than "define". |
| 659 void EnableMojoBindings(bool for_layout_tests); |
| 659 | 660 |
| 660 protected: | 661 protected: |
| 661 explicit RenderFrameImpl(const CreateParams& params); | 662 explicit RenderFrameImpl(const CreateParams& params); |
| 662 | 663 |
| 663 private: | 664 private: |
| 664 friend class RenderFrameImplTest; | 665 friend class RenderFrameImplTest; |
| 665 friend class RenderFrameObserver; | 666 friend class RenderFrameObserver; |
| 666 friend class RendererAccessibilityTest; | 667 friend class RendererAccessibilityTest; |
| 667 friend class TestRenderFrame; | 668 friend class TestRenderFrame; |
| 668 FRIEND_TEST_ALL_PREFIXES(ExternalPopupMenuDisplayNoneTest, SelectItem); | 669 FRIEND_TEST_ALL_PREFIXES(ExternalPopupMenuDisplayNoneTest, SelectItem); |
| (...skipping 527 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1196 #endif | 1197 #endif |
| 1197 | 1198 |
| 1198 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; | 1199 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; |
| 1199 | 1200 |
| 1200 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); | 1201 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); |
| 1201 }; | 1202 }; |
| 1202 | 1203 |
| 1203 } // namespace content | 1204 } // namespace content |
| 1204 | 1205 |
| 1205 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ | 1206 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ |
| OLD | NEW |