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

Side by Side Diff: webrtc/p2p/base/transportcontroller.h

Issue 1856943002: Allow TransportController to create a QuicTransportChannel (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Fix dtlstransport.h Created 4 years, 8 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 * Copyright 2015 The WebRTC Project Authors. All rights reserved. 2 * Copyright 2015 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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 // count and returns an existing channel. 83 // count and returns an existing channel.
84 virtual TransportChannel* CreateTransportChannel_w( 84 virtual TransportChannel* CreateTransportChannel_w(
85 const std::string& transport_name, 85 const std::string& transport_name,
86 int component); 86 int component);
87 87
88 // Decrements a channel's reference count, and destroys the channel if 88 // Decrements a channel's reference count, and destroys the channel if
89 // nothing is referencing it. 89 // nothing is referencing it.
90 virtual void DestroyTransportChannel_w(const std::string& transport_name, 90 virtual void DestroyTransportChannel_w(const std::string& transport_name,
91 int component); 91 int component);
92 92
93 void set_quic() { quic_ = true; }
94 bool quic() const { return quic_; }
95
93 // All of these signals are fired on the signalling thread. 96 // All of these signals are fired on the signalling thread.
94 97
95 // If any transport failed => failed, 98 // If any transport failed => failed,
96 // Else if all completed => completed, 99 // Else if all completed => completed,
97 // Else if all connected => connected, 100 // Else if all connected => connected,
98 // Else => connecting 101 // Else => connecting
99 sigslot::signal1<IceConnectionState> SignalConnectionState; 102 sigslot::signal1<IceConnectionState> SignalConnectionState;
100 103
101 // Receiving if any transport is receiving 104 // Receiving if any transport is receiving
102 sigslot::signal1<bool> SignalReceiving; 105 sigslot::signal1<bool> SignalReceiving;
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 IceGatheringState gathering_state_ = kIceGatheringNew; 217 IceGatheringState gathering_state_ = kIceGatheringNew;
215 218
216 // TODO(deadbeef): Move the fields below down to the transports themselves 219 // TODO(deadbeef): Move the fields below down to the transports themselves
217 IceConfig ice_config_; 220 IceConfig ice_config_;
218 IceRole ice_role_ = ICEROLE_CONTROLLING; 221 IceRole ice_role_ = ICEROLE_CONTROLLING;
219 // Flag which will be set to true after the first role switch 222 // Flag which will be set to true after the first role switch
220 bool ice_role_switch_ = false; 223 bool ice_role_switch_ = false;
221 uint64_t ice_tiebreaker_ = rtc::CreateRandomId64(); 224 uint64_t ice_tiebreaker_ = rtc::CreateRandomId64();
222 rtc::scoped_refptr<rtc::RTCCertificate> certificate_; 225 rtc::scoped_refptr<rtc::RTCCertificate> certificate_;
223 rtc::AsyncInvoker invoker_; 226 rtc::AsyncInvoker invoker_;
227 // True if QUIC is used instead of DTLS.
228 bool quic_ = false;
224 }; 229 };
225 230
226 } // namespace cricket 231 } // namespace cricket
227 232
228 #endif // WEBRTC_P2P_BASE_TRANSPORTCONTROLLER_H_ 233 #endif // WEBRTC_P2P_BASE_TRANSPORTCONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698