OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 "base/process/kill.h" | 5 #include "base/process/kill.h" |
6 | 6 |
7 #include <io.h> | 7 #include <io.h> |
8 #include <windows.h> | 8 #include <windows.h> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
11 #include "base/bind_helpers.h" | 11 #include "base/bind_helpers.h" |
12 #include "base/logging.h" | 12 #include "base/logging.h" |
13 #include "base/message_loop/message_loop.h" | 13 #include "base/message_loop/message_loop.h" |
14 #include "base/process/process_iterator.h" | 14 #include "base/process/process_iterator.h" |
15 #include "base/process_util.h" | |
16 #include "base/win/object_watcher.h" | 15 #include "base/win/object_watcher.h" |
17 | 16 |
18 namespace base { | 17 namespace base { |
19 | 18 |
20 namespace { | 19 namespace { |
21 | 20 |
22 // Exit codes with special meanings on Windows. | 21 // Exit codes with special meanings on Windows. |
23 const DWORD kNormalTerminationExitCode = 0; | 22 const DWORD kNormalTerminationExitCode = 0; |
24 const DWORD kDebuggerInactiveExitCode = 0xC0000354; | 23 const DWORD kDebuggerInactiveExitCode = 0xC0000354; |
25 const DWORD kKeyboardInterruptExitCode = 0xC000013A; | 24 const DWORD kKeyboardInterruptExitCode = 0xC000013A; |
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
247 } | 246 } |
248 | 247 |
249 MessageLoop::current()->PostDelayedTask( | 248 MessageLoop::current()->PostDelayedTask( |
250 FROM_HERE, | 249 FROM_HERE, |
251 base::Bind(&TimerExpiredTask::TimedOut, | 250 base::Bind(&TimerExpiredTask::TimedOut, |
252 base::Owned(new TimerExpiredTask(process))), | 251 base::Owned(new TimerExpiredTask(process))), |
253 base::TimeDelta::FromMilliseconds(kWaitInterval)); | 252 base::TimeDelta::FromMilliseconds(kWaitInterval)); |
254 } | 253 } |
255 | 254 |
256 } // namespace base | 255 } // namespace base |
OLD | NEW |