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

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

Issue 1671173002: Track pending ICE restarts independently for different media sections. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Merging with master. Created 4 years, 10 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 | webrtc/api/peerconnection.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 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 12 matching lines...) Expand all
23 #include "webrtc/api/webrtcsession.h" 23 #include "webrtc/api/webrtcsession.h"
24 #include "webrtc/base/scoped_ptr.h" 24 #include "webrtc/base/scoped_ptr.h"
25 25
26 namespace webrtc { 26 namespace webrtc {
27 27
28 class MediaStreamObserver; 28 class MediaStreamObserver;
29 class RemoteMediaStreamFactory; 29 class RemoteMediaStreamFactory;
30 30
31 // Populates |session_options| from |rtc_options|, and returns true if options 31 // Populates |session_options| from |rtc_options|, and returns true if options
32 // are valid. 32 // are valid.
33 // |session_options|->transport_options map entries must exist in order for
34 // them to be populated from |rtc_options|.
33 bool ConvertRtcOptionsForOffer( 35 bool ConvertRtcOptionsForOffer(
34 const PeerConnectionInterface::RTCOfferAnswerOptions& rtc_options, 36 const PeerConnectionInterface::RTCOfferAnswerOptions& rtc_options,
35 cricket::MediaSessionOptions* session_options); 37 cricket::MediaSessionOptions* session_options);
36 38
37 // Populates |session_options| from |constraints|, and returns true if all 39 // Populates |session_options| from |constraints|, and returns true if all
38 // mandatory constraints are satisfied. 40 // mandatory constraints are satisfied.
41 // Assumes that |session_options|->transport_options map entries exist.
39 bool ParseConstraintsForAnswer(const MediaConstraintsInterface* constraints, 42 bool ParseConstraintsForAnswer(const MediaConstraintsInterface* constraints,
40 cricket::MediaSessionOptions* session_options); 43 cricket::MediaSessionOptions* session_options);
41 44
42 // Parses the URLs for each server in |servers| to build |stun_servers| and 45 // Parses the URLs for each server in |servers| to build |stun_servers| and
43 // |turn_servers|. 46 // |turn_servers|.
44 bool ParseIceServers(const PeerConnectionInterface::IceServers& servers, 47 bool ParseIceServers(const PeerConnectionInterface::IceServers& servers,
45 cricket::ServerAddresses* stun_servers, 48 cricket::ServerAddresses* stun_servers,
46 std::vector<cricket::RelayServerConfig>* turn_servers); 49 std::vector<cricket::RelayServerConfig>* turn_servers);
47 50
48 // PeerConnection implements the PeerConnectionInterface interface. 51 // PeerConnection implements the PeerConnectionInterface interface.
(...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after
373 // because its destruction fires signals (such as VoiceChannelDestroyed) 376 // because its destruction fires signals (such as VoiceChannelDestroyed)
374 // which will trigger some final actions in PeerConnection... 377 // which will trigger some final actions in PeerConnection...
375 rtc::scoped_ptr<WebRtcSession> session_; 378 rtc::scoped_ptr<WebRtcSession> session_;
376 // ... But stats_ depends on session_ so it should be destroyed even earlier. 379 // ... But stats_ depends on session_ so it should be destroyed even earlier.
377 rtc::scoped_ptr<StatsCollector> stats_; 380 rtc::scoped_ptr<StatsCollector> stats_;
378 }; 381 };
379 382
380 } // namespace webrtc 383 } // namespace webrtc
381 384
382 #endif // WEBRTC_API_PEERCONNECTION_H_ 385 #endif // WEBRTC_API_PEERCONNECTION_H_
OLDNEW
« no previous file with comments | « no previous file | webrtc/api/peerconnection.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698