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 <algorithm> | 7 #include <algorithm> |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
(...skipping 19 matching lines...) Expand all Loading... | |
30 #include "content/browser/frame_host/frame_tree.h" | 30 #include "content/browser/frame_host/frame_tree.h" |
31 #include "content/browser/frame_host/frame_tree_node.h" | 31 #include "content/browser/frame_host/frame_tree_node.h" |
32 #include "content/browser/frame_host/navigation_entry_impl.h" | 32 #include "content/browser/frame_host/navigation_entry_impl.h" |
33 #include "content/browser/frame_host/navigation_handle_impl.h" | 33 #include "content/browser/frame_host/navigation_handle_impl.h" |
34 #include "content/browser/frame_host/navigation_request.h" | 34 #include "content/browser/frame_host/navigation_request.h" |
35 #include "content/browser/frame_host/navigator.h" | 35 #include "content/browser/frame_host/navigator.h" |
36 #include "content/browser/frame_host/navigator_impl.h" | 36 #include "content/browser/frame_host/navigator_impl.h" |
37 #include "content/browser/frame_host/render_frame_host_delegate.h" | 37 #include "content/browser/frame_host/render_frame_host_delegate.h" |
38 #include "content/browser/frame_host/render_frame_proxy_host.h" | 38 #include "content/browser/frame_host/render_frame_proxy_host.h" |
39 #include "content/browser/frame_host/render_widget_host_view_child_frame.h" | 39 #include "content/browser/frame_host/render_widget_host_view_child_frame.h" |
40 #include "content/browser/installedapp/installed_app_provider_impl_default.h" | |
40 #include "content/browser/loader/resource_dispatcher_host_impl.h" | 41 #include "content/browser/loader/resource_dispatcher_host_impl.h" |
41 #include "content/browser/media/media_interface_proxy.h" | 42 #include "content/browser/media/media_interface_proxy.h" |
42 #include "content/browser/media/session/media_session_service_impl.h" | 43 #include "content/browser/media/session/media_session_service_impl.h" |
43 #include "content/browser/permissions/permission_service_context.h" | 44 #include "content/browser/permissions/permission_service_context.h" |
44 #include "content/browser/permissions/permission_service_impl.h" | 45 #include "content/browser/permissions/permission_service_impl.h" |
45 #include "content/browser/presentation/presentation_service_impl.h" | 46 #include "content/browser/presentation/presentation_service_impl.h" |
46 #include "content/browser/renderer_host/input/input_router_impl.h" | 47 #include "content/browser/renderer_host/input/input_router_impl.h" |
47 #include "content/browser/renderer_host/input/timeout_monitor.h" | 48 #include "content/browser/renderer_host/input/timeout_monitor.h" |
48 #include "content/browser/renderer_host/media/media_devices_dispatcher_host.h" | 49 #include "content/browser/renderer_host/media/media_devices_dispatcher_host.h" |
49 #include "content/browser/renderer_host/render_process_host_impl.h" | 50 #include "content/browser/renderer_host/render_process_host_impl.h" |
(...skipping 2250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2300 WindowOpenDisposition disposition, | 2301 WindowOpenDisposition disposition, |
2301 const gfx::Rect& initial_rect, | 2302 const gfx::Rect& initial_rect, |
2302 bool user_gesture) { | 2303 bool user_gesture) { |
2303 delegate_->ShowCreatedWindow(GetProcess()->GetID(), pending_widget_routing_id, | 2304 delegate_->ShowCreatedWindow(GetProcess()->GetID(), pending_widget_routing_id, |
2304 disposition, initial_rect, user_gesture); | 2305 disposition, initial_rect, user_gesture); |
2305 } | 2306 } |
2306 | 2307 |
2307 void RenderFrameHostImpl::RegisterMojoInterfaces() { | 2308 void RenderFrameHostImpl::RegisterMojoInterfaces() { |
2308 device::GeolocationServiceContext* geolocation_service_context = | 2309 device::GeolocationServiceContext* geolocation_service_context = |
2309 delegate_ ? delegate_->GetGeolocationServiceContext() : NULL; | 2310 delegate_ ? delegate_->GetGeolocationServiceContext() : NULL; |
2311 // The default (no-op) implementation of InstalledAppProvider. | |
2312 // TODO(mgiuca): Implement the "real" one for Android in Java, and do not add | |
2313 // the default one on that platform. | |
2314 GetInterfaceRegistry()->AddInterface( | |
clamy
2017/02/27 14:49:27
Do we envision the InstalledAppProvider to be used
Matt Giuca
2017/02/27 22:51:15
We might do it on desktop in the future but no imm
clamy
2017/03/02 13:31:53
Acknowledged.
| |
2315 base::Bind(&InstalledAppProviderImplDefault::Create)); | |
2316 | |
2310 if (geolocation_service_context) { | 2317 if (geolocation_service_context) { |
2311 // TODO(creis): Bind process ID here so that GeolocationServiceImpl | 2318 // TODO(creis): Bind process ID here so that GeolocationServiceImpl |
2312 // can perform permissions checks once site isolation is complete. | 2319 // can perform permissions checks once site isolation is complete. |
2313 // crbug.com/426384 | 2320 // crbug.com/426384 |
2314 // NOTE: At shutdown, there is no guaranteed ordering between destruction of | 2321 // NOTE: At shutdown, there is no guaranteed ordering between destruction of |
2315 // this object and destruction of any GeolocationServicesImpls created via | 2322 // this object and destruction of any GeolocationServicesImpls created via |
2316 // the below service registry, the reason being that the destruction of the | 2323 // the below service registry, the reason being that the destruction of the |
2317 // latter is triggered by receiving a message that the pipe was closed from | 2324 // latter is triggered by receiving a message that the pipe was closed from |
2318 // the renderer side. Hence, supply the reference to this object as a weak | 2325 // the renderer side. Hence, supply the reference to this object as a weak |
2319 // pointer. | 2326 // pointer. |
(...skipping 1172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
3492 // There is no pending NavigationEntry in these cases, so pass 0 as the | 3499 // There is no pending NavigationEntry in these cases, so pass 0 as the |
3493 // pending_nav_entry_id. If the previous handle was a prematurely aborted | 3500 // pending_nav_entry_id. If the previous handle was a prematurely aborted |
3494 // navigation loaded via LoadDataWithBaseURL, propagate the entry id. | 3501 // navigation loaded via LoadDataWithBaseURL, propagate the entry id. |
3495 return NavigationHandleImpl::Create( | 3502 return NavigationHandleImpl::Create( |
3496 params.url, params.redirects, frame_tree_node_, is_renderer_initiated, | 3503 params.url, params.redirects, frame_tree_node_, is_renderer_initiated, |
3497 params.was_within_same_page, base::TimeTicks::Now(), | 3504 params.was_within_same_page, base::TimeTicks::Now(), |
3498 entry_id_for_data_nav, false); // started_from_context_menu | 3505 entry_id_for_data_nav, false); // started_from_context_menu |
3499 } | 3506 } |
3500 | 3507 |
3501 } // namespace content | 3508 } // namespace content |
OLD | NEW |