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

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: 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 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 gfx::NativeViewAccessible AccessibilityGetNativeViewAccessible() override; 217 gfx::NativeViewAccessible AccessibilityGetNativeViewAccessible() override;
217 218
218 // SiteInstanceImpl::Observer 219 // SiteInstanceImpl::Observer
219 void RenderProcessGone(SiteInstanceImpl* site_instance) override; 220 void RenderProcessGone(SiteInstanceImpl* site_instance) override;
220 221
221 // CSPContext 222 // CSPContext
222 void ReportContentSecurityPolicyViolation( 223 void ReportContentSecurityPolicyViolation(
223 const CSPViolationParams& violation_params) override; 224 const CSPViolationParams& violation_params) override;
224 bool SchemeShouldBypassCSP(const base::StringPiece& scheme) override; 225 bool SchemeShouldBypassCSP(const base::StringPiece& scheme) override;
225 226
227 mojom::FrameInputHandler* GetFrameInputHandler() override;
228
226 // Creates a RenderFrame in the renderer process. 229 // Creates a RenderFrame in the renderer process.
227 bool CreateRenderFrame(int proxy_routing_id, 230 bool CreateRenderFrame(int proxy_routing_id,
228 int opener_routing_id, 231 int opener_routing_id,
229 int parent_routing_id, 232 int parent_routing_id,
230 int previous_sibling_routing_id); 233 int previous_sibling_routing_id);
231 234
232 // Tracks whether the RenderFrame for this RenderFrameHost has been created in 235 // Tracks whether the RenderFrame for this RenderFrameHost has been created in
233 // the renderer process. This is currently only used for subframes. 236 // the renderer process. This is currently only used for subframes.
234 // TODO(creis): Use this for main frames as well when RVH goes away. 237 // TODO(creis): Use this for main frames as well when RVH goes away.
235 void SetRenderFrameCreated(bool created); 238 void SetRenderFrameCreated(bool created);
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
433 // Set this frame as focused in the renderer process. This supports 436 // Set this frame as focused in the renderer process. This supports
434 // cross-process window.focus() calls. 437 // cross-process window.focus() calls.
435 void SetFocusedFrame(); 438 void SetFocusedFrame();
436 439
437 // Continues sequential focus navigation in this frame. |source_proxy| 440 // Continues sequential focus navigation in this frame. |source_proxy|
438 // represents the frame that requested a focus change. It must be in the same 441 // represents the frame that requested a focus change. It must be in the same
439 // process as this or |nullptr|. 442 // process as this or |nullptr|.
440 void AdvanceFocus(blink::WebFocusType type, 443 void AdvanceFocus(blink::WebFocusType type,
441 RenderFrameProxyHost* source_proxy); 444 RenderFrameProxyHost* source_proxy);
442 445
443 // Deletes the current selection plus the specified number of characters
444 // before and after the selection or caret.
445 void ExtendSelectionAndDelete(size_t before, size_t after);
446
447 // Deletes text before and after the current cursor position, excluding the
448 // selection. The lengths are supplied in Java chars (UTF-16 Code Unit), not
449 // in code points or in glyphs.
450 void DeleteSurroundingText(size_t before, size_t after);
451
452 // Deletes text before and after the current cursor position, excluding the
453 // selection. The lengths are supplied in code points, not in Java chars
454 // (UTF-16 Code Unit) or in glyphs. Do nothing if there are one or more
455 // invalid surrogate pairs in the requested range.
456 void DeleteSurroundingTextInCodePoints(int before, int after);
457
458 // Notifies the RenderFrame that the JavaScript message that was shown was 446 // Notifies the RenderFrame that the JavaScript message that was shown was
459 // closed by the user. 447 // closed by the user.
460 void JavaScriptDialogClosed(IPC::Message* reply_msg, 448 void JavaScriptDialogClosed(IPC::Message* reply_msg,
461 bool success, 449 bool success,
462 const base::string16& user_input); 450 const base::string16& user_input);
463 451
464 // Get the accessibility mode from the delegate and Send a message to the 452 // Get the accessibility mode from the delegate and Send a message to the
465 // renderer process to change the accessibility mode. 453 // renderer process to change the accessibility mode.
466 void UpdateAccessibilityMode(); 454 void UpdateAccessibilityMode();
467 455
(...skipping 750 matching lines...) Expand 10 before | Expand all | Expand 10 after
1218 1206
1219 // IPC-friendly token that represents this host for AndroidOverlays, if we 1207 // IPC-friendly token that represents this host for AndroidOverlays, if we
1220 // have created one yet. 1208 // have created one yet.
1221 base::Optional<base::UnguessableToken> overlay_routing_token_; 1209 base::Optional<base::UnguessableToken> overlay_routing_token_;
1222 1210
1223 // This value is sent from the renderer and shouldn't be trusted. 1211 // This value is sent from the renderer and shouldn't be trusted.
1224 // TODO(alexclarke): Remove once there is a solution for stable frame IDs. See 1212 // TODO(alexclarke): Remove once there is a solution for stable frame IDs. See
1225 // crbug.com/715541 1213 // crbug.com/715541
1226 std::string untrusted_devtools_frame_id_; 1214 std::string untrusted_devtools_frame_id_;
1227 1215
1216 mojom::FrameInputHandlerPtr frame_input_handler_;
1217 std::unique_ptr<LegacyIPCFrameInputHandler> legacy_frame_input_handler_;
1218
1228 // NOTE: This must be the last member. 1219 // NOTE: This must be the last member.
1229 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; 1220 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_;
1230 1221
1231 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); 1222 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl);
1232 }; 1223 };
1233 1224
1234 } // namespace content 1225 } // namespace content
1235 1226
1236 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ 1227 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698