blob: 4f4631b45d08b125e20fceb4815345c77d1dea6b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROMECAST_MEDIA_BASE_MEDIA_MESSAGE_LOOP_H_
#define CHROMECAST_MEDIA_BASE_MEDIA_MESSAGE_LOOP_H_
#include "base/macros.h"
#include "base/memory/ref_counted.h"
#include "base/memory/singleton.h"
namespace base {
class SingleThreadTaskRunner;
class Thread;
}
namespace chromecast {
namespace media {
// DEPRECATED: This is being deprecated.
// Get the media task runner from CastContentBrowserClient::GetMediaTaskRunner.
class MediaMessageLoop {
public:
static scoped_refptr<base::SingleThreadTaskRunner> GetTaskRunner();
static MediaMessageLoop* GetInstance();
private:
friend struct base::DefaultSingletonTraits<MediaMessageLoop>;
MediaMessageLoop();
~MediaMessageLoop();
scoped_ptr<base::Thread> thread_;
DISALLOW_COPY_AND_ASSIGN(MediaMessageLoop);
};
} // namespace media
} // namespace chromecast
#endif // CHROMECAST_MEDIA_BASE_MEDIA_MESSAGE_LOOP_H_
|