| 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 "base/bind.h" | 7 #include "base/bind.h" | 
| 8 #include "base/command_line.h" | 8 #include "base/command_line.h" | 
| 9 #include "base/containers/hash_tables.h" | 9 #include "base/containers/hash_tables.h" | 
| 10 #include "base/lazy_instance.h" | 10 #include "base/lazy_instance.h" | 
| (...skipping 14 matching lines...) Expand all  Loading... | 
| 25 #include "content/browser/frame_host/render_frame_proxy_host.h" | 25 #include "content/browser/frame_host/render_frame_proxy_host.h" | 
| 26 #include "content/browser/frame_host/render_widget_host_view_child_frame.h" | 26 #include "content/browser/frame_host/render_widget_host_view_child_frame.h" | 
| 27 #include "content/browser/renderer_host/input/input_router.h" | 27 #include "content/browser/renderer_host/input/input_router.h" | 
| 28 #include "content/browser/renderer_host/input/timeout_monitor.h" | 28 #include "content/browser/renderer_host/input/timeout_monitor.h" | 
| 29 #include "content/browser/renderer_host/render_process_host_impl.h" | 29 #include "content/browser/renderer_host/render_process_host_impl.h" | 
| 30 #include "content/browser/renderer_host/render_view_host_delegate.h" | 30 #include "content/browser/renderer_host/render_view_host_delegate.h" | 
| 31 #include "content/browser/renderer_host/render_view_host_delegate_view.h" | 31 #include "content/browser/renderer_host/render_view_host_delegate_view.h" | 
| 32 #include "content/browser/renderer_host/render_view_host_impl.h" | 32 #include "content/browser/renderer_host/render_view_host_impl.h" | 
| 33 #include "content/browser/renderer_host/render_widget_host_impl.h" | 33 #include "content/browser/renderer_host/render_widget_host_impl.h" | 
| 34 #include "content/browser/renderer_host/render_widget_host_view_base.h" | 34 #include "content/browser/renderer_host/render_widget_host_view_base.h" | 
|  | 35 #include "content/browser/screen_orientation/screen_orientation_service_impl.h" | 
| 35 #include "content/browser/transition_request_manager.h" | 36 #include "content/browser/transition_request_manager.h" | 
| 36 #include "content/common/accessibility_messages.h" | 37 #include "content/common/accessibility_messages.h" | 
| 37 #include "content/common/desktop_notification_messages.h" | 38 #include "content/common/desktop_notification_messages.h" | 
| 38 #include "content/common/frame_messages.h" | 39 #include "content/common/frame_messages.h" | 
| 39 #include "content/common/input_messages.h" | 40 #include "content/common/input_messages.h" | 
| 40 #include "content/common/inter_process_time_ticks_converter.h" | 41 #include "content/common/inter_process_time_ticks_converter.h" | 
| 41 #include "content/common/platform_notification_messages.h" | 42 #include "content/common/platform_notification_messages.h" | 
| 42 #include "content/common/render_frame_setup.mojom.h" | 43 #include "content/common/render_frame_setup.mojom.h" | 
| 43 #include "content/common/swapped_out_messages.h" | 44 #include "content/common/swapped_out_messages.h" | 
| 44 #include "content/public/browser/ax_event_notification_details.h" | 45 #include "content/public/browser/ax_event_notification_details.h" | 
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 181       renderer_initialized_(false), | 182       renderer_initialized_(false), | 
| 182       navigations_suspended_(false), | 183       navigations_suspended_(false), | 
| 183       weak_ptr_factory_(this) { | 184       weak_ptr_factory_(this) { | 
| 184   frame_tree_->RegisterRenderFrameHost(this); | 185   frame_tree_->RegisterRenderFrameHost(this); | 
| 185   GetProcess()->AddRoute(routing_id_, this); | 186   GetProcess()->AddRoute(routing_id_, this); | 
| 186   g_routing_id_frame_map.Get().insert(std::make_pair( | 187   g_routing_id_frame_map.Get().insert(std::make_pair( | 
| 187       RenderFrameHostID(GetProcess()->GetID(), routing_id_), | 188       RenderFrameHostID(GetProcess()->GetID(), routing_id_), | 
| 188       this)); | 189       this)); | 
| 189 | 190 | 
| 190   if (GetProcess()->GetServiceRegistry()) { | 191   if (GetProcess()->GetServiceRegistry()) { | 
|  | 192     GetServiceRegistry()->AddService<ScreenOrientationService>(base::Bind( | 
|  | 193         &ScreenOrientationServiceImpl::Create, | 
|  | 194         base::Unretained(delegate_->GetScreenOrientationProvider()))); | 
|  | 195 | 
| 191     RenderFrameSetupPtr setup; | 196     RenderFrameSetupPtr setup; | 
| 192     GetProcess()->GetServiceRegistry()->ConnectToRemoteService(&setup); | 197     GetProcess()->GetServiceRegistry()->ConnectToRemoteService(&setup); | 
| 193     mojo::ServiceProviderPtr service_provider; | 198     mojo::ServiceProviderPtr service_provider; | 
| 194     setup->GetServiceProviderForFrame(routing_id_, | 199     setup->GetServiceProviderForFrame(routing_id_, | 
| 195                                       mojo::Get(&service_provider)); | 200                                       mojo::Get(&service_provider)); | 
| 196     service_registry_.BindRemoteServiceProvider( | 201     service_registry_.BindRemoteServiceProvider( | 
| 197         service_provider.PassMessagePipe()); | 202         service_provider.PassMessagePipe()); | 
| 198   } | 203   } | 
| 199 } | 204 } | 
| 200 | 205 | 
| (...skipping 1252 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1453   // Clear any state if a pending navigation is canceled or preempted. | 1458   // Clear any state if a pending navigation is canceled or preempted. | 
| 1454   if (suspended_nav_params_) | 1459   if (suspended_nav_params_) | 
| 1455     suspended_nav_params_.reset(); | 1460     suspended_nav_params_.reset(); | 
| 1456 | 1461 | 
| 1457   TRACE_EVENT_ASYNC_END0("navigation", | 1462   TRACE_EVENT_ASYNC_END0("navigation", | 
| 1458                          "RenderFrameHostImpl navigation suspended", this); | 1463                          "RenderFrameHostImpl navigation suspended", this); | 
| 1459   navigations_suspended_ = false; | 1464   navigations_suspended_ = false; | 
| 1460 } | 1465 } | 
| 1461 | 1466 | 
| 1462 }  // namespace content | 1467 }  // namespace content | 
| OLD | NEW | 
|---|