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

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

Issue 2089553002: Refactoring on QUIC (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Disable quic for review. Created 4 years, 6 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') | webrtc/api/peerconnection_unittest.cc » ('J')
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
11 #ifndef WEBRTC_API_PEERCONNECTION_H_ 11 #ifndef WEBRTC_API_PEERCONNECTION_H_
12 #define WEBRTC_API_PEERCONNECTION_H_ 12 #define WEBRTC_API_PEERCONNECTION_H_
13 13
14 #include <string> 14 #include <string>
15 #include <map> 15 #include <map>
16 #include <memory> 16 #include <memory>
17 #include <vector> 17 #include <vector>
18 18
19 #include "webrtc/api/peerconnectionfactory.h" 19 #include "webrtc/api/peerconnectionfactory.h"
20 #include "webrtc/api/peerconnectioninterface.h" 20 #include "webrtc/api/peerconnectioninterface.h"
21 #include "webrtc/api/rtpreceiver.h" 21 #include "webrtc/api/rtpreceiver.h"
22 #include "webrtc/api/rtpsender.h" 22 #include "webrtc/api/rtpsender.h"
23 #include "webrtc/api/statscollector.h" 23 #include "webrtc/api/statscollector.h"
24 #include "webrtc/api/streamcollection.h" 24 #include "webrtc/api/streamcollection.h"
25 #include "webrtc/api/webrtcsession.h" 25 #include "webrtc/api/webrtcsession.h"
26 26
27 #ifdef HAVE_QUIC
28 #include "webrtc/api/quicdatatransport.h"
29 #endif // HAVE_QUIC
30
27 namespace webrtc { 31 namespace webrtc {
28 32
29 class MediaStreamObserver; 33 class MediaStreamObserver;
30 class VideoRtpReceiver; 34 class VideoRtpReceiver;
31 35
32 // Populates |session_options| from |rtc_options|, and returns true if options 36 // Populates |session_options| from |rtc_options|, and returns true if options
33 // are valid. 37 // are valid.
34 // |session_options|->transport_options map entries must exist in order for 38 // |session_options|->transport_options map entries must exist in order for
35 // them to be populated from |rtc_options|. 39 // them to be populated from |rtc_options|.
36 bool ExtractMediaSessionOptions( 40 bool ExtractMediaSessionOptions(
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after
326 330
327 // Notifications from WebRtcSession relating to BaseChannels. 331 // Notifications from WebRtcSession relating to BaseChannels.
328 void OnVoiceChannelDestroyed(); 332 void OnVoiceChannelDestroyed();
329 void OnVideoChannelDestroyed(); 333 void OnVideoChannelDestroyed();
330 void OnDataChannelCreated(); 334 void OnDataChannelCreated();
331 void OnDataChannelDestroyed(); 335 void OnDataChannelDestroyed();
332 // Called when the cricket::DataChannel receives a message indicating that a 336 // Called when the cricket::DataChannel receives a message indicating that a
333 // webrtc::DataChannel should be opened. 337 // webrtc::DataChannel should be opened.
334 void OnDataChannelOpenMessage(const std::string& label, 338 void OnDataChannelOpenMessage(const std::string& label,
335 const InternalDataChannelInit& config); 339 const InternalDataChannelInit& config);
340 #ifdef HAVE_QUIC
341 void OnQuicTransportChannelCreated(cricket::QuicTransportChannel* channel);
342 #endif // HAVE_QUIC
336 343
337 RtpSenderInternal* FindSenderById(const std::string& id); 344 RtpSenderInternal* FindSenderById(const std::string& id);
338 345
339 std::vector<rtc::scoped_refptr< 346 std::vector<rtc::scoped_refptr<
340 RtpSenderProxyWithInternal<RtpSenderInternal>>>::iterator 347 RtpSenderProxyWithInternal<RtpSenderInternal>>>::iterator
341 FindSenderForTrack(MediaStreamTrackInterface* track); 348 FindSenderForTrack(MediaStreamTrackInterface* track);
342 std::vector<rtc::scoped_refptr< 349 std::vector<rtc::scoped_refptr<
343 RtpReceiverProxyWithInternal<RtpReceiverInternal>>>::iterator 350 RtpReceiverProxyWithInternal<RtpReceiverInternal>>>::iterator
344 FindReceiverForTrack(const std::string& track_id); 351 FindReceiverForTrack(const std::string& track_id);
345 352
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
392 TrackInfos remote_audio_tracks_; 399 TrackInfos remote_audio_tracks_;
393 TrackInfos remote_video_tracks_; 400 TrackInfos remote_video_tracks_;
394 TrackInfos local_audio_tracks_; 401 TrackInfos local_audio_tracks_;
395 TrackInfos local_video_tracks_; 402 TrackInfos local_video_tracks_;
396 403
397 SctpSidAllocator sid_allocator_; 404 SctpSidAllocator sid_allocator_;
398 // label -> DataChannel 405 // label -> DataChannel
399 std::map<std::string, rtc::scoped_refptr<DataChannel>> rtp_data_channels_; 406 std::map<std::string, rtc::scoped_refptr<DataChannel>> rtp_data_channels_;
400 std::vector<rtc::scoped_refptr<DataChannel>> sctp_data_channels_; 407 std::vector<rtc::scoped_refptr<DataChannel>> sctp_data_channels_;
401 std::vector<rtc::scoped_refptr<DataChannel>> sctp_data_channels_to_free_; 408 std::vector<rtc::scoped_refptr<DataChannel>> sctp_data_channels_to_free_;
409 #ifdef HAVE_QUIC
410 std::unique_ptr<QuicDataTransport> quic_data_transport_;
411 #endif // HAVE_QUIC
402 412
403 bool remote_peer_supports_msid_ = false; 413 bool remote_peer_supports_msid_ = false;
404 414
405 std::vector<rtc::scoped_refptr<RtpSenderProxyWithInternal<RtpSenderInternal>>> 415 std::vector<rtc::scoped_refptr<RtpSenderProxyWithInternal<RtpSenderInternal>>>
406 senders_; 416 senders_;
407 std::vector< 417 std::vector<
408 rtc::scoped_refptr<RtpReceiverProxyWithInternal<RtpReceiverInternal>>> 418 rtc::scoped_refptr<RtpReceiverProxyWithInternal<RtpReceiverInternal>>>
409 receivers_; 419 receivers_;
410 420
411 std::unique_ptr<WebRtcSession> session_; 421 std::unique_ptr<WebRtcSession> session_;
412 std::unique_ptr<StatsCollector> stats_; 422 std::unique_ptr<StatsCollector> stats_;
413 }; 423 };
414 424
415 } // namespace webrtc 425 } // namespace webrtc
416 426
417 #endif // WEBRTC_API_PEERCONNECTION_H_ 427 #endif // WEBRTC_API_PEERCONNECTION_H_
OLDNEW
« no previous file with comments | « no previous file | webrtc/api/peerconnection.cc » ('j') | webrtc/api/peerconnection_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698