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

Side by Side Diff: content/renderer/render_frame_impl.cc

Issue 2310563002: Adds routed interface support between RenderFrameHost and RenderFrame (Closed)
Patch Set: nit Created 4 years, 3 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
« no previous file with comments | « content/renderer/render_frame_impl.h ('k') | ipc/ipc_channel_mojo.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "content/renderer/render_frame_impl.h" 5 #include "content/renderer/render_frame_impl.h"
6 6
7 #include <map> 7 #include <map>
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 28 matching lines...) Expand all
39 #include "content/child/service_worker/service_worker_handle_reference.h" 39 #include "content/child/service_worker/service_worker_handle_reference.h"
40 #include "content/child/service_worker/service_worker_network_provider.h" 40 #include "content/child/service_worker/service_worker_network_provider.h"
41 #include "content/child/service_worker/service_worker_provider_context.h" 41 #include "content/child/service_worker/service_worker_provider_context.h"
42 #include "content/child/service_worker/web_service_worker_provider_impl.h" 42 #include "content/child/service_worker/web_service_worker_provider_impl.h"
43 #include "content/child/v8_value_converter_impl.h" 43 #include "content/child/v8_value_converter_impl.h"
44 #include "content/child/web_url_loader_impl.h" 44 #include "content/child/web_url_loader_impl.h"
45 #include "content/child/web_url_request_util.h" 45 #include "content/child/web_url_request_util.h"
46 #include "content/child/webmessageportchannel_impl.h" 46 #include "content/child/webmessageportchannel_impl.h"
47 #include "content/child/weburlresponse_extradata_impl.h" 47 #include "content/child/weburlresponse_extradata_impl.h"
48 #include "content/common/accessibility_messages.h" 48 #include "content/common/accessibility_messages.h"
49 #include "content/common/associated_interface_provider_impl.h"
50 #include "content/common/associated_interfaces.mojom.h"
49 #include "content/common/clipboard_messages.h" 51 #include "content/common/clipboard_messages.h"
50 #include "content/common/content_constants_internal.h" 52 #include "content/common/content_constants_internal.h"
51 #include "content/common/content_security_policy_header.h" 53 #include "content/common/content_security_policy_header.h"
52 #include "content/common/edit_command.h" 54 #include "content/common/edit_command.h"
53 #include "content/common/frame_messages.h" 55 #include "content/common/frame_messages.h"
54 #include "content/common/frame_owner_properties.h" 56 #include "content/common/frame_owner_properties.h"
55 #include "content/common/frame_replication_state.h" 57 #include "content/common/frame_replication_state.h"
56 #include "content/common/gpu/client/context_provider_command_buffer.h" 58 #include "content/common/gpu/client/context_provider_command_buffer.h"
57 #include "content/common/input_messages.h" 59 #include "content/common/input_messages.h"
58 #include "content/common/navigation_params.h" 60 #include "content/common/navigation_params.h"
(...skipping 2364 matching lines...) Expand 10 before | Expand all | Expand 10 after
2423 } 2425 }
2424 2426
2425 shell::InterfaceRegistry* RenderFrameImpl::GetInterfaceRegistry() { 2427 shell::InterfaceRegistry* RenderFrameImpl::GetInterfaceRegistry() {
2426 return interface_registry_.get(); 2428 return interface_registry_.get();
2427 } 2429 }
2428 2430
2429 shell::InterfaceProvider* RenderFrameImpl::GetRemoteInterfaces() { 2431 shell::InterfaceProvider* RenderFrameImpl::GetRemoteInterfaces() {
2430 return remote_interfaces_.get(); 2432 return remote_interfaces_.get();
2431 } 2433 }
2432 2434
2435 AssociatedInterfaceRegistry*
2436 RenderFrameImpl::GetAssociatedInterfaceRegistry() {
2437 return &associated_interfaces_;
2438 }
2439
2440 AssociatedInterfaceProvider*
2441 RenderFrameImpl::GetRemoteAssociatedInterfaces() {
2442 if (!remote_associated_interfaces_) {
2443 ChildThreadImpl* thread = ChildThreadImpl::current();
2444 mojom::AssociatedInterfaceProviderAssociatedPtr remote_interfaces;
2445 thread->GetRemoteRouteProvider()->GetRoute(
2446 routing_id_,
2447 mojo::GetProxy(&remote_interfaces,
2448 thread->channel()->GetAssociatedGroup()));
2449 remote_associated_interfaces_.reset(new AssociatedInterfaceProviderImpl(
2450 std::move(remote_interfaces)));
2451 }
2452 return remote_associated_interfaces_.get();
2453 }
2454
2433 #if defined(ENABLE_PLUGINS) 2455 #if defined(ENABLE_PLUGINS)
2434 void RenderFrameImpl::RegisterPeripheralPlugin( 2456 void RenderFrameImpl::RegisterPeripheralPlugin(
2435 const url::Origin& content_origin, 2457 const url::Origin& content_origin,
2436 const base::Closure& unthrottle_callback) { 2458 const base::Closure& unthrottle_callback) {
2437 return plugin_power_saver_helper_->RegisterPeripheralPlugin( 2459 return plugin_power_saver_helper_->RegisterPeripheralPlugin(
2438 content_origin, unthrottle_callback); 2460 content_origin, unthrottle_callback);
2439 } 2461 }
2440 2462
2441 RenderFrame::PeripheralContentStatus 2463 RenderFrame::PeripheralContentStatus
2442 RenderFrameImpl::GetPeripheralContentStatus( 2464 RenderFrameImpl::GetPeripheralContentStatus(
(...skipping 3952 matching lines...) Expand 10 before | Expand all | Expand 10 after
6395 // event target. Potentially a Pepper plugin will receive the event. 6417 // event target. Potentially a Pepper plugin will receive the event.
6396 // In order to tell whether a plugin gets the last mouse event and which it 6418 // In order to tell whether a plugin gets the last mouse event and which it
6397 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets 6419 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets
6398 // the event, it will notify us via DidReceiveMouseEvent() and set itself as 6420 // the event, it will notify us via DidReceiveMouseEvent() and set itself as
6399 // |pepper_last_mouse_event_target_|. 6421 // |pepper_last_mouse_event_target_|.
6400 pepper_last_mouse_event_target_ = nullptr; 6422 pepper_last_mouse_event_target_ = nullptr;
6401 #endif 6423 #endif
6402 } 6424 }
6403 6425
6404 } // namespace content 6426 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/render_frame_impl.h ('k') | ipc/ipc_channel_mojo.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698