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

Side by Side Diff: content/browser/renderer_host/render_process_host_impl.cc

Issue 553283002: IPC::ChannelMojo: Introduce IPC::MojoBootstrap for Windows (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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // Represents the browser side of the browser <--> renderer communication 5 // Represents the browser side of the browser <--> renderer communication
6 // channel. There will be one RenderProcessHost per renderer process. 6 // channel. There will be one RenderProcessHost per renderer process.
7 7
8 #include "content/browser/renderer_host/render_process_host_impl.h" 8 #include "content/browser/renderer_host/render_process_host_impl.h"
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 2068 matching lines...) Expand 10 before | Expand all | Expand 10 after
2079 NotificationService::current()->Notify( 2079 NotificationService::current()->Notify(
2080 NOTIFICATION_RENDERER_PROCESS_CREATED, 2080 NOTIFICATION_RENDERER_PROCESS_CREATED,
2081 Source<RenderProcessHost>(this), 2081 Source<RenderProcessHost>(this),
2082 NotificationService::NoDetails()); 2082 NotificationService::NoDetails());
2083 2083
2084 // Allow Mojo to be setup before the renderer sees any Chrome IPC messages. 2084 // Allow Mojo to be setup before the renderer sees any Chrome IPC messages.
2085 // This way, Mojo can be safely used from the renderer in response to any 2085 // This way, Mojo can be safely used from the renderer in response to any
2086 // Chrome IPC message. 2086 // Chrome IPC message.
2087 MaybeActivateMojo(); 2087 MaybeActivateMojo();
2088 2088
2089 channel_->OnClientLaunched(child_process_launcher_->GetHandle());
2090
2089 while (!queued_messages_.empty()) { 2091 while (!queued_messages_.empty()) {
2090 Send(queued_messages_.front()); 2092 Send(queued_messages_.front());
2091 queued_messages_.pop(); 2093 queued_messages_.pop();
2092 } 2094 }
2093 2095
2094 #if defined(ENABLE_WEBRTC) 2096 #if defined(ENABLE_WEBRTC)
2095 if (WebRTCInternals::GetInstance()->aec_dump_enabled()) 2097 if (WebRTCInternals::GetInstance()->aec_dump_enabled())
2096 EnableAecDump(WebRTCInternals::GetInstance()->aec_dump_file_path()); 2098 EnableAecDump(WebRTCInternals::GetInstance()->aec_dump_file_path());
2097 #endif 2099 #endif
2098 } 2100 }
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
2224 if (worker_ref_count_ == 0) 2226 if (worker_ref_count_ == 0)
2225 Cleanup(); 2227 Cleanup();
2226 } 2228 }
2227 2229
2228 void RenderProcessHostImpl::EnsureMojoActivated() { 2230 void RenderProcessHostImpl::EnsureMojoActivated() {
2229 mojo_activation_required_ = true; 2231 mojo_activation_required_ = true;
2230 MaybeActivateMojo(); 2232 MaybeActivateMojo();
2231 } 2233 }
2232 2234
2233 } // namespace content 2235 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698