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

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

Issue 681733003: Removed the ProcessHandle from the RendererClosedDetails payload (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed chromeos dependency Created 6 years, 1 month 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 1897 matching lines...) Expand 10 before | Expand all | Expand 10 after
1908 1908
1909 // child_process_launcher_ can be NULL in single process mode or if fast 1909 // child_process_launcher_ can be NULL in single process mode or if fast
1910 // termination happened. 1910 // termination happened.
1911 int exit_code = 0; 1911 int exit_code = 0;
1912 base::TerminationStatus status = 1912 base::TerminationStatus status =
1913 child_process_launcher_.get() ? 1913 child_process_launcher_.get() ?
1914 child_process_launcher_->GetChildTerminationStatus(already_dead, 1914 child_process_launcher_->GetChildTerminationStatus(already_dead,
1915 &exit_code) : 1915 &exit_code) :
1916 base::TERMINATION_STATUS_NORMAL_TERMINATION; 1916 base::TERMINATION_STATUS_NORMAL_TERMINATION;
1917 1917
1918 RendererClosedDetails details(GetHandle(), status, exit_code); 1918 RendererClosedDetails details(status, exit_code);
1919 mojo_application_host_->WillDestroySoon(); 1919 mojo_application_host_->WillDestroySoon();
1920 1920
1921 child_process_launcher_.reset(); 1921 child_process_launcher_.reset();
1922 channel_.reset(); 1922 channel_.reset();
1923 1923
1924 within_process_died_observer_ = true; 1924 within_process_died_observer_ = true;
1925 NotificationService::current()->Notify( 1925 NotificationService::current()->Notify(
1926 NOTIFICATION_RENDERER_PROCESS_CLOSED, 1926 NOTIFICATION_RENDERER_PROCESS_CLOSED,
1927 Source<RenderProcessHost>(this), 1927 Source<RenderProcessHost>(this),
1928 Details<RendererClosedDetails>(&details)); 1928 Details<RendererClosedDetails>(&details));
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after
2245 2245
2246 void RenderProcessHostImpl::DecrementWorkerRefCount() { 2246 void RenderProcessHostImpl::DecrementWorkerRefCount() {
2247 DCHECK_CURRENTLY_ON(BrowserThread::UI); 2247 DCHECK_CURRENTLY_ON(BrowserThread::UI);
2248 DCHECK_GT(worker_ref_count_, 0); 2248 DCHECK_GT(worker_ref_count_, 0);
2249 --worker_ref_count_; 2249 --worker_ref_count_;
2250 if (worker_ref_count_ == 0) 2250 if (worker_ref_count_ == 0)
2251 Cleanup(); 2251 Cleanup();
2252 } 2252 }
2253 2253
2254 } // namespace content 2254 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698