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

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: Comment out streaming test until the default implementation is improved. 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
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 // NOTE: This is included in the review for clarity, but this will be submitted
6 // in halliwell@'s review (1257013003), so this should be removed before
7 // submit.
8
9 #ifndef CHROMECAST_BASE_TASK_RUNNER_IMPL_H_
10 #define CHROMECAST_BASE_TASK_RUNNER_IMPL_H_
11
12 #include "base/macros.h"
13 #include "base/memory/ref_counted.h"
14 #include "chromecast/public/task_runner.h"
15
16 namespace base {
17 class SingleThreadTaskRunner;
18 }
19
20 namespace chromecast {
21
22 // Implementation of public TaskRunner interface that just calls
23 // base::ThreadTaskRunnerHandle at construction time and uses it to post.
24 class TaskRunnerImpl : public TaskRunner {
25 public:
26 TaskRunnerImpl();
27 ~TaskRunnerImpl() override;
28
29 bool BelongsToCurrentThread() override;
30 bool PostTask(Task* task, uint64_t milliseconds) override;
31
32 private:
33 scoped_refptr<base::SingleThreadTaskRunner> runner_;
34
35 DISALLOW_COPY_AND_ASSIGN(TaskRunnerImpl);
36 };
37
38 } // namespace chromecast
39
40 #endif // CHROMECAST_BASE_TASK_RUNNER_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | chromecast/base/task_runner_impl.cc » ('j') | chromecast/public/media/cast_audio_output_stream.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698