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

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

Issue 1549113002: Switch to standard integer types in content/browser/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 12 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
« no previous file with comments | « content/browser/browser_child_process_host_impl.h ('k') | content/browser/browser_context.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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"
11 #include "base/files/file_path.h" 11 #include "base/files/file_path.h"
12 #include "base/lazy_instance.h" 12 #include "base/lazy_instance.h"
13 #include "base/logging.h" 13 #include "base/logging.h"
14 #include "base/macros.h"
14 #include "base/metrics/histogram.h" 15 #include "base/metrics/histogram.h"
15 #include "base/stl_util.h" 16 #include "base/stl_util.h"
16 #include "base/strings/string_util.h" 17 #include "base/strings/string_util.h"
17 #include "base/synchronization/waitable_event.h" 18 #include "base/synchronization/waitable_event.h"
19 #include "build/build_config.h"
18 #include "components/tracing/tracing_switches.h" 20 #include "components/tracing/tracing_switches.h"
19 #include "content/browser/histogram_message_filter.h" 21 #include "content/browser/histogram_message_filter.h"
20 #include "content/browser/loader/resource_message_filter.h" 22 #include "content/browser/loader/resource_message_filter.h"
21 #include "content/browser/memory/memory_message_filter.h" 23 #include "content/browser/memory/memory_message_filter.h"
22 #include "content/browser/profiler_message_filter.h" 24 #include "content/browser/profiler_message_filter.h"
23 #include "content/browser/tracing/trace_message_filter.h" 25 #include "content/browser/tracing/trace_message_filter.h"
24 #include "content/common/child_process_host_impl.h" 26 #include "content/common/child_process_host_impl.h"
25 #include "content/common/child_process_messages.h" 27 #include "content/common/child_process_messages.h"
26 #include "content/public/browser/browser_child_process_host_delegate.h" 28 #include "content/public/browser/browser_child_process_host_delegate.h"
27 #include "content/public/browser/browser_child_process_observer.h" 29 #include "content/public/browser/browser_child_process_observer.h"
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after
274 return base::GetTerminationStatus(data_.handle, exit_code); 276 return base::GetTerminationStatus(data_.handle, exit_code);
275 return child_process_->GetChildTerminationStatus(known_dead, 277 return child_process_->GetChildTerminationStatus(known_dead,
276 exit_code); 278 exit_code);
277 } 279 }
278 280
279 bool BrowserChildProcessHostImpl::OnMessageReceived( 281 bool BrowserChildProcessHostImpl::OnMessageReceived(
280 const IPC::Message& message) { 282 const IPC::Message& message) {
281 return delegate_->OnMessageReceived(message); 283 return delegate_->OnMessageReceived(message);
282 } 284 }
283 285
284 void BrowserChildProcessHostImpl::OnChannelConnected(int32 peer_pid) { 286 void BrowserChildProcessHostImpl::OnChannelConnected(int32_t peer_pid) {
285 DCHECK_CURRENTLY_ON(BrowserThread::IO); 287 DCHECK_CURRENTLY_ON(BrowserThread::IO);
286 288
287 is_channel_connected_ = true; 289 is_channel_connected_ = true;
288 290
289 #if defined(OS_WIN) 291 #if defined(OS_WIN)
290 // From this point onward, the exit of the child process is detected by an 292 // From this point onward, the exit of the child process is detected by an
291 // error on the IPC channel. 293 // error on the IPC channel.
292 early_exit_watcher_.StopWatching(); 294 early_exit_watcher_.StopWatching();
293 #endif 295 #endif
294 296
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
456 458
457 #if defined(OS_WIN) 459 #if defined(OS_WIN)
458 460
459 void BrowserChildProcessHostImpl::OnObjectSignaled(HANDLE object) { 461 void BrowserChildProcessHostImpl::OnObjectSignaled(HANDLE object) {
460 OnChildDisconnected(); 462 OnChildDisconnected();
461 } 463 }
462 464
463 #endif 465 #endif
464 466
465 } // namespace content 467 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/browser_child_process_host_impl.h ('k') | content/browser/browser_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698