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 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
280 Send(new FrameMsg_JavaScriptExecuteRequestForTests(routing_id_, | 280 Send(new FrameMsg_JavaScriptExecuteRequestForTests(routing_id_, |
281 javascript, | 281 javascript, |
282 0, false)); | 282 0, false)); |
283 } | 283 } |
284 | 284 |
285 RenderViewHost* RenderFrameHostImpl::GetRenderViewHost() { | 285 RenderViewHost* RenderFrameHostImpl::GetRenderViewHost() { |
286 return render_view_host_; | 286 return render_view_host_; |
287 } | 287 } |
288 | 288 |
289 ServiceRegistry* RenderFrameHostImpl::GetServiceRegistry() { | 289 ServiceRegistry* RenderFrameHostImpl::GetServiceRegistry() { |
| 290 static_cast<RenderProcessHostImpl*>(GetProcess())->EnsureMojoActivated(); |
290 return &service_registry_; | 291 return &service_registry_; |
291 } | 292 } |
292 | 293 |
293 bool RenderFrameHostImpl::Send(IPC::Message* message) { | 294 bool RenderFrameHostImpl::Send(IPC::Message* message) { |
294 if (IPC_MESSAGE_ID_CLASS(message->type()) == InputMsgStart) { | 295 if (IPC_MESSAGE_ID_CLASS(message->type()) == InputMsgStart) { |
295 return render_view_host_->input_router()->SendInput( | 296 return render_view_host_->input_router()->SendInput( |
296 make_scoped_ptr(message)); | 297 make_scoped_ptr(message)); |
297 } | 298 } |
298 | 299 |
299 // Route IPCs through the RenderFrameProxyHost when in swapped out state. | 300 // Route IPCs through the RenderFrameProxyHost when in swapped out state. |
(...skipping 1173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1473 // Clear any state if a pending navigation is canceled or preempted. | 1474 // Clear any state if a pending navigation is canceled or preempted. |
1474 if (suspended_nav_params_) | 1475 if (suspended_nav_params_) |
1475 suspended_nav_params_.reset(); | 1476 suspended_nav_params_.reset(); |
1476 | 1477 |
1477 TRACE_EVENT_ASYNC_END0("navigation", | 1478 TRACE_EVENT_ASYNC_END0("navigation", |
1478 "RenderFrameHostImpl navigation suspended", this); | 1479 "RenderFrameHostImpl navigation suspended", this); |
1479 navigations_suspended_ = false; | 1480 navigations_suspended_ = false; |
1480 } | 1481 } |
1481 | 1482 |
1482 } // namespace content | 1483 } // namespace content |
OLD | NEW |