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

Unified Diff: webrtc/p2p/base/transportcontroller.h

Issue 1844803002: Modify PeerConnection for end-to-end QuicDataChannel usage (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 9 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/p2p/base/transportcontroller.h
diff --git a/webrtc/p2p/base/transportcontroller.h b/webrtc/p2p/base/transportcontroller.h
index ed7216033b429d91625fd16a3c86d3a55cf9722f..bb47656f5063e220a84cc0c24f374e943bd92aeb 100644
--- a/webrtc/p2p/base/transportcontroller.h
+++ b/webrtc/p2p/base/transportcontroller.h
@@ -27,6 +27,9 @@ class Thread;
namespace cricket {
+class P2PTransportChannel;
+class QuicTransportChannel;
+
class TransportController : public sigslot::has_slots<>,
public rtc::MessageHandler {
public:
@@ -89,6 +92,11 @@ class TransportController : public sigslot::has_slots<>,
// nothing is referencing it.
virtual void DestroyTransportChannel_w(const std::string& transport_name,
int component);
+ // Activates QUIC usage instead of DTLS if |use_quic| is true and the USE_QUIC
+ // macro is defined.
pthatcher1 2016/03/30 20:34:50 Just say "if USE_QUIC is defined"
mikescarlett 2016/04/05 19:58:53 I made this simpler by putting it behind HAVE_QUIC
+ void set_quic(bool use_quic);
+ bool quic() const { return quic_; }
+ QuicTransportChannel* quic_transport_channel() const;
pthatcher1 2016/03/30 20:34:50 Doesn't this need to be behind USE_QUIC?
mikescarlett 2016/04/05 19:58:53 Yes. Done. (Also removed quic_transport_channel()
// All of these signals are fired on the signalling thread.
@@ -221,6 +229,15 @@ class TransportController : public sigslot::has_slots<>,
uint64_t ice_tiebreaker_ = rtc::CreateRandomId64();
rtc::scoped_refptr<rtc::RTCCertificate> certificate_;
rtc::AsyncInvoker invoker_;
+
+ // True if QUIC is used instead of DTLS.
+ bool quic_ = false;
+#ifdef USE_QUIC
+ rtc::scoped_ptr<P2PTransportChannel> ice_transport_channel_;
+ // Owned by TransportController. This is not a scoped_ptr because its pointer
+ // is added to |transports_|.
+ QuicTransportChannel* quic_transport_channel_ = nullptr;
+#endif // USE_QUIC
};
} // namespace cricket

Powered by Google App Engine
This is Rietveld 408576698