| 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.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" | 15 #include "base/process_util.h" |
| 16 #include "base/win/object_watcher.h" | 16 #include "base/win/object_watcher.h" |
| 17 | 17 |
| 18 namespace base { | 18 namespace base { |
| 19 | 19 |
| 20 namespace { | 20 namespace { |
| 21 | 21 |
| 22 // Exit codes with special meanings on Windows. | 22 // Exit codes with special meanings on Windows. |
| 23 const DWORD kNormalTerminationExitCode = 0; | 23 const DWORD kNormalTerminationExitCode = 0; |
| (...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 247 } | 247 } |
| 248 | 248 |
| 249 MessageLoop::current()->PostDelayedTask( | 249 MessageLoop::current()->PostDelayedTask( |
| 250 FROM_HERE, | 250 FROM_HERE, |
| 251 base::Bind(&TimerExpiredTask::TimedOut, | 251 base::Bind(&TimerExpiredTask::TimedOut, |
| 252 base::Owned(new TimerExpiredTask(process))), | 252 base::Owned(new TimerExpiredTask(process))), |
| 253 base::TimeDelta::FromMilliseconds(kWaitInterval)); | 253 base::TimeDelta::FromMilliseconds(kWaitInterval)); |
| 254 } | 254 } |
| 255 | 255 |
| 256 } // namespace base | 256 } // namespace base |
| OLD | NEW |