Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1160)

Side by Side Diff: chromecast/media/base/media_message_loop.h

Issue 1916973004: [chromecast] Delete MediaMessageLoop. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: cmathread -> castmediathread Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chromecast/media/base/BUILD.gn ('k') | chromecast/media/base/media_message_loop.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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_
OLDNEW
« no previous file with comments | « chromecast/media/base/BUILD.gn ('k') | chromecast/media/base/media_message_loop.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698