| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |