cygprofile: increase timeouts to allow showing web contents
[chromium-blink-merge.git] / chromecast / media / base / media_message_loop.h
blobe9f1e09abc295289f6ab40e31663cf50b3d3b8d7
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_MEDIA_BASE_MEDIA_MESSAGE_LOOP_H_
6 #define CHROMECAST_MEDIA_BASE_MEDIA_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 SingleThreadTaskRunner;
14 class Thread;
17 namespace chromecast {
18 namespace media {
20 class MediaMessageLoop {
21 public:
22 static scoped_refptr<base::SingleThreadTaskRunner> GetTaskRunner();
24 private:
25 friend struct DefaultSingletonTraits<MediaMessageLoop>;
26 friend class Singleton<MediaMessageLoop>;
28 static MediaMessageLoop* GetInstance();
30 MediaMessageLoop();
31 ~MediaMessageLoop();
33 scoped_ptr<base::Thread> thread_;
35 DISALLOW_COPY_AND_ASSIGN(MediaMessageLoop);
38 } // namespace media
39 } // namespace chromecast
41 #endif // CHROMECAST_MEDIA_BASE_MEDIA_MESSAGE_LOOP_H_