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_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 class ListValue; | 78 class ListValue; |
79 } | 79 } |
80 | 80 |
81 namespace gfx { | 81 namespace gfx { |
82 class Range; | 82 class Range; |
83 } | 83 } |
84 | 84 |
85 namespace content { | 85 namespace content { |
86 class AssociatedInterfaceProviderImpl; | 86 class AssociatedInterfaceProviderImpl; |
87 class AssociatedInterfaceRegistryImpl; | 87 class AssociatedInterfaceRegistryImpl; |
| 88 class LegacyIPCFrameInputHandler; |
88 class FeaturePolicy; | 89 class FeaturePolicy; |
89 class FrameTree; | 90 class FrameTree; |
90 class FrameTreeNode; | 91 class FrameTreeNode; |
91 class MediaInterfaceProxy; | 92 class MediaInterfaceProxy; |
92 class NavigationHandleImpl; | 93 class NavigationHandleImpl; |
93 class PermissionServiceContext; | 94 class PermissionServiceContext; |
94 class RenderFrameHostDelegate; | 95 class RenderFrameHostDelegate; |
95 class RenderFrameProxyHost; | 96 class RenderFrameProxyHost; |
96 class RenderProcessHost; | 97 class RenderProcessHost; |
97 class RenderViewHostImpl; | 98 class RenderViewHostImpl; |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
222 // CSPContext | 223 // CSPContext |
223 void ReportContentSecurityPolicyViolation( | 224 void ReportContentSecurityPolicyViolation( |
224 const CSPViolationParams& violation_params) override; | 225 const CSPViolationParams& violation_params) override; |
225 bool SchemeShouldBypassCSP(const base::StringPiece& scheme) override; | 226 bool SchemeShouldBypassCSP(const base::StringPiece& scheme) override; |
226 void SanitizeDataForUseInCspViolation( | 227 void SanitizeDataForUseInCspViolation( |
227 bool is_redirect, | 228 bool is_redirect, |
228 CSPDirective::Name directive, | 229 CSPDirective::Name directive, |
229 GURL* blocked_url, | 230 GURL* blocked_url, |
230 SourceLocation* source_location) const override; | 231 SourceLocation* source_location) const override; |
231 | 232 |
| 233 mojom::FrameInputHandler* GetFrameInputHandler() override; |
| 234 |
232 // Creates a RenderFrame in the renderer process. | 235 // Creates a RenderFrame in the renderer process. |
233 bool CreateRenderFrame(int proxy_routing_id, | 236 bool CreateRenderFrame(int proxy_routing_id, |
234 int opener_routing_id, | 237 int opener_routing_id, |
235 int parent_routing_id, | 238 int parent_routing_id, |
236 int previous_sibling_routing_id); | 239 int previous_sibling_routing_id); |
237 | 240 |
238 // Tracks whether the RenderFrame for this RenderFrameHost has been created in | 241 // Tracks whether the RenderFrame for this RenderFrameHost has been created in |
239 // the renderer process. This is currently only used for subframes. | 242 // the renderer process. This is currently only used for subframes. |
240 // TODO(creis): Use this for main frames as well when RVH goes away. | 243 // TODO(creis): Use this for main frames as well when RVH goes away. |
241 void SetRenderFrameCreated(bool created); | 244 void SetRenderFrameCreated(bool created); |
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
439 // Set this frame as focused in the renderer process. This supports | 442 // Set this frame as focused in the renderer process. This supports |
440 // cross-process window.focus() calls. | 443 // cross-process window.focus() calls. |
441 void SetFocusedFrame(); | 444 void SetFocusedFrame(); |
442 | 445 |
443 // Continues sequential focus navigation in this frame. |source_proxy| | 446 // Continues sequential focus navigation in this frame. |source_proxy| |
444 // represents the frame that requested a focus change. It must be in the same | 447 // represents the frame that requested a focus change. It must be in the same |
445 // process as this or |nullptr|. | 448 // process as this or |nullptr|. |
446 void AdvanceFocus(blink::WebFocusType type, | 449 void AdvanceFocus(blink::WebFocusType type, |
447 RenderFrameProxyHost* source_proxy); | 450 RenderFrameProxyHost* source_proxy); |
448 | 451 |
449 // Deletes the current selection plus the specified number of characters | |
450 // before and after the selection or caret. | |
451 void ExtendSelectionAndDelete(size_t before, size_t after); | |
452 | |
453 // Deletes text before and after the current cursor position, excluding the | |
454 // selection. The lengths are supplied in Java chars (UTF-16 Code Unit), not | |
455 // in code points or in glyphs. | |
456 void DeleteSurroundingText(size_t before, size_t after); | |
457 | |
458 // Deletes text before and after the current cursor position, excluding the | |
459 // selection. The lengths are supplied in code points, not in Java chars | |
460 // (UTF-16 Code Unit) or in glyphs. Do nothing if there are one or more | |
461 // invalid surrogate pairs in the requested range. | |
462 void DeleteSurroundingTextInCodePoints(int before, int after); | |
463 | |
464 // Notifies the RenderFrame that the JavaScript message that was shown was | 452 // Notifies the RenderFrame that the JavaScript message that was shown was |
465 // closed by the user. | 453 // closed by the user. |
466 void JavaScriptDialogClosed(IPC::Message* reply_msg, | 454 void JavaScriptDialogClosed(IPC::Message* reply_msg, |
467 bool success, | 455 bool success, |
468 const base::string16& user_input); | 456 const base::string16& user_input); |
469 | 457 |
470 // Get the accessibility mode from the delegate and Send a message to the | 458 // Get the accessibility mode from the delegate and Send a message to the |
471 // renderer process to change the accessibility mode. | 459 // renderer process to change the accessibility mode. |
472 void UpdateAccessibilityMode(); | 460 void UpdateAccessibilityMode(); |
473 | 461 |
(...skipping 764 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1238 | 1226 |
1239 // IPC-friendly token that represents this host for AndroidOverlays, if we | 1227 // IPC-friendly token that represents this host for AndroidOverlays, if we |
1240 // have created one yet. | 1228 // have created one yet. |
1241 base::Optional<base::UnguessableToken> overlay_routing_token_; | 1229 base::Optional<base::UnguessableToken> overlay_routing_token_; |
1242 | 1230 |
1243 // This value is sent from the renderer and shouldn't be trusted. | 1231 // This value is sent from the renderer and shouldn't be trusted. |
1244 // TODO(alexclarke): Remove once there is a solution for stable frame IDs. See | 1232 // TODO(alexclarke): Remove once there is a solution for stable frame IDs. See |
1245 // crbug.com/715541 | 1233 // crbug.com/715541 |
1246 std::string untrusted_devtools_frame_id_; | 1234 std::string untrusted_devtools_frame_id_; |
1247 | 1235 |
| 1236 mojom::FrameInputHandlerPtr frame_input_handler_; |
| 1237 std::unique_ptr<LegacyIPCFrameInputHandler> legacy_frame_input_handler_; |
| 1238 |
1248 // NOTE: This must be the last member. | 1239 // NOTE: This must be the last member. |
1249 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; | 1240 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; |
1250 | 1241 |
1251 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); | 1242 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); |
1252 }; | 1243 }; |
1253 | 1244 |
1254 } // namespace content | 1245 } // namespace content |
1255 | 1246 |
1256 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 1247 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
OLD | NEW |