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

Side by Side Diff: chromecast/base/task_runner_impl.h

Issue 1257013003: Load CMA backend from shared library (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Unit test + android fixes Created 5 years, 4 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 | « no previous file | chromecast/base/task_runner_impl.cc » ('j') | chromecast/base/task_runner_impl.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROMECAST_BASE_TASK_RUNNER_IMPL_H_
6 #define CHROMECAST_BASE_TASK_RUNNER_IMPL_H_
7
8 #include "base/memory/ref_counted.h"
9 #include "chromecast/public/task_runner.h"
10
11 namespace base {
12 class SingleThreadTaskRunner;
13 }
14
15 namespace chromecast {
16
17 // Implementation of public TaskRunner interface that just calls
18 // base::ThreadTaskRunnerHandle at construction time and uses it to post.
19 class TaskRunnerImpl : public TaskRunner {
20 public:
21 TaskRunnerImpl();
22 ~TaskRunnerImpl() override;
23
24 bool BelongsToCurrentThread() override;
25 bool PostTask(Task* task) override;
26 bool PostDelayedTask(Task* task, TimeDelta delay) override;
27
28 private:
29 scoped_refptr<base::SingleThreadTaskRunner> runner_;
byungchul 2015/07/27 18:22:23 DISALLOW_..
halliwell 2015/07/28 02:19:35 Done.
30 };
31
32 } // namespace chromecast
33
34 #endif // CHROMECAST_BASE_TASK_RUNNER_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | chromecast/base/task_runner_impl.cc » ('j') | chromecast/base/task_runner_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698