Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Side by Side Diff: content/browser/frame_host/render_frame_host_impl.cc

Issue 584173002: Revert "Always activate MojoApplicationHost" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | content/browser/mojo/mojo_application_host.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | content/browser/mojo/mojo_application_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698