| 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 13 matching lines...) Expand all Loading... |
| 24 #include "content/common/accessibility_mode_enums.h" | 24 #include "content/common/accessibility_mode_enums.h" |
| 25 #include "content/common/frame_message_enums.h" | 25 #include "content/common/frame_message_enums.h" |
| 26 #include "content/common/mojo/service_registry_impl.h" | 26 #include "content/common/mojo/service_registry_impl.h" |
| 27 #include "content/public/common/console_message_level.h" | 27 #include "content/public/common/console_message_level.h" |
| 28 #include "content/public/common/javascript_message_type.h" | 28 #include "content/public/common/javascript_message_type.h" |
| 29 #include "content/public/common/referrer.h" | 29 #include "content/public/common/referrer.h" |
| 30 #include "content/public/common/stop_find_action.h" | 30 #include "content/public/common/stop_find_action.h" |
| 31 #include "content/public/renderer/render_frame.h" | 31 #include "content/public/renderer/render_frame.h" |
| 32 #include "content/renderer/frame_blame_context.h" | 32 #include "content/renderer/frame_blame_context.h" |
| 33 #include "content/renderer/mojo/blink_service_registry_impl.h" | 33 #include "content/renderer/mojo/blink_service_registry_impl.h" |
| 34 #include "content/renderer/render_frame_proxy.h" | |
| 35 #include "content/renderer/renderer_webcookiejar_impl.h" | 34 #include "content/renderer/renderer_webcookiejar_impl.h" |
| 36 #include "ipc/ipc_message.h" | 35 #include "ipc/ipc_message.h" |
| 37 #include "ipc/ipc_platform_file.h" | 36 #include "ipc/ipc_platform_file.h" |
| 38 #include "media/blink/webmediaplayer_delegate.h" | 37 #include "media/blink/webmediaplayer_delegate.h" |
| 39 #include "media/blink/webmediaplayer_params.h" | 38 #include "media/blink/webmediaplayer_params.h" |
| 40 #include "services/shell/public/interfaces/connector.mojom.h" | 39 #include "services/shell/public/interfaces/connector.mojom.h" |
| 41 #include "services/shell/public/interfaces/interface_provider.mojom.h" | 40 #include "services/shell/public/interfaces/interface_provider.mojom.h" |
| 42 #include "third_party/WebKit/public/platform/WebEffectiveConnectionType.h" | 41 #include "third_party/WebKit/public/platform/WebEffectiveConnectionType.h" |
| 43 #include "third_party/WebKit/public/platform/WebFocusType.h" | 42 #include "third_party/WebKit/public/platform/WebFocusType.h" |
| 44 #include "third_party/WebKit/public/platform/WebLoadingBehaviorFlag.h" | 43 #include "third_party/WebKit/public/platform/WebLoadingBehaviorFlag.h" |
| (...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 225 // routing ID. Also stores the opener's RenderView routing ID into | 224 // routing ID. Also stores the opener's RenderView routing ID into |
| 226 // |opener_view_routing_id|. | 225 // |opener_view_routing_id|. |
| 227 // | 226 // |
| 228 // TODO(alexmos): remove RenderViewImpl's dependency on | 227 // TODO(alexmos): remove RenderViewImpl's dependency on |
| 229 // opener_view_routing_id. | 228 // opener_view_routing_id. |
| 230 static blink::WebFrame* ResolveOpener(int opener_frame_routing_id, | 229 static blink::WebFrame* ResolveOpener(int opener_frame_routing_id, |
| 231 int* opener_view_routing_id); | 230 int* opener_view_routing_id); |
| 232 | 231 |
| 233 ~RenderFrameImpl() override; | 232 ~RenderFrameImpl() override; |
| 234 | 233 |
| 235 // TODO(nasko): This can be removed once we don't have a swapped out state on | |
| 236 // RenderFrames. See https://crbug.com/357747. | |
| 237 void set_render_frame_proxy(RenderFrameProxy* proxy) { | |
| 238 render_frame_proxy_ = proxy; | |
| 239 } | |
| 240 | |
| 241 // Called by RenderWidget when meaningful layout has happened. | 234 // Called by RenderWidget when meaningful layout has happened. |
| 242 // See RenderFrameObserver::DidMeaningfulLayout declaration for details. | 235 // See RenderFrameObserver::DidMeaningfulLayout declaration for details. |
| 243 void DidMeaningfulLayout(blink::WebMeaningfulLayout layout_type); | 236 void DidMeaningfulLayout(blink::WebMeaningfulLayout layout_type); |
| 244 | 237 |
| 245 // Out-of-process child frames receive a signal from RenderWidgetCompositor | 238 // Out-of-process child frames receive a signal from RenderWidgetCompositor |
| 246 // when a compositor frame has committed. | 239 // when a compositor frame has committed. |
| 247 void DidCommitCompositorFrame(); | 240 void DidCommitCompositorFrame(); |
| 248 | 241 |
| 249 // Draw commands have been issued by RenderWidgetCompositor. | 242 // Draw commands have been issued by RenderWidgetCompositor. |
| 250 void DidCommitAndDrawCompositorFrame(); | 243 void DidCommitAndDrawCompositorFrame(); |
| (...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 582 blink::WebStorageQuotaCallbacks callbacks) override; | 575 blink::WebStorageQuotaCallbacks callbacks) override; |
| 583 void willOpenWebSocket(blink::WebSocketHandle* handle) override; | 576 void willOpenWebSocket(blink::WebSocketHandle* handle) override; |
| 584 blink::WebGeolocationClient* geolocationClient() override; | 577 blink::WebGeolocationClient* geolocationClient() override; |
| 585 blink::WebPushClient* pushClient() override; | 578 blink::WebPushClient* pushClient() override; |
| 586 blink::WebPresentationClient* presentationClient() override; | 579 blink::WebPresentationClient* presentationClient() override; |
| 587 void willStartUsingPeerConnectionHandler( | 580 void willStartUsingPeerConnectionHandler( |
| 588 blink::WebRTCPeerConnectionHandler* handler) override; | 581 blink::WebRTCPeerConnectionHandler* handler) override; |
| 589 blink::WebUserMediaClient* userMediaClient() override; | 582 blink::WebUserMediaClient* userMediaClient() override; |
| 590 blink::WebEncryptedMediaClient* encryptedMediaClient() override; | 583 blink::WebEncryptedMediaClient* encryptedMediaClient() override; |
| 591 blink::WebMIDIClient* webMIDIClient() override; | 584 blink::WebMIDIClient* webMIDIClient() override; |
| 592 bool willCheckAndDispatchMessageEvent( | |
| 593 blink::WebLocalFrame* source_frame, | |
| 594 blink::WebFrame* target_frame, | |
| 595 blink::WebSecurityOrigin target_origin, | |
| 596 blink::WebDOMMessageEvent event) override; | |
| 597 blink::WebString userAgentOverride() override; | 585 blink::WebString userAgentOverride() override; |
| 598 blink::WebString doNotTrackValue() override; | 586 blink::WebString doNotTrackValue() override; |
| 599 bool allowWebGL(bool default_value) override; | 587 bool allowWebGL(bool default_value) override; |
| 600 blink::WebScreenOrientationClient* webScreenOrientationClient() override; | 588 blink::WebScreenOrientationClient* webScreenOrientationClient() override; |
| 601 bool isControlledByServiceWorker(blink::WebDataSource& data_source) override; | 589 bool isControlledByServiceWorker(blink::WebDataSource& data_source) override; |
| 602 int64_t serviceWorkerID(blink::WebDataSource& data_source) override; | 590 int64_t serviceWorkerID(blink::WebDataSource& data_source) override; |
| 603 void postAccessibilityEvent(const blink::WebAXObject& obj, | 591 void postAccessibilityEvent(const blink::WebAXObject& obj, |
| 604 blink::WebAXEvent event) override; | 592 blink::WebAXEvent event) override; |
| 605 void handleAccessibilityFindInPageResult( | 593 void handleAccessibilityFindInPageResult( |
| 606 int identifier, | 594 int identifier, |
| (...skipping 433 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1040 // frame tree at the time the pending navigation commits. | 1028 // frame tree at the time the pending navigation commits. |
| 1041 // Frames added by the parent document are created from the renderer process | 1029 // Frames added by the parent document are created from the renderer process |
| 1042 // and are immediately inserted in the frame tree. | 1030 // and are immediately inserted in the frame tree. |
| 1043 // TODO(dcheng): Remove this once we have FrameTreeHandle and can use the | 1031 // TODO(dcheng): Remove this once we have FrameTreeHandle and can use the |
| 1044 // Blink Web* layer to check for provisional frames. | 1032 // Blink Web* layer to check for provisional frames. |
| 1045 bool in_frame_tree_; | 1033 bool in_frame_tree_; |
| 1046 | 1034 |
| 1047 base::WeakPtr<RenderViewImpl> render_view_; | 1035 base::WeakPtr<RenderViewImpl> render_view_; |
| 1048 int routing_id_; | 1036 int routing_id_; |
| 1049 | 1037 |
| 1050 // TODO(nasko): This can be removed once we don't have a swapped out state on | |
| 1051 // RenderFrame. See https://crbug.com/357747. | |
| 1052 RenderFrameProxy* render_frame_proxy_; | |
| 1053 bool is_detaching_; | 1038 bool is_detaching_; |
| 1054 | 1039 |
| 1055 // If this frame was created to replace a proxy, this will store the routing | 1040 // If this frame was created to replace a proxy, this will store the routing |
| 1056 // id of the proxy to replace at commit-time, at which time it will be | 1041 // id of the proxy to replace at commit-time, at which time it will be |
| 1057 // cleared. | 1042 // cleared. |
| 1058 // TODO(creis): Remove this after switching to PlzNavigate. | 1043 // TODO(creis): Remove this after switching to PlzNavigate. |
| 1059 int proxy_routing_id_; | 1044 int proxy_routing_id_; |
| 1060 | 1045 |
| 1061 // Non-null when the RenderFrame is a local root for compositing, input, | 1046 // Non-null when the RenderFrame is a local root for compositing, input, |
| 1062 // layout, etc. A local frame is also a local root iff it does not have a | 1047 // layout, etc. A local frame is also a local root iff it does not have a |
| (...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1255 #endif | 1240 #endif |
| 1256 | 1241 |
| 1257 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; | 1242 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; |
| 1258 | 1243 |
| 1259 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); | 1244 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); |
| 1260 }; | 1245 }; |
| 1261 | 1246 |
| 1262 } // namespace content | 1247 } // namespace content |
| 1263 | 1248 |
| 1264 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ | 1249 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ |
| OLD | NEW |