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

Unified Diff: chromecast/media/cma/base/dummy_media_task_runner.h

Issue 1161163003: Chromecast: split DummyMediaTaskRunner class into its own file. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: chromecast/media/cma/base/dummy_media_task_runner.h
diff --git a/chromecast/media/cma/base/dummy_media_task_runner.h b/chromecast/media/cma/base/dummy_media_task_runner.h
new file mode 100644
index 0000000000000000000000000000000000000000..58ab8b799e98929f8fd5a2586c07904b611ee819
--- /dev/null
+++ b/chromecast/media/cma/base/dummy_media_task_runner.h
@@ -0,0 +1,39 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROMECAST_MEDIA_CMA_FILTERS_DUMMY_MEDIA_TASK_RUNNER_H_
+#define CHROMECAST_MEDIA_CMA_FILTERS_DUMMY_MEDIA_TASK_RUNNER_H_
+
+#include "chromecast/media/cma/base/media_task_runner.h"
+
+namespace base {
+class SingleThreadTaskRunner;
+} // namespace base
+
+namespace chromecast {
+namespace media {
+
+class DummyMediaTaskRunner : public MediaTaskRunner {
+ public:
+ DummyMediaTaskRunner(
+ const scoped_refptr<base::SingleThreadTaskRunner>& task_runner);
+
+ // MediaTaskRunner implementation.
+ bool PostMediaTask(
+ const tracked_objects::Location& from_here,
+ const base::Closure& task,
+ base::TimeDelta timestamp) override;
+
+ private:
+ ~DummyMediaTaskRunner() override;
+
+ scoped_refptr<base::SingleThreadTaskRunner> const task_runner_;
+
+ DISALLOW_COPY_AND_ASSIGN(DummyMediaTaskRunner);
+};
+
+} // namespace media
+} // namespace chromecast
+
+#endif // CHROMECAST_MEDIA_CMA_FILTERS_DUMMY_MEDIA_TASK_RUNNER_H_

Powered by Google App Engine
This is Rietveld 408576698