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

Side by Side Diff: content/child/child_process.cc

Issue 1544273002: Switch to standard integer types in content/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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/child/child_process.h ('k') | content/child/child_resource_message_filter.h » ('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/child/child_process.h" 5 #include "content/child/child_process.h"
6 6
7 #if defined(OS_POSIX) && !defined(OS_ANDROID) 7 #include <string.h>
8 #include <signal.h> // For SigUSR1Handler below.
9 #endif
10 8
11 #include "base/lazy_instance.h" 9 #include "base/lazy_instance.h"
12 #include "base/message_loop/message_loop.h" 10 #include "base/message_loop/message_loop.h"
13 #include "base/metrics/statistics_recorder.h" 11 #include "base/metrics/statistics_recorder.h"
14 #include "base/process/process_handle.h" 12 #include "base/process/process_handle.h"
15 #include "base/strings/string_number_conversions.h" 13 #include "base/strings/string_number_conversions.h"
16 #include "base/strings/utf_string_conversions.h" 14 #include "base/strings/utf_string_conversions.h"
17 #include "base/threading/thread.h" 15 #include "base/threading/thread.h"
18 #include "base/threading/thread_local.h" 16 #include "base/threading/thread_local.h"
17 #include "build/build_config.h"
19 #include "content/child/child_thread_impl.h" 18 #include "content/child/child_thread_impl.h"
20 19
21 #if defined(OS_ANDROID) 20 #if defined(OS_ANDROID)
22 #include "base/debug/debugger.h" 21 #include "base/debug/debugger.h"
23 #endif 22 #endif
24 23
25 #if defined(OS_POSIX) && !defined(OS_ANDROID) 24 #if defined(OS_POSIX) && !defined(OS_ANDROID)
25 #include <signal.h>
26 static void SigUSR1Handler(int signal) { } 26 static void SigUSR1Handler(int signal) { }
27 #endif 27 #endif
28 28
29 namespace content { 29 namespace content {
30 30
31 namespace { 31 namespace {
32 32
33 base::LazyInstance<base::ThreadLocalPointer<ChildProcess> > g_lazy_tls = 33 base::LazyInstance<base::ThreadLocalPointer<ChildProcess> > g_lazy_tls =
34 LAZY_INSTANCE_INITIALIZER; 34 LAZY_INSTANCE_INITIALIZER;
35 } 35 }
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 memset(&sa, 0, sizeof(sa)); 138 memset(&sa, 0, sizeof(sa));
139 sa.sa_handler = SigUSR1Handler; 139 sa.sa_handler = SigUSR1Handler;
140 sigaction(SIGUSR1, &sa, NULL); 140 sigaction(SIGUSR1, &sa, NULL);
141 141
142 pause(); 142 pause();
143 #endif // defined(OS_ANDROID) 143 #endif // defined(OS_ANDROID)
144 #endif // defined(OS_POSIX) 144 #endif // defined(OS_POSIX)
145 } 145 }
146 146
147 } // namespace content 147 } // namespace content
OLDNEW
« no previous file with comments | « content/child/child_process.h ('k') | content/child/child_resource_message_filter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698