| OLD | NEW |
| (Empty) |
| 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. | |
| 4 | |
| 5 #ifndef CHROMECAST_MEDIA_BASE_MEDIA_MESSAGE_LOOP_H_ | |
| 6 #define CHROMECAST_MEDIA_BASE_MEDIA_MESSAGE_LOOP_H_ | |
| 7 | |
| 8 #include <memory> | |
| 9 | |
| 10 #include "base/macros.h" | |
| 11 #include "base/memory/ref_counted.h" | |
| 12 #include "base/memory/singleton.h" | |
| 13 | |
| 14 namespace base { | |
| 15 class SingleThreadTaskRunner; | |
| 16 class Thread; | |
| 17 } | |
| 18 | |
| 19 namespace chromecast { | |
| 20 namespace media { | |
| 21 | |
| 22 // DEPRECATED: This is being deprecated. | |
| 23 // Get the media task runner from CastContentBrowserClient::GetMediaTaskRunner. | |
| 24 class MediaMessageLoop { | |
| 25 public: | |
| 26 static scoped_refptr<base::SingleThreadTaskRunner> GetTaskRunner(); | |
| 27 | |
| 28 static MediaMessageLoop* GetInstance(); | |
| 29 | |
| 30 private: | |
| 31 friend struct base::DefaultSingletonTraits<MediaMessageLoop>; | |
| 32 | |
| 33 MediaMessageLoop(); | |
| 34 ~MediaMessageLoop(); | |
| 35 | |
| 36 std::unique_ptr<base::Thread> thread_; | |
| 37 | |
| 38 DISALLOW_COPY_AND_ASSIGN(MediaMessageLoop); | |
| 39 }; | |
| 40 | |
| 41 } // namespace media | |
| 42 } // namespace chromecast | |
| 43 | |
| 44 #endif // CHROMECAST_MEDIA_BASE_MEDIA_MESSAGE_LOOP_H_ | |
| OLD | NEW |