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 <string> |
8 #include <vector> | 9 #include <vector> |
9 | 10 |
10 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
11 #include "base/files/file_path.h" | 12 #include "base/files/file_path.h" |
12 #include "base/gtest_prod_util.h" | 13 #include "base/gtest_prod_util.h" |
13 #include "base/id_map.h" | 14 #include "base/id_map.h" |
14 #include "base/memory/scoped_ptr.h" | 15 #include "base/memory/scoped_ptr.h" |
15 #include "base/memory/weak_ptr.h" | 16 #include "base/memory/weak_ptr.h" |
16 #include "base/observer_list.h" | 17 #include "base/observer_list.h" |
17 #include "base/process/process_handle.h" | 18 #include "base/process/process_handle.h" |
18 #include "content/common/accessibility_mode_enums.h" | 19 #include "content/common/accessibility_mode_enums.h" |
19 #include "content/common/frame_message_enums.h" | 20 #include "content/common/frame_message_enums.h" |
20 #include "content/common/mojo/service_registry_impl.h" | 21 #include "content/common/mojo/service_registry_impl.h" |
21 #include "content/public/common/console_message_level.h" | 22 #include "content/public/common/console_message_level.h" |
22 #include "content/public/common/javascript_message_type.h" | 23 #include "content/public/common/javascript_message_type.h" |
23 #include "content/public/common/referrer.h" | 24 #include "content/public/common/referrer.h" |
24 #include "content/public/renderer/render_frame.h" | 25 #include "content/public/renderer/render_frame.h" |
25 #include "content/renderer/render_frame_proxy.h" | 26 #include "content/renderer/render_frame_proxy.h" |
26 #include "content/renderer/renderer_webcookiejar_impl.h" | 27 #include "content/renderer/renderer_webcookiejar_impl.h" |
27 #include "ipc/ipc_message.h" | 28 #include "ipc/ipc_message.h" |
| 29 #include "media/base/output_device.h" |
28 #include "media/blink/webmediaplayer_delegate.h" | 30 #include "media/blink/webmediaplayer_delegate.h" |
29 #include "media/blink/webmediaplayer_params.h" | 31 #include "media/blink/webmediaplayer_params.h" |
30 #include "mojo/application/public/interfaces/service_provider.mojom.h" | 32 #include "mojo/application/public/interfaces/service_provider.mojom.h" |
31 #include "mojo/application/public/interfaces/shell.mojom.h" | 33 #include "mojo/application/public/interfaces/shell.mojom.h" |
32 #include "third_party/WebKit/public/platform/modules/app_banner/WebAppBannerClie
nt.h" | 34 #include "third_party/WebKit/public/platform/modules/app_banner/WebAppBannerClie
nt.h" |
33 #include "third_party/WebKit/public/web/WebAXObject.h" | 35 #include "third_party/WebKit/public/web/WebAXObject.h" |
34 #include "third_party/WebKit/public/web/WebDataSource.h" | 36 #include "third_party/WebKit/public/web/WebDataSource.h" |
35 #include "third_party/WebKit/public/web/WebFrameClient.h" | 37 #include "third_party/WebKit/public/web/WebFrameClient.h" |
36 #include "third_party/WebKit/public/web/WebHistoryCommitType.h" | 38 #include "third_party/WebKit/public/web/WebHistoryCommitType.h" |
37 #include "third_party/WebKit/public/web/WebMeaningfulLayout.h" | 39 #include "third_party/WebKit/public/web/WebMeaningfulLayout.h" |
(...skipping 529 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
567 bool exitFullscreen() override; | 569 bool exitFullscreen() override; |
568 blink::WebPermissionClient* permissionClient() override; | 570 blink::WebPermissionClient* permissionClient() override; |
569 blink::WebAppBannerClient* appBannerClient() override; | 571 blink::WebAppBannerClient* appBannerClient() override; |
570 void registerProtocolHandler(const blink::WebString& scheme, | 572 void registerProtocolHandler(const blink::WebString& scheme, |
571 const blink::WebURL& url, | 573 const blink::WebURL& url, |
572 const blink::WebString& title) override; | 574 const blink::WebString& title) override; |
573 void unregisterProtocolHandler(const blink::WebString& scheme, | 575 void unregisterProtocolHandler(const blink::WebString& scheme, |
574 const blink::WebURL& url) override; | 576 const blink::WebURL& url) override; |
575 blink::WebBluetooth* bluetooth() override; | 577 blink::WebBluetooth* bluetooth() override; |
576 blink::WebUSBClient* usbClient() override; | 578 blink::WebUSBClient* usbClient() override; |
| 579 void checkIfAudioSinkExistsAndIsAuthorized( |
| 580 const blink::WebString& sink_id, |
| 581 const blink::WebSecurityOrigin& security_origin, |
| 582 blink::WebSetSinkIdCallbacks* callback) override; |
577 | 583 |
578 #if defined(ENABLE_WEBVR) | 584 #if defined(ENABLE_WEBVR) |
579 blink::WebVRClient* webVRClient() override; | 585 blink::WebVRClient* webVRClient() override; |
580 #endif | 586 #endif |
581 | 587 |
582 // WebMediaPlayerDelegate implementation: | 588 // WebMediaPlayerDelegate implementation: |
583 void DidPlay(blink::WebMediaPlayer* player) override; | 589 void DidPlay(blink::WebMediaPlayer* player) override; |
584 void DidPause(blink::WebMediaPlayer* player) override; | 590 void DidPause(blink::WebMediaPlayer* player) override; |
585 void PlayerGone(blink::WebMediaPlayer* player) override; | 591 void PlayerGone(blink::WebMediaPlayer* player) override; |
586 | 592 |
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
876 #endif | 882 #endif |
877 | 883 |
878 media::CdmFactory* GetCdmFactory(); | 884 media::CdmFactory* GetCdmFactory(); |
879 | 885 |
880 void RegisterMojoServices(); | 886 void RegisterMojoServices(); |
881 | 887 |
882 // Connects to a Mojo application and returns a proxy to its exposed | 888 // Connects to a Mojo application and returns a proxy to its exposed |
883 // ServiceProvider. | 889 // ServiceProvider. |
884 mojo::ServiceProviderPtr ConnectToApplication(const GURL& url); | 890 mojo::ServiceProviderPtr ConnectToApplication(const GURL& url); |
885 | 891 |
| 892 // Checks that |device_id| exists and is authorized to be used on |
| 893 // |security_origin|. |
| 894 void DoCheckIfAudioSinkExistsAndIsAuthorized( |
| 895 const std::string& device_id, |
| 896 const url::Origin& security_origin, |
| 897 const media::SwitchOutputDeviceCB& callback); |
| 898 |
886 // Stores the WebLocalFrame we are associated with. This is null from the | 899 // Stores the WebLocalFrame we are associated with. This is null from the |
887 // constructor until SetWebFrame is called, and it is null after | 900 // constructor until SetWebFrame is called, and it is null after |
888 // frameDetached is called until destruction (which is asynchronous in the | 901 // frameDetached is called until destruction (which is asynchronous in the |
889 // case of the main frame, but not subframes). | 902 // case of the main frame, but not subframes). |
890 blink::WebLocalFrame* frame_; | 903 blink::WebLocalFrame* frame_; |
891 | 904 |
892 // Boolean value indicating whether this RenderFrameImpl object is for the | 905 // Boolean value indicating whether this RenderFrameImpl object is for the |
893 // main frame or not. It remains accurate during destruction, even when | 906 // main frame or not. It remains accurate during destruction, even when |
894 // |frame_| has been invalidated. | 907 // |frame_| has been invalidated. |
895 bool is_main_frame_; | 908 bool is_main_frame_; |
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1078 #endif | 1091 #endif |
1079 | 1092 |
1080 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; | 1093 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; |
1081 | 1094 |
1082 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); | 1095 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); |
1083 }; | 1096 }; |
1084 | 1097 |
1085 } // namespace content | 1098 } // namespace content |
1086 | 1099 |
1087 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ | 1100 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ |
OLD | NEW |