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

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

Issue 1320153002: Add new termination status for failed launch (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: code review comments. add test. Created 5 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 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 2374 matching lines...) Expand 10 before | Expand all | Expand 10 after
2385 #endif 2385 #endif
2386 } 2386 }
2387 2387
2388 void RenderProcessHostImpl::OnProcessLaunchFailed() { 2388 void RenderProcessHostImpl::OnProcessLaunchFailed() {
2389 // If this object will be destructed soon, then observers have already been 2389 // If this object will be destructed soon, then observers have already been
2390 // sent a RenderProcessHostDestroyed notification, and we must observe our 2390 // sent a RenderProcessHostDestroyed notification, and we must observe our
2391 // contract that says that will be the last call. 2391 // contract that says that will be the last call.
2392 if (deleting_soon_) 2392 if (deleting_soon_)
2393 return; 2393 return;
2394 2394
2395 RendererClosedDetails details { base::TERMINATION_STATUS_PROCESS_WAS_KILLED, 2395 // TODO(wfh): Fill in the real error code here see crbug.com/526198.
2396 RendererClosedDetails details { base::TERMINATION_STATUS_LAUNCH_FAILED,
2396 -1 }; 2397 -1 };
2397 ProcessDied(true, &details); 2398 ProcessDied(true, &details);
2398 } 2399 }
2399 2400
2400 scoped_refptr<AudioRendererHost> 2401 scoped_refptr<AudioRendererHost>
2401 RenderProcessHostImpl::audio_renderer_host() const { 2402 RenderProcessHostImpl::audio_renderer_host() const {
2402 return audio_renderer_host_; 2403 return audio_renderer_host_;
2403 } 2404 }
2404 2405
2405 void RenderProcessHostImpl::OnUserMetricsRecordAction( 2406 void RenderProcessHostImpl::OnUserMetricsRecordAction(
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
2530 void RenderProcessHostImpl::GetAudioOutputControllers( 2531 void RenderProcessHostImpl::GetAudioOutputControllers(
2531 const GetAudioOutputControllersCallback& callback) const { 2532 const GetAudioOutputControllersCallback& callback) const {
2532 audio_renderer_host()->GetOutputControllers(callback); 2533 audio_renderer_host()->GetOutputControllers(callback);
2533 } 2534 }
2534 2535
2535 BluetoothDispatcherHost* RenderProcessHostImpl::GetBluetoothDispatcherHost() { 2536 BluetoothDispatcherHost* RenderProcessHostImpl::GetBluetoothDispatcherHost() {
2536 return bluetooth_dispatcher_host_.get(); 2537 return bluetooth_dispatcher_host_.get();
2537 } 2538 }
2538 2539
2539 } // namespace content 2540 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698