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

Side by Side Diff: webrtc/api/peerconnectioninterface.h

Issue 1836083003: Add RTCConfiguration getter and setter methods. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 8 months 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 | « no previous file | no next file » | 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 2012 The WebRTC project authors. All Rights Reserved. 2 * Copyright 2012 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 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 kTcpCandidatePolicyDisabled 216 kTcpCandidatePolicyDisabled
217 }; 217 };
218 218
219 enum ContinualGatheringPolicy { 219 enum ContinualGatheringPolicy {
220 GATHER_ONCE, 220 GATHER_ONCE,
221 GATHER_CONTINUALLY 221 GATHER_CONTINUALLY
222 }; 222 };
223 223
224 // TODO(hbos): Change into class with private data and public getters. 224 // TODO(hbos): Change into class with private data and public getters.
225 struct RTCConfiguration { 225 struct RTCConfiguration {
226 // Getter and setter methods for the flags which are used by
227 // applications, chrome in particular.
228 bool get_enable_dscp() { return enable_dscp.value_or(false); }
229 void set_enable_dscp(bool flag) { enable_dscp = rtc::Optional<bool>(flag); }
230
231 bool get_enable_cpu_overuse_detection() {
232 return cpu_overuse_detection.value_or(true);
perkj_webrtc 2016/03/29 15:25:11 Use in this cl? ie- Stop using the to be private s
nisse-webrtc 2016/03/30 08:50:24 (Some important words seem to be missing). My inte
233 }
234 void set_enable_cpu_overuse_detection(bool flag) {
235 cpu_overuse_detection = rtc::Optional<bool>(flag);
236 }
237
238 bool get_enable_suspend_below_min_bitrate() {
239 return suspend_below_min_bitrate.value_or(false);
perkj_webrtc 2016/03/29 15:25:12 dito
240 }
241 void set_enable_suspend_below_min_bitrate(bool flag) {
242 suspend_below_min_bitrate = rtc::Optional<bool>(flag);
243 }
244
245 bool get_enable_prerenderer_smoothing(bool flag) {
perkj_webrtc 2016/03/29 15:25:11 |flag| is unused
246 return !disable_prerenderer_smoothing;
247 }
248 void set_enable_prerenderer_smoothing(bool flag) {
249 disable_prerenderer_smoothing = !flag;
250 }
251
226 static const int kUndefined = -1; 252 static const int kUndefined = -1;
227 // Default maximum number of packets in the audio jitter buffer. 253 // Default maximum number of packets in the audio jitter buffer.
228 static const int kAudioJitterBufferMaxPackets = 50; 254 static const int kAudioJitterBufferMaxPackets = 50;
229 // TODO(pthatcher): Rename this ice_transport_type, but update 255 // TODO(pthatcher): Rename this ice_transport_type, but update
230 // Chromium at the same time. 256 // Chromium at the same time.
231 IceTransportsType type; 257 IceTransportsType type;
232 // TODO(pthatcher): Rename this ice_servers, but update Chromium 258 // TODO(pthatcher): Rename this ice_servers, but update Chromium
233 // at the same time. 259 // at the same time.
234 IceServers servers; 260 IceServers servers;
235 BundlePolicy bundle_policy; 261 BundlePolicy bundle_policy;
(...skipping 421 matching lines...) Expand 10 before | Expand all | Expand 10 after
657 CreatePeerConnectionFactory( 683 CreatePeerConnectionFactory(
658 rtc::Thread* worker_thread, 684 rtc::Thread* worker_thread,
659 rtc::Thread* signaling_thread, 685 rtc::Thread* signaling_thread,
660 AudioDeviceModule* default_adm, 686 AudioDeviceModule* default_adm,
661 cricket::WebRtcVideoEncoderFactory* encoder_factory, 687 cricket::WebRtcVideoEncoderFactory* encoder_factory,
662 cricket::WebRtcVideoDecoderFactory* decoder_factory); 688 cricket::WebRtcVideoDecoderFactory* decoder_factory);
663 689
664 } // namespace webrtc 690 } // namespace webrtc
665 691
666 #endif // WEBRTC_API_PEERCONNECTIONINTERFACE_H_ 692 #endif // WEBRTC_API_PEERCONNECTIONINTERFACE_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698