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

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

Issue 1105803002: Exposes a shlib interface for media/audio path. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updates to interfacesa and impls to coordinate with CMA CL 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/macros.h"
9 #include "base/memory/ref_counted.h"
10 #include "chromecast/public/task_runner.h"
11
12 namespace base {
13 class SingleThreadTaskRunner;
14 }
15
16 namespace chromecast {
17
18 // Implementation of public TaskRunner interface that just calls
19 // base::ThreadTaskRunnerHandle at construction time and uses it to post.
20 class TaskRunnerImpl : public TaskRunner {
21 public:
22 TaskRunnerImpl();
23 ~TaskRunnerImpl() override;
24
25 bool BelongsToCurrentThread() override;
26 bool PostTask(Task* task, uint64_t milliseconds) override;
27
28 private:
29 scoped_refptr<base::SingleThreadTaskRunner> runner_;
30
31 DISALLOW_COPY_AND_ASSIGN(TaskRunnerImpl);
32 };
33
34 } // namespace chromecast
35
36 #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