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" |
49 #include "content/common/clipboard_messages.h" | 50 #include "content/common/clipboard_messages.h" |
50 #include "content/common/content_constants_internal.h" | 51 #include "content/common/content_constants_internal.h" |
51 #include "content/common/content_security_policy_header.h" | 52 #include "content/common/content_security_policy_header.h" |
52 #include "content/common/frame_messages.h" | 53 #include "content/common/frame_messages.h" |
53 #include "content/common/frame_owner_properties.h" | 54 #include "content/common/frame_owner_properties.h" |
54 #include "content/common/frame_replication_state.h" | 55 #include "content/common/frame_replication_state.h" |
55 #include "content/common/gpu/client/context_provider_command_buffer.h" | 56 #include "content/common/gpu/client/context_provider_command_buffer.h" |
56 #include "content/common/input_messages.h" | 57 #include "content/common/input_messages.h" |
57 #include "content/common/navigation_params.h" | 58 #include "content/common/navigation_params.h" |
58 #include "content/common/page_messages.h" | 59 #include "content/common/page_messages.h" |
(...skipping 2336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2395 } | 2396 } |
2396 | 2397 |
2397 shell::InterfaceRegistry* RenderFrameImpl::GetInterfaceRegistry() { | 2398 shell::InterfaceRegistry* RenderFrameImpl::GetInterfaceRegistry() { |
2398 return interface_registry_.get(); | 2399 return interface_registry_.get(); |
2399 } | 2400 } |
2400 | 2401 |
2401 shell::InterfaceProvider* RenderFrameImpl::GetRemoteInterfaces() { | 2402 shell::InterfaceProvider* RenderFrameImpl::GetRemoteInterfaces() { |
2402 return remote_interfaces_.get(); | 2403 return remote_interfaces_.get(); |
2403 } | 2404 } |
2404 | 2405 |
| 2406 AssociatedInterfaceRegistry* |
| 2407 RenderFrameImpl::GetAssociatedInterfaceRegistry() { |
| 2408 return &associated_interfaces_; |
| 2409 } |
| 2410 |
| 2411 AssociatedInterfaceProvider* |
| 2412 RenderFrameImpl::GetRemoteAssociatedInterfaces() { |
| 2413 if (!remote_associated_interfaces_) { |
| 2414 RenderThread* render_thread = RenderThread::Get(); |
| 2415 remote_associated_interfaces_.reset(new AssociatedInterfaceProviderImpl( |
| 2416 *render_thread->GetChannel()->GetAssociatedGroup(), |
| 2417 render_thread->GetRemoteRouteProvider(), GetRoutingID())); |
| 2418 } |
| 2419 return remote_associated_interfaces_.get(); |
| 2420 } |
| 2421 |
2405 #if defined(ENABLE_PLUGINS) | 2422 #if defined(ENABLE_PLUGINS) |
2406 void RenderFrameImpl::RegisterPeripheralPlugin( | 2423 void RenderFrameImpl::RegisterPeripheralPlugin( |
2407 const url::Origin& content_origin, | 2424 const url::Origin& content_origin, |
2408 const base::Closure& unthrottle_callback) { | 2425 const base::Closure& unthrottle_callback) { |
2409 return plugin_power_saver_helper_->RegisterPeripheralPlugin( | 2426 return plugin_power_saver_helper_->RegisterPeripheralPlugin( |
2410 content_origin, unthrottle_callback); | 2427 content_origin, unthrottle_callback); |
2411 } | 2428 } |
2412 | 2429 |
2413 RenderFrame::PeripheralContentStatus | 2430 RenderFrame::PeripheralContentStatus |
2414 RenderFrameImpl::GetPeripheralContentStatus( | 2431 RenderFrameImpl::GetPeripheralContentStatus( |
(...skipping 3935 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6350 // event target. Potentially a Pepper plugin will receive the event. | 6367 // event target. Potentially a Pepper plugin will receive the event. |
6351 // In order to tell whether a plugin gets the last mouse event and which it | 6368 // In order to tell whether a plugin gets the last mouse event and which it |
6352 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets | 6369 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets |
6353 // the event, it will notify us via DidReceiveMouseEvent() and set itself as | 6370 // the event, it will notify us via DidReceiveMouseEvent() and set itself as |
6354 // |pepper_last_mouse_event_target_|. | 6371 // |pepper_last_mouse_event_target_|. |
6355 pepper_last_mouse_event_target_ = nullptr; | 6372 pepper_last_mouse_event_target_ = nullptr; |
6356 #endif | 6373 #endif |
6357 } | 6374 } |
6358 | 6375 |
6359 } // namespace content | 6376 } // namespace content |
OLD | NEW |