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

Unified Diff: webrtc/api/webrtcsession.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 side-by-side diff with in-line comments
Download patch
Index: webrtc/api/webrtcsession.h
diff --git a/webrtc/api/webrtcsession.h b/webrtc/api/webrtcsession.h
index 76af6c7c3d2669830665c77731d3dfd0e661651d..d9f2e83b9e1cef47c6872bdb9e803fef3fefba5b 100644
--- a/webrtc/api/webrtcsession.h
+++ b/webrtc/api/webrtcsession.h
@@ -39,6 +39,10 @@ class StatsReport;
class VideoChannel;
class VoiceChannel;
+#ifdef HAVE_QUIC
+class QuicTransportChannel;
+#endif // HAVE_QUIC
+
} // namespace cricket
namespace webrtc {
@@ -145,6 +149,7 @@ class WebRtcSession : public AudioProviderInterface,
virtual ~WebRtcSession();
// These are const to allow them to be called from const methods.
+ rtc::Thread* network_thread() const { return network_thread_; }
rtc::Thread* worker_thread() const { return worker_thread_; }
rtc::Thread* signaling_thread() const { return signaling_thread_; }
@@ -337,6 +342,10 @@ class WebRtcSession : public AudioProviderInterface,
// std::string represents the data channel label.
sigslot::signal2<const std::string&, const InternalDataChannelInit&>
SignalDataChannelOpenMessage;
+#ifdef HAVE_QUIC
+ sigslot::signal1<cricket::QuicTransportChannel*>
+ SignalQuicTransportChannelCreated;
+#endif // HAVE_QUIC
private:
// Indicates the type of SessionDescription in a call to SetLocalDescription
@@ -481,6 +490,7 @@ class WebRtcSession : public AudioProviderInterface,
void OnSentPacket_w(const rtc::SentPacket& sent_packet);
+ rtc::Thread* const network_thread_;
rtc::Thread* const worker_thread_;
rtc::Thread* const signaling_thread_;
@@ -532,6 +542,10 @@ class WebRtcSession : public AudioProviderInterface,
bool received_first_video_packet_ = false;
bool received_first_audio_packet_ = false;
+#ifdef HAVE_QUIC
+ cricket::QuicTransportChannel* quic_transport_channel_ = nullptr;
+#endif // HAVE_QUIC
+
RTC_DISALLOW_COPY_AND_ASSIGN(WebRtcSession);
};
} // namespace webrtc

Powered by Google App Engine
This is Rietveld 408576698