OLD | NEW |
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 #if defined(OS_POSIX) && !defined(OS_ANDROID) |
8 #include <signal.h> // For SigUSR1Handler below. | 8 #include <signal.h> // For SigUSR1Handler below. |
9 #endif | 9 #endif |
10 | 10 |
11 #include "base/lazy_instance.h" | 11 #include "base/lazy_instance.h" |
12 #include "base/message_loop/message_loop.h" | 12 #include "base/message_loop/message_loop.h" |
13 #include "base/metrics/statistics_recorder.h" | 13 #include "base/metrics/statistics_recorder.h" |
14 #include "base/process_util.h" | 14 #include "base/process/process_handle.h" |
15 #include "base/strings/string_number_conversions.h" | 15 #include "base/strings/string_number_conversions.h" |
16 #include "base/strings/utf_string_conversions.h" | 16 #include "base/strings/utf_string_conversions.h" |
17 #include "base/threading/thread.h" | 17 #include "base/threading/thread.h" |
18 #include "base/threading/thread_local.h" | 18 #include "base/threading/thread_local.h" |
19 #include "content/child/child_thread.h" | 19 #include "content/child/child_thread.h" |
20 | 20 |
21 #if defined(OS_ANDROID) | 21 #if defined(OS_ANDROID) |
22 #include "base/debug/debugger.h" | 22 #include "base/debug/debugger.h" |
23 #endif | 23 #endif |
24 | 24 |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 memset(&sa, 0, sizeof(sa)); | 137 memset(&sa, 0, sizeof(sa)); |
138 sa.sa_handler = SigUSR1Handler; | 138 sa.sa_handler = SigUSR1Handler; |
139 sigaction(SIGUSR1, &sa, NULL); | 139 sigaction(SIGUSR1, &sa, NULL); |
140 | 140 |
141 pause(); | 141 pause(); |
142 #endif // defined(OS_ANDROID) | 142 #endif // defined(OS_ANDROID) |
143 #endif // defined(OS_POSIX) | 143 #endif // defined(OS_POSIX) |
144 } | 144 } |
145 | 145 |
146 } // namespace content | 146 } // namespace content |
OLD | NEW |