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

Side by Side Diff: remoting/client/plugin/pepper_main_thread_task_runner.cc

Issue 2823103003: Introduce TaskRunner::RunsTasksInCurrentSequence() (Closed)
Patch Set: rebase & remove inline keyword Created 3 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "remoting/client/plugin/pepper_main_thread_task_runner.h" 5 #include "remoting/client/plugin/pepper_main_thread_task_runner.h"
6 6
7 #include <memory> 7 #include <memory>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 return true; 42 return true;
43 } 43 }
44 44
45 bool PepperMainThreadTaskRunner::PostNonNestableDelayedTask( 45 bool PepperMainThreadTaskRunner::PostNonNestableDelayedTask(
46 const tracked_objects::Location& from_here, 46 const tracked_objects::Location& from_here,
47 base::OnceClosure task, 47 base::OnceClosure task,
48 base::TimeDelta delay) { 48 base::TimeDelta delay) {
49 return PostDelayedTask(from_here, std::move(task), delay); 49 return PostDelayedTask(from_here, std::move(task), delay);
50 } 50 }
51 51
52 bool PepperMainThreadTaskRunner::RunsTasksOnCurrentThread() const { 52 bool PepperMainThreadTaskRunner::RunsTasksInCurrentSequence() const {
53 return core_->IsMainThread(); 53 return core_->IsMainThread();
54 } 54 }
55 55
56 PepperMainThreadTaskRunner::~PepperMainThreadTaskRunner() {} 56 PepperMainThreadTaskRunner::~PepperMainThreadTaskRunner() {}
57 57
58 void PepperMainThreadTaskRunner::RunTask(base::OnceClosure task) { 58 void PepperMainThreadTaskRunner::RunTask(base::OnceClosure task) {
59 std::move(task).Run(); 59 std::move(task).Run();
60 } 60 }
61 61
62 } // namespace remoting 62 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/client/plugin/pepper_main_thread_task_runner.h ('k') | third_party/WebKit/Source/platform/WebTaskRunner.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698