[MediaRouter] Update MR-2-Extension's PostMessage to return boolean.
[chromium-blink-merge.git] / chromecast / media / cma / base / simple_media_task_runner.cc
blobc4a54395f66718bfb5ecac4a8f3f109fe51349b3
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"
9 namespace chromecast {
10 namespace media {
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);
27 } // namespace media
28 } // namespace chromecast