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

Side by Side Diff: base/process/kill_win.cc

Issue 2365423003: Remove MessageLoop::current() from base::win::ObjectWatcher (reland). (Closed)
Patch Set: same as https://codereview.chromium.org/2125763003 Created 4 years, 2 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 | « base/files/file_path_watcher_win.cc ('k') | base/win/object_watcher.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) 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/memory.h" 18 #include "base/process/memory.h"
18 #include "base/process/process_iterator.h" 19 #include "base/process/process_iterator.h"
19 #include "base/threading/thread_task_runner_handle.h" 20 #include "base/threading/thread_task_runner_handle.h"
20 #include "base/win/object_watcher.h" 21 #include "base/win/object_watcher.h"
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 return; 200 return;
200 } 201 }
201 202
202 ThreadTaskRunnerHandle::Get()->PostDelayedTask( 203 ThreadTaskRunnerHandle::Get()->PostDelayedTask(
203 FROM_HERE, Bind(&TimerExpiredTask::TimedOut, 204 FROM_HERE, Bind(&TimerExpiredTask::TimedOut,
204 Owned(new TimerExpiredTask(std::move(process)))), 205 Owned(new TimerExpiredTask(std::move(process)))),
205 TimeDelta::FromMilliseconds(kWaitInterval)); 206 TimeDelta::FromMilliseconds(kWaitInterval));
206 } 207 }
207 208
208 } // namespace base 209 } // namespace base
OLDNEW
« no previous file with comments | « base/files/file_path_watcher_win.cc ('k') | base/win/object_watcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698