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

Side by Side Diff: base/message_loop/message_loop.cc

Issue 1926813005: Remove MessageLoop::PostNonNestableDelayedTask(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ios Created 4 years, 7 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/message_loop/message_loop.h ('k') | base/message_loop/message_loop_test.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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/message_loop/message_loop.h" 5 #include "base/message_loop/message_loop.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <memory> 8 #include <memory>
9 #include <utility> 9 #include <utility>
10 10
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 TimeDelta delay) { 275 TimeDelta delay) {
276 task_runner_->PostDelayedTask(from_here, task, delay); 276 task_runner_->PostDelayedTask(from_here, task, delay);
277 } 277 }
278 278
279 void MessageLoop::PostNonNestableTask( 279 void MessageLoop::PostNonNestableTask(
280 const tracked_objects::Location& from_here, 280 const tracked_objects::Location& from_here,
281 const Closure& task) { 281 const Closure& task) {
282 task_runner_->PostNonNestableTask(from_here, task); 282 task_runner_->PostNonNestableTask(from_here, task);
283 } 283 }
284 284
285 void MessageLoop::PostNonNestableDelayedTask(
286 const tracked_objects::Location& from_here,
287 const Closure& task,
288 TimeDelta delay) {
289 task_runner_->PostNonNestableDelayedTask(from_here, task, delay);
290 }
291
292 void MessageLoop::Run() { 285 void MessageLoop::Run() {
293 DCHECK(pump_); 286 DCHECK(pump_);
294 RunLoop run_loop; 287 RunLoop run_loop;
295 run_loop.Run(); 288 run_loop.Run();
296 } 289 }
297 290
298 void MessageLoop::RunUntilIdle() { 291 void MessageLoop::RunUntilIdle() {
299 DCHECK(pump_); 292 DCHECK(pump_);
300 RunLoop run_loop; 293 RunLoop run_loop;
301 run_loop.RunUntilIdle(); 294 run_loop.RunUntilIdle();
(...skipping 446 matching lines...) Expand 10 before | Expand all | Expand 10 after
748 persistent, 741 persistent,
749 mode, 742 mode,
750 controller, 743 controller,
751 delegate); 744 delegate);
752 } 745 }
753 #endif 746 #endif
754 747
755 #endif // !defined(OS_NACL_SFI) 748 #endif // !defined(OS_NACL_SFI)
756 749
757 } // namespace base 750 } // namespace base
OLDNEW
« no previous file with comments | « base/message_loop/message_loop.h ('k') | base/message_loop/message_loop_test.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698