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 #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 Loading... |
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 2335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2394 } | 2396 } |
2395 | 2397 |
2396 shell::InterfaceRegistry* RenderFrameImpl::GetInterfaceRegistry() { | 2398 shell::InterfaceRegistry* RenderFrameImpl::GetInterfaceRegistry() { |
2397 return interface_registry_.get(); | 2399 return interface_registry_.get(); |
2398 } | 2400 } |
2399 | 2401 |
2400 shell::InterfaceProvider* RenderFrameImpl::GetRemoteInterfaces() { | 2402 shell::InterfaceProvider* RenderFrameImpl::GetRemoteInterfaces() { |
2401 return remote_interfaces_.get(); | 2403 return remote_interfaces_.get(); |
2402 } | 2404 } |
2403 | 2405 |
| 2406 AssociatedInterfaceRegistry* |
| 2407 RenderFrameImpl::GetAssociatedInterfaceRegistry() { |
| 2408 return &associated_interfaces_; |
| 2409 } |
| 2410 |
| 2411 AssociatedInterfaceProvider* |
| 2412 RenderFrameImpl::GetRemoteAssociatedInterfaces() { |
| 2413 if (!remote_associated_interfaces_) { |
| 2414 ChildThreadImpl* thread = ChildThreadImpl::current(); |
| 2415 mojom::AssociatedInterfaceProviderAssociatedPtr remote_interfaces; |
| 2416 thread->GetRemoteRouteProvider()->GetRoute( |
| 2417 GetRoutingID(), |
| 2418 mojo::GetProxy(&remote_interfaces, |
| 2419 thread->channel()->GetAssociatedGroup())); |
| 2420 remote_associated_interfaces_.reset(new AssociatedInterfaceProviderImpl( |
| 2421 std::move(remote_interfaces))); |
| 2422 } |
| 2423 return remote_associated_interfaces_.get(); |
| 2424 } |
| 2425 |
2404 #if defined(ENABLE_PLUGINS) | 2426 #if defined(ENABLE_PLUGINS) |
2405 void RenderFrameImpl::RegisterPeripheralPlugin( | 2427 void RenderFrameImpl::RegisterPeripheralPlugin( |
2406 const url::Origin& content_origin, | 2428 const url::Origin& content_origin, |
2407 const base::Closure& unthrottle_callback) { | 2429 const base::Closure& unthrottle_callback) { |
2408 return plugin_power_saver_helper_->RegisterPeripheralPlugin( | 2430 return plugin_power_saver_helper_->RegisterPeripheralPlugin( |
2409 content_origin, unthrottle_callback); | 2431 content_origin, unthrottle_callback); |
2410 } | 2432 } |
2411 | 2433 |
2412 RenderFrame::PeripheralContentStatus | 2434 RenderFrame::PeripheralContentStatus |
2413 RenderFrameImpl::GetPeripheralContentStatus( | 2435 RenderFrameImpl::GetPeripheralContentStatus( |
(...skipping 3952 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6366 // event target. Potentially a Pepper plugin will receive the event. | 6388 // event target. Potentially a Pepper plugin will receive the event. |
6367 // In order to tell whether a plugin gets the last mouse event and which it | 6389 // In order to tell whether a plugin gets the last mouse event and which it |
6368 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets | 6390 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets |
6369 // the event, it will notify us via DidReceiveMouseEvent() and set itself as | 6391 // the event, it will notify us via DidReceiveMouseEvent() and set itself as |
6370 // |pepper_last_mouse_event_target_|. | 6392 // |pepper_last_mouse_event_target_|. |
6371 pepper_last_mouse_event_target_ = nullptr; | 6393 pepper_last_mouse_event_target_ = nullptr; |
6372 #endif | 6394 #endif |
6373 } | 6395 } |
6374 | 6396 |
6375 } // namespace content | 6397 } // namespace content |
OLD | NEW |