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

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

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.cc
diff --git a/chromecast/media/cma/base/dummy_media_task_runner.cc b/chromecast/media/cma/base/dummy_media_task_runner.cc
new file mode 100644
index 0000000000000000000000000000000000000000..77b53f28fbb1c988ceb47dfc936b211bb4c9d6a5
--- /dev/null
+++ b/chromecast/media/cma/base/dummy_media_task_runner.cc
@@ -0,0 +1,28 @@
+// 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.
+
+#include "chromecast/media/cma/base/dummy_media_task_runner.h"
+
+#include "base/single_thread_task_runner.h"
+
+namespace chromecast {
+namespace media {
+
+DummyMediaTaskRunner::DummyMediaTaskRunner(
+ const scoped_refptr<base::SingleThreadTaskRunner>& task_runner)
gunsch 2015/06/05 18:09:20 Dummy sounds like it doesn't do anything. This doe
erickung1 2015/06/05 19:28:19 Done.
+ : task_runner_(task_runner) {
+}
+
+DummyMediaTaskRunner::~DummyMediaTaskRunner() {
+}
+
+bool DummyMediaTaskRunner::PostMediaTask(
+ const tracked_objects::Location& from_here,
+ const base::Closure& task,
+ base::TimeDelta timestamp) {
+ return task_runner_->PostTask(from_here, task);
+}
+
+} // namespace media
+} // namespace chromecast
« no previous file with comments | « chromecast/media/cma/base/dummy_media_task_runner.h ('k') | chromecast/media/cma/filters/demuxer_stream_adapter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698