OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_RENDERER_MEDIA_CAST_SESSION_H_ | 5 #ifndef CHROME_RENDERER_MEDIA_CAST_SESSION_H_ |
6 #define CHROME_RENDERER_MEDIA_CAST_SESSION_H_ | 6 #define CHROME_RENDERER_MEDIA_CAST_SESSION_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 #include "base/callback.h" | 11 #include "base/callback.h" |
12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
13 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
14 #include "net/base/ip_endpoint.h" | 14 #include "net/base/ip_endpoint.h" |
15 | 15 |
16 namespace base { | 16 namespace base { |
17 class BinaryValue; | 17 class BinaryValue; |
18 class DictionaryValue; | 18 class DictionaryValue; |
19 class MessageLoopProxy; | 19 class SingleThreadTaskRunner; |
20 } // namespace base | 20 } // namespace base |
21 | 21 |
22 namespace media { | 22 namespace media { |
23 class VideoFrame; | 23 class VideoFrame; |
24 namespace cast { | 24 namespace cast { |
25 class AudioFrameInput; | 25 class AudioFrameInput; |
26 class VideoFrameInput; | 26 class VideoFrameInput; |
27 struct AudioSenderConfig; | 27 struct AudioSenderConfig; |
28 struct VideoSenderConfig; | 28 struct VideoSenderConfig; |
29 } // namespace cast | 29 } // namespace cast |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 private: | 93 private: |
94 friend class base::RefCounted<CastSession>; | 94 friend class base::RefCounted<CastSession>; |
95 virtual ~CastSession(); | 95 virtual ~CastSession(); |
96 | 96 |
97 // This member should never be dereferenced on the main thread. | 97 // This member should never be dereferenced on the main thread. |
98 // CastSessionDelegate lives only on the IO thread. It is always | 98 // CastSessionDelegate lives only on the IO thread. It is always |
99 // safe to post task on the IO thread to access CastSessionDelegate | 99 // safe to post task on the IO thread to access CastSessionDelegate |
100 // because it is owned by this object. | 100 // because it is owned by this object. |
101 scoped_ptr<CastSessionDelegate> delegate_; | 101 scoped_ptr<CastSessionDelegate> delegate_; |
102 | 102 |
103 // Proxy to the IO message loop. | 103 // Proxy to the IO task runner. |
104 const scoped_refptr<base::MessageLoopProxy> io_message_loop_proxy_; | 104 const scoped_refptr<base::SingleThreadTaskRunner> io_task_runner_; |
105 | 105 |
106 DISALLOW_COPY_AND_ASSIGN(CastSession); | 106 DISALLOW_COPY_AND_ASSIGN(CastSession); |
107 }; | 107 }; |
108 | 108 |
109 #endif // CHROME_RENDERER_MEDIA_CAST_SESSION_H_ | 109 #endif // CHROME_RENDERER_MEDIA_CAST_SESSION_H_ |
OLD | NEW |