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 25 matching lines...) Expand all Loading... |
36 #include "media/blink/webmediaplayer_params.h" | 36 #include "media/blink/webmediaplayer_params.h" |
37 #include "mojo/application/public/interfaces/service_provider.mojom.h" | 37 #include "mojo/application/public/interfaces/service_provider.mojom.h" |
38 #include "mojo/application/public/interfaces/shell.mojom.h" | 38 #include "mojo/application/public/interfaces/shell.mojom.h" |
39 #include "third_party/WebKit/public/platform/WebFocusType.h" | 39 #include "third_party/WebKit/public/platform/WebFocusType.h" |
40 #include "third_party/WebKit/public/platform/modules/app_banner/WebAppBannerClie
nt.h" | 40 #include "third_party/WebKit/public/platform/modules/app_banner/WebAppBannerClie
nt.h" |
41 #include "third_party/WebKit/public/web/WebAXObject.h" | 41 #include "third_party/WebKit/public/web/WebAXObject.h" |
42 #include "third_party/WebKit/public/web/WebDataSource.h" | 42 #include "third_party/WebKit/public/web/WebDataSource.h" |
43 #include "third_party/WebKit/public/web/WebFrameClient.h" | 43 #include "third_party/WebKit/public/web/WebFrameClient.h" |
44 #include "third_party/WebKit/public/web/WebFrameLoadType.h" | 44 #include "third_party/WebKit/public/web/WebFrameLoadType.h" |
45 #include "third_party/WebKit/public/web/WebFrameOwnerProperties.h" | 45 #include "third_party/WebKit/public/web/WebFrameOwnerProperties.h" |
| 46 #include "third_party/WebKit/public/web/WebFrameSerializerClient.h" |
46 #include "third_party/WebKit/public/web/WebHistoryCommitType.h" | 47 #include "third_party/WebKit/public/web/WebHistoryCommitType.h" |
47 #include "third_party/WebKit/public/web/WebMeaningfulLayout.h" | 48 #include "third_party/WebKit/public/web/WebMeaningfulLayout.h" |
48 #include "third_party/WebKit/public/web/WebPageSerializerClient.h" | |
49 #include "third_party/WebKit/public/web/WebScriptExecutionCallback.h" | 49 #include "third_party/WebKit/public/web/WebScriptExecutionCallback.h" |
50 #include "ui/gfx/range/range.h" | 50 #include "ui/gfx/range/range.h" |
51 #include "url/gurl.h" | 51 #include "url/gurl.h" |
52 | 52 |
53 #if defined(ENABLE_PLUGINS) | 53 #if defined(ENABLE_PLUGINS) |
54 #include "content/renderer/pepper/plugin_power_saver_helper.h" | 54 #include "content/renderer/pepper/plugin_power_saver_helper.h" |
55 #endif | 55 #endif |
56 | 56 |
57 #if defined(OS_ANDROID) | 57 #if defined(OS_ANDROID) |
58 #include "content/renderer/media/android/renderer_media_player_manager.h" | 58 #include "content/renderer/media/android/renderer_media_player_manager.h" |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 struct NavigationParams; | 144 struct NavigationParams; |
145 struct RequestNavigationParams; | 145 struct RequestNavigationParams; |
146 struct ResourceResponseHead; | 146 struct ResourceResponseHead; |
147 struct StartNavigationParams; | 147 struct StartNavigationParams; |
148 struct StreamOverrideParameters; | 148 struct StreamOverrideParameters; |
149 class VRDispatcher; | 149 class VRDispatcher; |
150 | 150 |
151 class CONTENT_EXPORT RenderFrameImpl | 151 class CONTENT_EXPORT RenderFrameImpl |
152 : public RenderFrame, | 152 : public RenderFrame, |
153 NON_EXPORTED_BASE(public blink::WebFrameClient), | 153 NON_EXPORTED_BASE(public blink::WebFrameClient), |
154 NON_EXPORTED_BASE(public blink::WebPageSerializerClient) { | 154 NON_EXPORTED_BASE(public blink::WebFrameSerializerClient) { |
155 public: | 155 public: |
156 // Creates a new RenderFrame as the main frame of |render_view|. | 156 // Creates a new RenderFrame as the main frame of |render_view|. |
157 static RenderFrameImpl* CreateMainFrame( | 157 static RenderFrameImpl* CreateMainFrame( |
158 RenderViewImpl* render_view, | 158 RenderViewImpl* render_view, |
159 int32_t routing_id, | 159 int32_t routing_id, |
160 int32_t widget_routing_id, | 160 int32_t widget_routing_id, |
161 bool hidden, | 161 bool hidden, |
162 const blink::WebScreenInfo& screen_info, | 162 const blink::WebScreenInfo& screen_info, |
163 CompositorDependencies* compositor_deps); | 163 CompositorDependencies* compositor_deps); |
164 | 164 |
(...skipping 443 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
608 blink::WebUSBClient* usbClient() override; | 608 blink::WebUSBClient* usbClient() override; |
609 void checkIfAudioSinkExistsAndIsAuthorized( | 609 void checkIfAudioSinkExistsAndIsAuthorized( |
610 const blink::WebString& sink_id, | 610 const blink::WebString& sink_id, |
611 const blink::WebSecurityOrigin& security_origin, | 611 const blink::WebSecurityOrigin& security_origin, |
612 blink::WebSetSinkIdCallbacks* web_callbacks) override; | 612 blink::WebSetSinkIdCallbacks* web_callbacks) override; |
613 | 613 |
614 #if defined(ENABLE_WEBVR) | 614 #if defined(ENABLE_WEBVR) |
615 blink::WebVRClient* webVRClient() override; | 615 blink::WebVRClient* webVRClient() override; |
616 #endif | 616 #endif |
617 | 617 |
618 // WebPageSerializerClient implementation: | 618 // WebFrameSerializerClient implementation: |
619 void didSerializeDataForFrame( | 619 void didSerializeDataForFrame( |
620 const blink::WebCString& data, | 620 const blink::WebCString& data, |
621 blink::WebPageSerializerClient::PageSerializationStatus status) override; | 621 blink::WebFrameSerializerClient::FrameSerializationStatus status) |
| 622 override; |
622 | 623 |
623 // Make this frame show an empty, unscriptable page. | 624 // Make this frame show an empty, unscriptable page. |
624 // TODO(nasko): Remove this method once swapped out state is no longer used. | 625 // TODO(nasko): Remove this method once swapped out state is no longer used. |
625 void NavigateToSwappedOutURL(); | 626 void NavigateToSwappedOutURL(); |
626 | 627 |
627 // Binds this render frame's service registry. | 628 // Binds this render frame's service registry. |
628 void BindServiceRegistry( | 629 void BindServiceRegistry( |
629 mojo::InterfaceRequest<mojo::ServiceProvider> services, | 630 mojo::InterfaceRequest<mojo::ServiceProvider> services, |
630 mojo::ServiceProviderPtr exposed_services); | 631 mojo::ServiceProviderPtr exposed_services); |
631 | 632 |
(...skipping 533 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1165 #endif | 1166 #endif |
1166 | 1167 |
1167 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; | 1168 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; |
1168 | 1169 |
1169 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); | 1170 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); |
1170 }; | 1171 }; |
1171 | 1172 |
1172 } // namespace content | 1173 } // namespace content |
1173 | 1174 |
1174 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ | 1175 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ |
OLD | NEW |