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/browser/frame_host/render_frame_host_impl.h" | 5 #include "content/browser/frame_host/render_frame_host_impl.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 #include "content/browser/renderer_host/input/timeout_monitor.h" | 47 #include "content/browser/renderer_host/input/timeout_monitor.h" |
48 #include "content/browser/renderer_host/media/media_devices_dispatcher_host.h" | 48 #include "content/browser/renderer_host/media/media_devices_dispatcher_host.h" |
49 #include "content/browser/renderer_host/render_process_host_impl.h" | 49 #include "content/browser/renderer_host/render_process_host_impl.h" |
50 #include "content/browser/renderer_host/render_view_host_delegate.h" | 50 #include "content/browser/renderer_host/render_view_host_delegate.h" |
51 #include "content/browser/renderer_host/render_view_host_delegate_view.h" | 51 #include "content/browser/renderer_host/render_view_host_delegate_view.h" |
52 #include "content/browser/renderer_host/render_view_host_impl.h" | 52 #include "content/browser/renderer_host/render_view_host_impl.h" |
53 #include "content/browser/renderer_host/render_widget_host_delegate.h" | 53 #include "content/browser/renderer_host/render_widget_host_delegate.h" |
54 #include "content/browser/renderer_host/render_widget_host_impl.h" | 54 #include "content/browser/renderer_host/render_widget_host_impl.h" |
55 #include "content/browser/renderer_host/render_widget_host_view_base.h" | 55 #include "content/browser/renderer_host/render_widget_host_view_base.h" |
56 #include "content/browser/shared_worker/shared_worker_service_impl.h" | 56 #include "content/browser/shared_worker/shared_worker_service_impl.h" |
| 57 #include "content/browser/webshare/share_service_impl.h" |
57 #include "content/browser/websockets/websocket_manager.h" | 58 #include "content/browser/websockets/websocket_manager.h" |
58 #include "content/browser/webui/web_ui_controller_factory_registry.h" | 59 #include "content/browser/webui/web_ui_controller_factory_registry.h" |
59 #include "content/common/accessibility_messages.h" | 60 #include "content/common/accessibility_messages.h" |
60 #include "content/common/associated_interface_provider_impl.h" | 61 #include "content/common/associated_interface_provider_impl.h" |
61 #include "content/common/associated_interfaces.mojom.h" | 62 #include "content/common/associated_interfaces.mojom.h" |
62 #include "content/common/frame_messages.h" | 63 #include "content/common/frame_messages.h" |
63 #include "content/common/frame_owner_properties.h" | 64 #include "content/common/frame_owner_properties.h" |
64 #include "content/common/input_messages.h" | 65 #include "content/common/input_messages.h" |
65 #include "content/common/inter_process_time_ticks_converter.h" | 66 #include "content/common/inter_process_time_ticks_converter.h" |
66 #include "content/common/navigation_params.h" | 67 #include "content/common/navigation_params.h" |
(...skipping 2219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2286 } | 2287 } |
2287 #endif | 2288 #endif |
2288 | 2289 |
2289 #if BUILDFLAG(ENABLE_MEDIA_REMOTING) | 2290 #if BUILDFLAG(ENABLE_MEDIA_REMOTING) |
2290 GetInterfaceRegistry()->AddInterface(base::Bind( | 2291 GetInterfaceRegistry()->AddInterface(base::Bind( |
2291 &RemoterFactoryImpl::Bind, GetProcess()->GetID(), GetRoutingID())); | 2292 &RemoterFactoryImpl::Bind, GetProcess()->GetID(), GetRoutingID())); |
2292 #endif // BUILDFLAG(ENABLE_MEDIA_REMOTING) | 2293 #endif // BUILDFLAG(ENABLE_MEDIA_REMOTING) |
2293 | 2294 |
2294 GetContentClient()->browser()->RegisterRenderFrameMojoInterfaces( | 2295 GetContentClient()->browser()->RegisterRenderFrameMojoInterfaces( |
2295 GetInterfaceRegistry(), this); | 2296 GetInterfaceRegistry(), this); |
| 2297 |
| 2298 GetInterfaceRegistry()->AddInterface(base::Bind(&ShareServiceImpl::Create)); |
2296 } | 2299 } |
2297 | 2300 |
2298 void RenderFrameHostImpl::ResetWaitingState() { | 2301 void RenderFrameHostImpl::ResetWaitingState() { |
2299 DCHECK(is_active()); | 2302 DCHECK(is_active()); |
2300 | 2303 |
2301 // Whenever we reset the RFH state, we should not be waiting for beforeunload | 2304 // Whenever we reset the RFH state, we should not be waiting for beforeunload |
2302 // or close acks. We clear them here to be safe, since they can cause | 2305 // or close acks. We clear them here to be safe, since they can cause |
2303 // navigations to be ignored in OnDidCommitProvisionalLoad. | 2306 // navigations to be ignored in OnDidCommitProvisionalLoad. |
2304 if (is_waiting_for_beforeunload_ack_) { | 2307 if (is_waiting_for_beforeunload_ack_) { |
2305 is_waiting_for_beforeunload_ack_ = false; | 2308 is_waiting_for_beforeunload_ack_ = false; |
(...skipping 1016 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3322 // pending_nav_entry_id. If the previous handle was a prematurely aborted | 3325 // pending_nav_entry_id. If the previous handle was a prematurely aborted |
3323 // navigation loaded via LoadDataWithBaseURL, propagate the entry id. | 3326 // navigation loaded via LoadDataWithBaseURL, propagate the entry id. |
3324 return NavigationHandleImpl::Create( | 3327 return NavigationHandleImpl::Create( |
3325 params.url, frame_tree_node_, is_renderer_initiated, | 3328 params.url, frame_tree_node_, is_renderer_initiated, |
3326 params.was_within_same_page, params.is_srcdoc, base::TimeTicks::Now(), | 3329 params.was_within_same_page, params.is_srcdoc, base::TimeTicks::Now(), |
3327 entry_id_for_data_nav, params.gesture, | 3330 entry_id_for_data_nav, params.gesture, |
3328 false); // started_from_context_menu | 3331 false); // started_from_context_menu |
3329 } | 3332 } |
3330 | 3333 |
3331 } // namespace content | 3334 } // namespace content |
OLD | NEW |