Disable flaky testHTTPResponseTimelineRecorder on Mac
[chromium-blink-merge.git] / chromecast / browser / media / cma_message_loop.cc
blob98b2d9580ce25dc23b926441ff9700df3d23bca8
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/browser/media/cma_message_loop.h"
7 #include "base/threading/thread.h"
9 namespace chromecast {
10 namespace media {
12 // static
13 scoped_refptr<base::MessageLoopProxy> CmaMessageLoop::GetMessageLoopProxy() {
14 return GetInstance()->thread_->message_loop_proxy();
17 // static
18 CmaMessageLoop* CmaMessageLoop::GetInstance() {
19 return Singleton<CmaMessageLoop>::get();
22 CmaMessageLoop::CmaMessageLoop()
23 : thread_(new base::Thread("CmaThread")) {
24 thread_->Start();
27 CmaMessageLoop::~CmaMessageLoop() {
28 // This will automatically shutdown the thread.
31 } // namespace media
32 } // namespace chromecast