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 <windows.h> | 7 #include <windows.h> |
8 #include <io.h> | 8 #include <io.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
| 11 #include <algorithm> |
11 #include <utility> | 12 #include <utility> |
12 | 13 |
13 #include "base/bind.h" | 14 #include "base/bind.h" |
14 #include "base/bind_helpers.h" | 15 #include "base/bind_helpers.h" |
15 #include "base/logging.h" | 16 #include "base/logging.h" |
16 #include "base/macros.h" | 17 #include "base/macros.h" |
17 #include "base/process/process_iterator.h" | 18 #include "base/process/process_iterator.h" |
18 #include "base/threading/thread_task_runner_handle.h" | 19 #include "base/threading/thread_task_runner_handle.h" |
19 #include "base/win/object_watcher.h" | 20 #include "base/win/object_watcher.h" |
20 | 21 |
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 return; | 194 return; |
194 } | 195 } |
195 | 196 |
196 ThreadTaskRunnerHandle::Get()->PostDelayedTask( | 197 ThreadTaskRunnerHandle::Get()->PostDelayedTask( |
197 FROM_HERE, Bind(&TimerExpiredTask::TimedOut, | 198 FROM_HERE, Bind(&TimerExpiredTask::TimedOut, |
198 Owned(new TimerExpiredTask(std::move(process)))), | 199 Owned(new TimerExpiredTask(std::move(process)))), |
199 TimeDelta::FromMilliseconds(kWaitInterval)); | 200 TimeDelta::FromMilliseconds(kWaitInterval)); |
200 } | 201 } |
201 | 202 |
202 } // namespace base | 203 } // namespace base |
OLD | NEW |