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

Side by Side Diff: webrtc/pc/channelmanager.h

Issue 2537343003: Removing "crypto_required" from MediaContentDescription. (Closed)
Patch Set: Merge with master and clean up CreateDataChannel Created 4 years 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 | « webrtc/pc/channel_unittest.cc ('k') | webrtc/pc/channelmanager.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2004 The WebRTC project authors. All Rights Reserved. 2 * Copyright 2004 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 void Terminate(); 87 void Terminate();
88 88
89 // The operations below all occur on the worker thread. 89 // The operations below all occur on the worker thread.
90 // Creates a voice channel, to be associated with the specified session. 90 // Creates a voice channel, to be associated with the specified session.
91 VoiceChannel* CreateVoiceChannel( 91 VoiceChannel* CreateVoiceChannel(
92 webrtc::MediaControllerInterface* media_controller, 92 webrtc::MediaControllerInterface* media_controller,
93 TransportController* transport_controller, 93 TransportController* transport_controller,
94 const std::string& content_name, 94 const std::string& content_name,
95 const std::string* bundle_transport_name, 95 const std::string* bundle_transport_name,
96 bool rtcp, 96 bool rtcp,
97 bool srtp_required,
97 const AudioOptions& options); 98 const AudioOptions& options);
98 // Destroys a voice channel created with the Create API. 99 // Destroys a voice channel created with the Create API.
99 void DestroyVoiceChannel(VoiceChannel* voice_channel); 100 void DestroyVoiceChannel(VoiceChannel* voice_channel);
100 // Creates a video channel, synced with the specified voice channel, and 101 // Creates a video channel, synced with the specified voice channel, and
101 // associated with the specified session. 102 // associated with the specified session.
102 VideoChannel* CreateVideoChannel( 103 VideoChannel* CreateVideoChannel(
103 webrtc::MediaControllerInterface* media_controller, 104 webrtc::MediaControllerInterface* media_controller,
104 TransportController* transport_controller, 105 TransportController* transport_controller,
105 const std::string& content_name, 106 const std::string& content_name,
106 const std::string* bundle_transport_name, 107 const std::string* bundle_transport_name,
107 bool rtcp, 108 bool rtcp,
109 bool srtp_required,
108 const VideoOptions& options); 110 const VideoOptions& options);
109 // Destroys a video channel created with the Create API. 111 // Destroys a video channel created with the Create API.
110 void DestroyVideoChannel(VideoChannel* video_channel); 112 void DestroyVideoChannel(VideoChannel* video_channel);
111 DataChannel* CreateDataChannel(TransportController* transport_controller,
112 const std::string& content_name,
113 const std::string* bundle_transport_name,
114 bool rtcp,
115 DataChannelType data_channel_type);
116 DataChannel* CreateDataChannel( 113 DataChannel* CreateDataChannel(
114 webrtc::MediaControllerInterface* media_controller,
117 TransportController* transport_controller, 115 TransportController* transport_controller,
118 webrtc::MediaControllerInterface* media_controller,
119 const std::string& content_name, 116 const std::string& content_name,
120 const std::string* bundle_transport_name, 117 const std::string* bundle_transport_name,
121 bool rtcp, 118 bool rtcp,
119 bool srtp_required,
122 DataChannelType data_channel_type); 120 DataChannelType data_channel_type);
123 // Destroys a data channel created with the Create API. 121 // Destroys a data channel created with the Create API.
124 void DestroyDataChannel(DataChannel* data_channel); 122 void DestroyDataChannel(DataChannel* data_channel);
125 123
126 // Indicates whether any channels exist. 124 // Indicates whether any channels exist.
127 bool has_channels() const { 125 bool has_channels() const {
128 return (!voice_channels_.empty() || !video_channels_.empty()); 126 return (!voice_channels_.empty() || !video_channels_.empty());
129 } 127 }
130 128
131 // RTX will be enabled/disabled in engines that support it. The supporting 129 // RTX will be enabled/disabled in engines that support it. The supporting
(...skipping 29 matching lines...) Expand all
161 bool InitMediaEngine_w(); 159 bool InitMediaEngine_w();
162 void DestructorDeletes_w(); 160 void DestructorDeletes_w();
163 void Terminate_w(); 161 void Terminate_w();
164 bool SetCryptoOptions_w(const rtc::CryptoOptions& crypto_options); 162 bool SetCryptoOptions_w(const rtc::CryptoOptions& crypto_options);
165 VoiceChannel* CreateVoiceChannel_w( 163 VoiceChannel* CreateVoiceChannel_w(
166 webrtc::MediaControllerInterface* media_controller, 164 webrtc::MediaControllerInterface* media_controller,
167 TransportController* transport_controller, 165 TransportController* transport_controller,
168 const std::string& content_name, 166 const std::string& content_name,
169 const std::string* bundle_transport_name, 167 const std::string* bundle_transport_name,
170 bool rtcp, 168 bool rtcp,
169 bool srtp_required,
171 const AudioOptions& options); 170 const AudioOptions& options);
172 void DestroyVoiceChannel_w(VoiceChannel* voice_channel); 171 void DestroyVoiceChannel_w(VoiceChannel* voice_channel);
173 VideoChannel* CreateVideoChannel_w( 172 VideoChannel* CreateVideoChannel_w(
174 webrtc::MediaControllerInterface* media_controller, 173 webrtc::MediaControllerInterface* media_controller,
175 TransportController* transport_controller, 174 TransportController* transport_controller,
176 const std::string& content_name, 175 const std::string& content_name,
177 const std::string* bundle_transport_name, 176 const std::string* bundle_transport_name,
178 bool rtcp, 177 bool rtcp,
178 bool srtp_required,
179 const VideoOptions& options); 179 const VideoOptions& options);
180 void DestroyVideoChannel_w(VideoChannel* video_channel); 180 void DestroyVideoChannel_w(VideoChannel* video_channel);
181 DataChannel* CreateDataChannel_w( 181 DataChannel* CreateDataChannel_w(
182 webrtc::MediaControllerInterface* media_controller,
182 TransportController* transport_controller, 183 TransportController* transport_controller,
183 const std::string& content_name, 184 const std::string& content_name,
184 const std::string* bundle_transport_name, 185 const std::string* bundle_transport_name,
185 bool rtcp, 186 bool rtcp,
186 DataChannelType data_channel_type, 187 bool srtp_required,
187 webrtc::MediaControllerInterface* media_controller); 188 DataChannelType data_channel_type);
188 void DestroyDataChannel_w(DataChannel* data_channel); 189 void DestroyDataChannel_w(DataChannel* data_channel);
189 190
190 std::unique_ptr<MediaEngineInterface> media_engine_; 191 std::unique_ptr<MediaEngineInterface> media_engine_;
191 std::unique_ptr<DataEngineInterface> data_media_engine_; 192 std::unique_ptr<DataEngineInterface> data_media_engine_;
192 bool initialized_; 193 bool initialized_;
193 rtc::Thread* main_thread_; 194 rtc::Thread* main_thread_;
194 rtc::Thread* worker_thread_; 195 rtc::Thread* worker_thread_;
195 rtc::Thread* network_thread_; 196 rtc::Thread* network_thread_;
196 197
197 VoiceChannels voice_channels_; 198 VoiceChannels voice_channels_;
198 VideoChannels video_channels_; 199 VideoChannels video_channels_;
199 DataChannels data_channels_; 200 DataChannels data_channels_;
200 201
201 bool enable_rtx_; 202 bool enable_rtx_;
202 rtc::CryptoOptions crypto_options_; 203 rtc::CryptoOptions crypto_options_;
203 204
204 bool capturing_; 205 bool capturing_;
205 }; 206 };
206 207
207 } // namespace cricket 208 } // namespace cricket
208 209
209 #endif // WEBRTC_PC_CHANNELMANAGER_H_ 210 #endif // WEBRTC_PC_CHANNELMANAGER_H_
OLDNEW
« no previous file with comments | « webrtc/pc/channel_unittest.cc ('k') | webrtc/pc/channelmanager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698