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

Side by Side Diff: talk/app/webrtc/webrtcsession.h

Issue 1363573002: Wire up transport sequence number / send time callbacks to webrtc via libjingle. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Connect to SignalSentPacket when enabling bundle. Created 5 years, 2 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
OLDNEW
1 /* 1 /*
2 * libjingle 2 * libjingle
3 * Copyright 2012 Google Inc. 3 * Copyright 2012 Google Inc.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are met: 6 * modification, are permitted provided that the following conditions are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright notice, 8 * 1. Redistributions of source code must retain the above copyright notice,
9 * this list of conditions and the following disclaimer. 9 * this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright notice, 10 * 2. Redistributions in binary form must reproduce the above copyright notice,
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 public AudioProviderInterface, 116 public AudioProviderInterface,
117 public DataChannelFactory, 117 public DataChannelFactory,
118 public VideoProviderInterface, 118 public VideoProviderInterface,
119 public DtmfProviderInterface, 119 public DtmfProviderInterface,
120 public DataChannelProviderInterface { 120 public DataChannelProviderInterface {
121 public: 121 public:
122 WebRtcSession(cricket::ChannelManager* channel_manager, 122 WebRtcSession(cricket::ChannelManager* channel_manager,
123 rtc::Thread* signaling_thread, 123 rtc::Thread* signaling_thread,
124 rtc::Thread* worker_thread, 124 rtc::Thread* worker_thread,
125 cricket::PortAllocator* port_allocator, 125 cricket::PortAllocator* port_allocator,
126 MediaStreamSignaling* mediastream_signaling); 126 MediaStreamSignaling* mediastream_signaling,
127 webrtc::CallFactory* call_factory);
127 virtual ~WebRtcSession(); 128 virtual ~WebRtcSession();
128 129
129 bool Initialize( 130 bool Initialize(
130 const PeerConnectionFactoryInterface::Options& options, 131 const PeerConnectionFactoryInterface::Options& options,
131 const MediaConstraintsInterface* constraints, 132 const MediaConstraintsInterface* constraints,
132 rtc::scoped_ptr<DtlsIdentityStoreInterface> dtls_identity_store, 133 rtc::scoped_ptr<DtlsIdentityStoreInterface> dtls_identity_store,
133 const PeerConnectionInterface::RTCConfiguration& rtc_configuration); 134 const PeerConnectionInterface::RTCConfiguration& rtc_configuration);
134 // Deletes the voice, video and data channel and changes the session state 135 // Deletes the voice, video and data channel and changes the session state
135 // to STATE_RECEIVEDTERMINATE. 136 // to STATE_RECEIVEDTERMINATE.
136 void Terminate(); 137 void Terminate();
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
376 377
377 // Invoked when TransportController connection completion is signaled. 378 // Invoked when TransportController connection completion is signaled.
378 // Reports stats for all transports in use. 379 // Reports stats for all transports in use.
379 void ReportTransportStats(); 380 void ReportTransportStats();
380 381
381 // Gather the usage of IPv4/IPv6 as best connection. 382 // Gather the usage of IPv4/IPv6 as best connection.
382 void ReportBestConnectionState(const cricket::TransportStats& stats); 383 void ReportBestConnectionState(const cricket::TransportStats& stats);
383 384
384 void ReportNegotiatedCiphers(const cricket::TransportStats& stats); 385 void ReportNegotiatedCiphers(const cricket::TransportStats& stats);
385 386
387 void OnSentPacket(cricket::TransportChannel* channel,
388 const rtc::SentPacket& sent_packet);
389
386 rtc::scoped_ptr<MediaControllerInterface> media_controller_; 390 rtc::scoped_ptr<MediaControllerInterface> media_controller_;
387 rtc::scoped_ptr<cricket::VoiceChannel> voice_channel_; 391 rtc::scoped_ptr<cricket::VoiceChannel> voice_channel_;
388 rtc::scoped_ptr<cricket::VideoChannel> video_channel_; 392 rtc::scoped_ptr<cricket::VideoChannel> video_channel_;
389 rtc::scoped_ptr<cricket::DataChannel> data_channel_; 393 rtc::scoped_ptr<cricket::DataChannel> data_channel_;
390 cricket::ChannelManager* channel_manager_; 394 cricket::ChannelManager* channel_manager_;
391 MediaStreamSignaling* mediastream_signaling_; 395 MediaStreamSignaling* mediastream_signaling_;
396 webrtc::CallFactory* call_factory_;
392 IceObserver* ice_observer_; 397 IceObserver* ice_observer_;
393 PeerConnectionInterface::IceConnectionState ice_connection_state_; 398 PeerConnectionInterface::IceConnectionState ice_connection_state_;
394 bool ice_connection_receiving_; 399 bool ice_connection_receiving_;
395 rtc::scoped_ptr<SessionDescriptionInterface> local_desc_; 400 rtc::scoped_ptr<SessionDescriptionInterface> local_desc_;
396 rtc::scoped_ptr<SessionDescriptionInterface> remote_desc_; 401 rtc::scoped_ptr<SessionDescriptionInterface> remote_desc_;
397 // Candidates that arrived before the remote description was set. 402 // Candidates that arrived before the remote description was set.
398 std::vector<IceCandidateInterface*> saved_candidates_; 403 std::vector<IceCandidateInterface*> saved_candidates_;
399 // If the remote peer is using a older version of implementation. 404 // If the remote peer is using a older version of implementation.
400 bool older_version_remote_peer_; 405 bool older_version_remote_peer_;
401 bool dtls_enabled_; 406 bool dtls_enabled_;
(...skipping 23 matching lines...) Expand all
425 PeerConnectionInterface::BundlePolicy bundle_policy_; 430 PeerConnectionInterface::BundlePolicy bundle_policy_;
426 431
427 // Declares the RTCP mux policy for the WebRTCSession. 432 // Declares the RTCP mux policy for the WebRTCSession.
428 PeerConnectionInterface::RtcpMuxPolicy rtcp_mux_policy_; 433 PeerConnectionInterface::RtcpMuxPolicy rtcp_mux_policy_;
429 434
430 RTC_DISALLOW_COPY_AND_ASSIGN(WebRtcSession); 435 RTC_DISALLOW_COPY_AND_ASSIGN(WebRtcSession);
431 }; 436 };
432 } // namespace webrtc 437 } // namespace webrtc
433 438
434 #endif // TALK_APP_WEBRTC_WEBRTCSESSION_H_ 439 #endif // TALK_APP_WEBRTC_WEBRTCSESSION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698