cygprofile: increase timeouts to allow showing web contents
[chromium-blink-merge.git] / chromecast / media / base / media_message_loop.cc
blob17e22132d739bad121e7ab0e445d9ce35fdd8040
1 // Copyright 2014 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/base/media_message_loop.h"
7 #include "base/threading/thread.h"
9 namespace chromecast {
10 namespace media {
12 // static
13 scoped_refptr<base::SingleThreadTaskRunner> MediaMessageLoop::GetTaskRunner() {
14 return GetInstance()->thread_->task_runner();
17 // static
18 MediaMessageLoop* MediaMessageLoop::GetInstance() {
19 return Singleton<MediaMessageLoop>::get();
22 MediaMessageLoop::MediaMessageLoop()
23 : thread_(new base::Thread("CmaThread")) {
24 thread_->Start();
27 MediaMessageLoop::~MediaMessageLoop() {
28 // This will automatically shutdown the thread.
31 } // namespace media
32 } // namespace chromecast