| 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 838 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 876 #endif | 878 #endif |
| 877 | 879 |
| 878 media::CdmFactory* GetCdmFactory(); | 880 media::CdmFactory* GetCdmFactory(); |
| 879 | 881 |
| 880 void RegisterMojoServices(); | 882 void RegisterMojoServices(); |
| 881 | 883 |
| 882 // Connects to a Mojo application and returns a proxy to its exposed | 884 // Connects to a Mojo application and returns a proxy to its exposed |
| 883 // ServiceProvider. | 885 // ServiceProvider. |
| 884 mojo::ServiceProviderPtr ConnectToApplication(const GURL& url); | 886 mojo::ServiceProviderPtr ConnectToApplication(const GURL& url); |
| 885 | 887 |
| 888 // Asynchronously checks that |sink_id| exists and is authorized to be used |
| 889 // on |security_origin|. |
| 890 void checkIfAudioSinkExistsAndIsAuthorized( |
| 891 const blink::WebString& sink_id, |
| 892 const blink::WebSecurityOrigin& security_origin, |
| 893 blink::WebSetSinkIdCallbacks* callback) override; |
| 894 |
| 895 // Checks that |device_id| exists and is authorized to be used on |
| 896 // |security_origin|. |
| 897 void DoCheckIfAudioSinkExistsAndIsAuthorized( |
| 898 const std::string& device_id, |
| 899 const url::Origin& security_origin, |
| 900 const media::SwitchOutputDeviceCB& callback); |
| 901 |
| 886 // Stores the WebLocalFrame we are associated with. This is null from the | 902 // Stores the WebLocalFrame we are associated with. This is null from the |
| 887 // constructor until SetWebFrame is called, and it is null after | 903 // constructor until SetWebFrame is called, and it is null after |
| 888 // frameDetached is called until destruction (which is asynchronous in the | 904 // frameDetached is called until destruction (which is asynchronous in the |
| 889 // case of the main frame, but not subframes). | 905 // case of the main frame, but not subframes). |
| 890 blink::WebLocalFrame* frame_; | 906 blink::WebLocalFrame* frame_; |
| 891 | 907 |
| 892 // Boolean value indicating whether this RenderFrameImpl object is for the | 908 // Boolean value indicating whether this RenderFrameImpl object is for the |
| 893 // main frame or not. It remains accurate during destruction, even when | 909 // main frame or not. It remains accurate during destruction, even when |
| 894 // |frame_| has been invalidated. | 910 // |frame_| has been invalidated. |
| 895 bool is_main_frame_; | 911 bool is_main_frame_; |
| (...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1078 #endif | 1094 #endif |
| 1079 | 1095 |
| 1080 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; | 1096 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; |
| 1081 | 1097 |
| 1082 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); | 1098 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); |
| 1083 }; | 1099 }; |
| 1084 | 1100 |
| 1085 } // namespace content | 1101 } // namespace content |
| 1086 | 1102 |
| 1087 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ | 1103 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ |
| OLD | NEW |