| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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 2373 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2384 #endif | 2384 #endif |
| 2385 } | 2385 } |
| 2386 | 2386 |
| 2387 void RenderProcessHostImpl::OnProcessLaunchFailed() { | 2387 void RenderProcessHostImpl::OnProcessLaunchFailed() { |
| 2388 // If this object will be destructed soon, then observers have already been | 2388 // If this object will be destructed soon, then observers have already been |
| 2389 // sent a RenderProcessHostDestroyed notification, and we must observe our | 2389 // sent a RenderProcessHostDestroyed notification, and we must observe our |
| 2390 // contract that says that will be the last call. | 2390 // contract that says that will be the last call. |
| 2391 if (deleting_soon_) | 2391 if (deleting_soon_) |
| 2392 return; | 2392 return; |
| 2393 | 2393 |
| 2394 RendererClosedDetails details { base::TERMINATION_STATUS_PROCESS_WAS_KILLED, | 2394 // TODO(wfh): Fill in the real error code here see crbug.com/526198. |
| 2395 RendererClosedDetails details { base::TERMINATION_STATUS_LAUNCH_FAILED, |
| 2395 -1 }; | 2396 -1 }; |
| 2396 ProcessDied(true, &details); | 2397 ProcessDied(true, &details); |
| 2397 } | 2398 } |
| 2398 | 2399 |
| 2399 scoped_refptr<AudioRendererHost> | 2400 scoped_refptr<AudioRendererHost> |
| 2400 RenderProcessHostImpl::audio_renderer_host() const { | 2401 RenderProcessHostImpl::audio_renderer_host() const { |
| 2401 return audio_renderer_host_; | 2402 return audio_renderer_host_; |
| 2402 } | 2403 } |
| 2403 | 2404 |
| 2404 void RenderProcessHostImpl::OnUserMetricsRecordAction( | 2405 void RenderProcessHostImpl::OnUserMetricsRecordAction( |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2529 void RenderProcessHostImpl::GetAudioOutputControllers( | 2530 void RenderProcessHostImpl::GetAudioOutputControllers( |
| 2530 const GetAudioOutputControllersCallback& callback) const { | 2531 const GetAudioOutputControllersCallback& callback) const { |
| 2531 audio_renderer_host()->GetOutputControllers(callback); | 2532 audio_renderer_host()->GetOutputControllers(callback); |
| 2532 } | 2533 } |
| 2533 | 2534 |
| 2534 BluetoothDispatcherHost* RenderProcessHostImpl::GetBluetoothDispatcherHost() { | 2535 BluetoothDispatcherHost* RenderProcessHostImpl::GetBluetoothDispatcherHost() { |
| 2535 return bluetooth_dispatcher_host_.get(); | 2536 return bluetooth_dispatcher_host_.get(); |
| 2536 } | 2537 } |
| 2537 | 2538 |
| 2538 } // namespace content | 2539 } // namespace content |
| OLD | NEW |