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

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: fix 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 2376 matching lines...) Expand 10 before | Expand all | Expand 10 after
2387 #endif 2387 #endif
2388 } 2388 }
2389 2389
2390 void RenderProcessHostImpl::OnProcessLaunchFailed() { 2390 void RenderProcessHostImpl::OnProcessLaunchFailed() {
2391 // If this object will be destructed soon, then observers have already been 2391 // If this object will be destructed soon, then observers have already been
2392 // sent a RenderProcessHostDestroyed notification, and we must observe our 2392 // sent a RenderProcessHostDestroyed notification, and we must observe our
2393 // contract that says that will be the last call. 2393 // contract that says that will be the last call.
2394 if (deleting_soon_) 2394 if (deleting_soon_)
2395 return; 2395 return;
2396 2396
2397 RendererClosedDetails details { base::TERMINATION_STATUS_PROCESS_WAS_KILLED, 2397 RendererClosedDetails details { base::TERMINATION_STATUS_LAUNCH_FAILED,
2398 -1 }; 2398 -1 };
2399 ProcessDied(true, &details); 2399 ProcessDied(true, &details);
2400 } 2400 }
2401 2401
2402 scoped_refptr<AudioRendererHost> 2402 scoped_refptr<AudioRendererHost>
2403 RenderProcessHostImpl::audio_renderer_host() const { 2403 RenderProcessHostImpl::audio_renderer_host() const {
2404 return audio_renderer_host_; 2404 return audio_renderer_host_;
2405 } 2405 }
2406 2406
2407 void RenderProcessHostImpl::OnUserMetricsRecordAction( 2407 void RenderProcessHostImpl::OnUserMetricsRecordAction(
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
2532 void RenderProcessHostImpl::GetAudioOutputControllers( 2532 void RenderProcessHostImpl::GetAudioOutputControllers(
2533 const GetAudioOutputControllersCallback& callback) const { 2533 const GetAudioOutputControllersCallback& callback) const {
2534 audio_renderer_host()->GetOutputControllers(callback); 2534 audio_renderer_host()->GetOutputControllers(callback);
2535 } 2535 }
2536 2536
2537 BluetoothDispatcherHost* RenderProcessHostImpl::GetBluetoothDispatcherHost() { 2537 BluetoothDispatcherHost* RenderProcessHostImpl::GetBluetoothDispatcherHost() {
2538 return bluetooth_dispatcher_host_.get(); 2538 return bluetooth_dispatcher_host_.get();
2539 } 2539 }
2540 2540
2541 } // namespace content 2541 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698