Disable flaky testHTTPResponseTimelineRecorder on Mac
[chromium-blink-merge.git] / chromecast / browser / media / cma_message_loop.h
blob826999fa5af45e82092e67eefc5cd8918aec3fa2
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 #ifndef CHROMECAST_BROWSER_MEDIA_CMA_MESSAGE_LOOP_H_
6 #define CHROMECAST_BROWSER_MEDIA_CMA_MESSAGE_LOOP_H_
8 #include "base/macros.h"
9 #include "base/memory/ref_counted.h"
10 #include "base/memory/singleton.h"
12 namespace base {
13 class MessageLoopProxy;
14 class Thread;
17 namespace chromecast {
18 namespace media {
20 class CmaMessageLoop {
21 public:
22 static scoped_refptr<base::MessageLoopProxy> GetMessageLoopProxy();
24 private:
25 friend struct DefaultSingletonTraits<CmaMessageLoop>;
26 friend class Singleton<CmaMessageLoop>;
28 static CmaMessageLoop* GetInstance();
30 CmaMessageLoop();
31 ~CmaMessageLoop();
33 scoped_ptr<base::Thread> thread_;
35 DISALLOW_COPY_AND_ASSIGN(CmaMessageLoop);
38 } // namespace media
39 } // namespace chromecast
41 #endif // CHROMECAST_BROWSER_MEDIA_CMA_MESSAGE_LOOP_H_