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_RTP_STREAM_H_ | 5 #ifndef CHROME_RENDERER_MEDIA_CAST_RTP_STREAM_H_ |
6 #define CHROME_RENDERER_MEDIA_CAST_RTP_STREAM_H_ | 6 #define CHROME_RENDERER_MEDIA_CAST_RTP_STREAM_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "base/callback.h" | 12 #include "base/callback.h" |
13 #include "base/macros.h" | 13 #include "base/macros.h" |
14 #include "base/memory/ref_counted.h" | 14 #include "base/memory/ref_counted.h" |
15 #include "base/memory/weak_ptr.h" | 15 #include "base/memory/weak_ptr.h" |
16 #include "media/cast/cast_config.h" | 16 #include "media/cast/cast_config.h" |
17 #include "media/cast/constants.h" | 17 #include "media/cast/constants.h" |
18 #include "third_party/WebKit/public/platform/WebMediaStreamTrack.h" | 18 #include "third_party/WebKit/public/platform/WebMediaStreamTrack.h" |
19 | 19 |
20 namespace base { | 20 namespace base { |
21 class BinaryValue; | |
22 class DictionaryValue; | 21 class DictionaryValue; |
| 22 class Value; |
| 23 using BinaryValue = Value; |
23 } | 24 } |
24 | 25 |
25 class CastAudioSink; | 26 class CastAudioSink; |
26 class CastSession; | 27 class CastSession; |
27 class CastVideoSink; | 28 class CastVideoSink; |
28 | 29 |
29 // This object represents a RTP stream that encodes and optionally | 30 // This object represents a RTP stream that encodes and optionally |
30 // encrypt audio or video data from a WebMediaStreamTrack. | 31 // encrypt audio or video data from a WebMediaStreamTrack. |
31 // Note that this object does not actually output packets. It allows | 32 // Note that this object does not actually output packets. It allows |
32 // configuration of encoding and RTP parameters and control such a logical | 33 // configuration of encoding and RTP parameters and control such a logical |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 base::Closure stop_callback_; | 87 base::Closure stop_callback_; |
87 ErrorCallback error_callback_; | 88 ErrorCallback error_callback_; |
88 bool is_audio_; | 89 bool is_audio_; |
89 | 90 |
90 base::WeakPtrFactory<CastRtpStream> weak_factory_; | 91 base::WeakPtrFactory<CastRtpStream> weak_factory_; |
91 | 92 |
92 DISALLOW_COPY_AND_ASSIGN(CastRtpStream); | 93 DISALLOW_COPY_AND_ASSIGN(CastRtpStream); |
93 }; | 94 }; |
94 | 95 |
95 #endif // CHROME_RENDERER_MEDIA_CAST_RTP_STREAM_H_ | 96 #endif // CHROME_RENDERER_MEDIA_CAST_RTP_STREAM_H_ |
OLD | NEW |