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 <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 // AES encryption key. | 79 // AES encryption key. |
80 std::string aes_key; | 80 std::string aes_key; |
81 | 81 |
82 // AES encryption IV mask. | 82 // AES encryption IV mask. |
83 std::string aes_iv_mask; | 83 std::string aes_iv_mask; |
84 | 84 |
85 // List of codec specific parameters. | 85 // List of codec specific parameters. |
86 std::vector<CastCodecSpecificParams> codec_specific_params; | 86 std::vector<CastCodecSpecificParams> codec_specific_params; |
87 | 87 |
88 CastRtpPayloadParams(); | 88 CastRtpPayloadParams(); |
| 89 CastRtpPayloadParams(const CastRtpPayloadParams& other); |
89 ~CastRtpPayloadParams(); | 90 ~CastRtpPayloadParams(); |
90 }; | 91 }; |
91 | 92 |
92 // Defines the parameters of a RTP stream. | 93 // Defines the parameters of a RTP stream. |
93 struct CastRtpParams { | 94 struct CastRtpParams { |
94 explicit CastRtpParams(const CastRtpPayloadParams& payload_params); | 95 explicit CastRtpParams(const CastRtpPayloadParams& payload_params); |
95 | 96 |
96 // Payload parameters. | 97 // Payload parameters. |
97 CastRtpPayloadParams payload; | 98 CastRtpPayloadParams payload; |
98 | 99 |
99 // Names of supported RTCP features. | 100 // Names of supported RTCP features. |
100 std::vector<std::string> rtcp_features; | 101 std::vector<std::string> rtcp_features; |
101 | 102 |
102 CastRtpParams(); | 103 CastRtpParams(); |
| 104 CastRtpParams(const CastRtpParams& other); |
103 ~CastRtpParams(); | 105 ~CastRtpParams(); |
104 }; | 106 }; |
105 | 107 |
106 // This object represents a RTP stream that encodes and optionally | 108 // This object represents a RTP stream that encodes and optionally |
107 // encrypt audio or video data from a WebMediaStreamTrack. | 109 // encrypt audio or video data from a WebMediaStreamTrack. |
108 // Note that this object does not actually output packets. It allows | 110 // Note that this object does not actually output packets. It allows |
109 // configuration of encoding and RTP parameters and control such a logical | 111 // configuration of encoding and RTP parameters and control such a logical |
110 // stream. | 112 // stream. |
111 class CastRtpStream { | 113 class CastRtpStream { |
112 public: | 114 public: |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 CastRtpParams params_; | 165 CastRtpParams params_; |
164 base::Closure stop_callback_; | 166 base::Closure stop_callback_; |
165 ErrorCallback error_callback_; | 167 ErrorCallback error_callback_; |
166 | 168 |
167 base::WeakPtrFactory<CastRtpStream> weak_factory_; | 169 base::WeakPtrFactory<CastRtpStream> weak_factory_; |
168 | 170 |
169 DISALLOW_COPY_AND_ASSIGN(CastRtpStream); | 171 DISALLOW_COPY_AND_ASSIGN(CastRtpStream); |
170 }; | 172 }; |
171 | 173 |
172 #endif // CHROME_RENDERER_MEDIA_CAST_RTP_STREAM_H_ | 174 #endif // CHROME_RENDERER_MEDIA_CAST_RTP_STREAM_H_ |
OLD | NEW |