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

Side by Side Diff: content/browser/browser_child_process_host_impl.cc

Issue 1862513003: Remove NPAPI from browser and utility (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 8 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 (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 #include "content/browser/browser_child_process_host_impl.h" 5 #include "content/browser/browser_child_process_host_impl.h"
6 6
7 #include "base/base_switches.h" 7 #include "base/base_switches.h"
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/debug/dump_without_crashing.h" 10 #include "base/debug/dump_without_crashing.h"
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 } 249 }
250 250
251 void BrowserChildProcessHostImpl::SetBackgrounded(bool backgrounded) { 251 void BrowserChildProcessHostImpl::SetBackgrounded(bool backgrounded) {
252 child_process_->SetProcessBackgrounded(backgrounded); 252 child_process_->SetProcessBackgrounded(backgrounded);
253 } 253 }
254 254
255 void BrowserChildProcessHostImpl::AddFilter(BrowserMessageFilter* filter) { 255 void BrowserChildProcessHostImpl::AddFilter(BrowserMessageFilter* filter) {
256 child_process_host_->AddFilter(filter->GetFilter()); 256 child_process_host_->AddFilter(filter->GetFilter());
257 } 257 }
258 258
259 void BrowserChildProcessHostImpl::NotifyProcessInstanceCreated(
260 const ChildProcessData& data) {
261 DCHECK_CURRENTLY_ON(BrowserThread::UI);
262 FOR_EACH_OBSERVER(BrowserChildProcessObserver, g_observers.Get(),
263 BrowserChildProcessInstanceCreated(data));
264 }
265
266 void BrowserChildProcessHostImpl::HistogramBadMessageTerminated( 259 void BrowserChildProcessHostImpl::HistogramBadMessageTerminated(
267 int process_type) { 260 int process_type) {
268 UMA_HISTOGRAM_ENUMERATION("ChildProcess.BadMessgeTerminated", process_type, 261 UMA_HISTOGRAM_ENUMERATION("ChildProcess.BadMessgeTerminated", process_type,
269 PROCESS_TYPE_MAX); 262 PROCESS_TYPE_MAX);
270 } 263 }
271 264
272 base::TerminationStatus BrowserChildProcessHostImpl::GetTerminationStatus( 265 base::TerminationStatus BrowserChildProcessHostImpl::GetTerminationStatus(
273 bool known_dead, int* exit_code) { 266 bool known_dead, int* exit_code) {
274 DCHECK_CURRENTLY_ON(BrowserThread::IO); 267 DCHECK_CURRENTLY_ON(BrowserThread::IO);
275 if (!child_process_) // If the delegate doesn't use Launch() helper. 268 if (!child_process_) // If the delegate doesn't use Launch() helper.
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
447 440
448 #if defined(OS_WIN) 441 #if defined(OS_WIN)
449 442
450 void BrowserChildProcessHostImpl::OnObjectSignaled(HANDLE object) { 443 void BrowserChildProcessHostImpl::OnObjectSignaled(HANDLE object) {
451 OnChildDisconnected(); 444 OnChildDisconnected();
452 } 445 }
453 446
454 #endif 447 #endif
455 448
456 } // namespace content 449 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/browser_child_process_host_impl.h ('k') | content/browser/child_process_security_policy_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698