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.
5 #include "chromecast/media/cma/base/simple_media_task_runner.h"
7 #include "base/single_thread_task_runner.h"
12 SimpleMediaTaskRunner::SimpleMediaTaskRunner(
13 const scoped_refptr
<base::SingleThreadTaskRunner
>& task_runner
)
14 : task_runner_(task_runner
) {
17 SimpleMediaTaskRunner::~SimpleMediaTaskRunner() {
20 bool SimpleMediaTaskRunner::PostMediaTask(
21 const tracked_objects::Location
& from_here
,
22 const base::Closure
& task
,
23 base::TimeDelta timestamp
) {
24 return task_runner_
->PostTask(from_here
, task
);
28 } // namespace chromecast