| 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 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 223 // routing ID. Also stores the opener's RenderView routing ID into | 222 // routing ID. Also stores the opener's RenderView routing ID into |
| 224 // |opener_view_routing_id|. | 223 // |opener_view_routing_id|. |
| 225 // | 224 // |
| 226 // TODO(alexmos): remove RenderViewImpl's dependency on | 225 // TODO(alexmos): remove RenderViewImpl's dependency on |
| 227 // opener_view_routing_id. | 226 // opener_view_routing_id. |
| 228 static blink::WebFrame* ResolveOpener(int opener_frame_routing_id, | 227 static blink::WebFrame* ResolveOpener(int opener_frame_routing_id, |
| 229 int* opener_view_routing_id); | 228 int* opener_view_routing_id); |
| 230 | 229 |
| 231 ~RenderFrameImpl() override; | 230 ~RenderFrameImpl() override; |
| 232 | 231 |
| 233 // TODO(nasko): This can be removed once we don't have a swapped out state on | |
| 234 // RenderFrames. See https://crbug.com/357747. | |
| 235 void set_render_frame_proxy(RenderFrameProxy* proxy) { | |
| 236 render_frame_proxy_ = proxy; | |
| 237 } | |
| 238 | |
| 239 // Called by RenderWidget when meaningful layout has happened. | 232 // Called by RenderWidget when meaningful layout has happened. |
| 240 // See RenderFrameObserver::DidMeaningfulLayout declaration for details. | 233 // See RenderFrameObserver::DidMeaningfulLayout declaration for details. |
| 241 void DidMeaningfulLayout(blink::WebMeaningfulLayout layout_type); | 234 void DidMeaningfulLayout(blink::WebMeaningfulLayout layout_type); |
| 242 | 235 |
| 243 // Out-of-process child frames receive a signal from RenderWidgetCompositor | 236 // Out-of-process child frames receive a signal from RenderWidgetCompositor |
| 244 // when a compositor frame has committed. | 237 // when a compositor frame has committed. |
| 245 void DidCommitCompositorFrame(); | 238 void DidCommitCompositorFrame(); |
| 246 | 239 |
| 247 // Draw commands have been issued by RenderWidgetCompositor. | 240 // Draw commands have been issued by RenderWidgetCompositor. |
| 248 void DidCommitAndDrawCompositorFrame(); | 241 void DidCommitAndDrawCompositorFrame(); |
| (...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 580 unsigned long long requested_size, | 573 unsigned long long requested_size, |
| 581 blink::WebStorageQuotaCallbacks callbacks) override; | 574 blink::WebStorageQuotaCallbacks callbacks) override; |
| 582 void willOpenWebSocket(blink::WebSocketHandle* handle) override; | 575 void willOpenWebSocket(blink::WebSocketHandle* handle) override; |
| 583 blink::WebPushClient* pushClient() override; | 576 blink::WebPushClient* pushClient() override; |
| 584 blink::WebPresentationClient* presentationClient() override; | 577 blink::WebPresentationClient* presentationClient() override; |
| 585 void willStartUsingPeerConnectionHandler( | 578 void willStartUsingPeerConnectionHandler( |
| 586 blink::WebRTCPeerConnectionHandler* handler) override; | 579 blink::WebRTCPeerConnectionHandler* handler) override; |
| 587 blink::WebUserMediaClient* userMediaClient() override; | 580 blink::WebUserMediaClient* userMediaClient() override; |
| 588 blink::WebEncryptedMediaClient* encryptedMediaClient() override; | 581 blink::WebEncryptedMediaClient* encryptedMediaClient() override; |
| 589 blink::WebMIDIClient* webMIDIClient() override; | 582 blink::WebMIDIClient* webMIDIClient() override; |
| 590 bool willCheckAndDispatchMessageEvent( | |
| 591 blink::WebLocalFrame* source_frame, | |
| 592 blink::WebFrame* target_frame, | |
| 593 blink::WebSecurityOrigin target_origin, | |
| 594 blink::WebDOMMessageEvent event) override; | |
| 595 blink::WebString userAgentOverride() override; | 583 blink::WebString userAgentOverride() override; |
| 596 blink::WebString doNotTrackValue() override; | 584 blink::WebString doNotTrackValue() override; |
| 597 bool allowWebGL(bool default_value) override; | 585 bool allowWebGL(bool default_value) override; |
| 598 blink::WebScreenOrientationClient* webScreenOrientationClient() override; | 586 blink::WebScreenOrientationClient* webScreenOrientationClient() override; |
| 599 bool isControlledByServiceWorker(blink::WebDataSource& data_source) override; | 587 bool isControlledByServiceWorker(blink::WebDataSource& data_source) override; |
| 600 int64_t serviceWorkerID(blink::WebDataSource& data_source) override; | 588 int64_t serviceWorkerID(blink::WebDataSource& data_source) override; |
| 601 void postAccessibilityEvent(const blink::WebAXObject& obj, | 589 void postAccessibilityEvent(const blink::WebAXObject& obj, |
| 602 blink::WebAXEvent event) override; | 590 blink::WebAXEvent event) override; |
| 603 void handleAccessibilityFindInPageResult( | 591 void handleAccessibilityFindInPageResult( |
| 604 int identifier, | 592 int identifier, |
| (...skipping 434 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1039 // frame tree at the time the pending navigation commits. | 1027 // frame tree at the time the pending navigation commits. |
| 1040 // Frames added by the parent document are created from the renderer process | 1028 // Frames added by the parent document are created from the renderer process |
| 1041 // and are immediately inserted in the frame tree. | 1029 // and are immediately inserted in the frame tree. |
| 1042 // TODO(dcheng): Remove this once we have FrameTreeHandle and can use the | 1030 // TODO(dcheng): Remove this once we have FrameTreeHandle and can use the |
| 1043 // Blink Web* layer to check for provisional frames. | 1031 // Blink Web* layer to check for provisional frames. |
| 1044 bool in_frame_tree_; | 1032 bool in_frame_tree_; |
| 1045 | 1033 |
| 1046 base::WeakPtr<RenderViewImpl> render_view_; | 1034 base::WeakPtr<RenderViewImpl> render_view_; |
| 1047 int routing_id_; | 1035 int routing_id_; |
| 1048 | 1036 |
| 1049 // TODO(nasko): This can be removed once we don't have a swapped out state on | |
| 1050 // RenderFrame. See https://crbug.com/357747. | |
| 1051 RenderFrameProxy* render_frame_proxy_; | |
| 1052 bool is_detaching_; | 1037 bool is_detaching_; |
| 1053 | 1038 |
| 1054 // If this frame was created to replace a proxy, this will store the routing | 1039 // If this frame was created to replace a proxy, this will store the routing |
| 1055 // id of the proxy to replace at commit-time, at which time it will be | 1040 // id of the proxy to replace at commit-time, at which time it will be |
| 1056 // cleared. | 1041 // cleared. |
| 1057 // TODO(creis): Remove this after switching to PlzNavigate. | 1042 // TODO(creis): Remove this after switching to PlzNavigate. |
| 1058 int proxy_routing_id_; | 1043 int proxy_routing_id_; |
| 1059 | 1044 |
| 1060 // Non-null when the RenderFrame is a local root for compositing, input, | 1045 // Non-null when the RenderFrame is a local root for compositing, input, |
| 1061 // layout, etc. A local frame is also a local root iff it does not have a | 1046 // layout, etc. A local frame is also a local root iff it does not have a |
| (...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1251 #endif | 1236 #endif |
| 1252 | 1237 |
| 1253 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; | 1238 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; |
| 1254 | 1239 |
| 1255 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); | 1240 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); |
| 1256 }; | 1241 }; |
| 1257 | 1242 |
| 1258 } // namespace content | 1243 } // namespace content |
| 1259 | 1244 |
| 1260 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ | 1245 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ |
| OLD | NEW |