Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(13)

Side by Side Diff: content/browser/frame_host/render_frame_host_impl.h

Issue 2884243003: Add a mojo channel for frame messages. (Closed)
Patch Set: Use WeakPtr inside FrameInputHandlerImpl, add comments Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
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 751 matching lines...) Expand 10 before | Expand all | Expand 10 after
1225 1213
1226 // IPC-friendly token that represents this host for AndroidOverlays, if we 1214 // IPC-friendly token that represents this host for AndroidOverlays, if we
1227 // have created one yet. 1215 // have created one yet.
1228 base::Optional<base::UnguessableToken> overlay_routing_token_; 1216 base::Optional<base::UnguessableToken> overlay_routing_token_;
1229 1217
1230 // This value is sent from the renderer and shouldn't be trusted. 1218 // This value is sent from the renderer and shouldn't be trusted.
1231 // TODO(alexclarke): Remove once there is a solution for stable frame IDs. See 1219 // TODO(alexclarke): Remove once there is a solution for stable frame IDs. See
1232 // crbug.com/715541 1220 // crbug.com/715541
1233 std::string untrusted_devtools_frame_id_; 1221 std::string untrusted_devtools_frame_id_;
1234 1222
1223 mojom::FrameInputHandlerPtr frame_input_handler_;
1224 std::unique_ptr<LegacyIPCFrameInputHandler> legacy_frame_input_handler_;
1225
1235 // NOTE: This must be the last member. 1226 // NOTE: This must be the last member.
1236 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; 1227 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_;
1237 1228
1238 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); 1229 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl);
1239 }; 1230 };
1240 1231
1241 } // namespace content 1232 } // namespace content
1242 1233
1243 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ 1234 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698