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

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: Sync to upstream Created 4 years, 7 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 | « webrtc/p2p/base/transport_unittest.cc ('k') | webrtc/p2p/base/transportcontroller.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 // count and returns an existing channel. 84 // count and returns an existing channel.
85 virtual TransportChannel* CreateTransportChannel_w( 85 virtual TransportChannel* CreateTransportChannel_w(
86 const std::string& transport_name, 86 const std::string& transport_name,
87 int component); 87 int component);
88 88
89 // Decrements a channel's reference count, and destroys the channel if 89 // Decrements a channel's reference count, and destroys the channel if
90 // nothing is referencing it. 90 // nothing is referencing it.
91 virtual void DestroyTransportChannel_w(const std::string& transport_name, 91 virtual void DestroyTransportChannel_w(const std::string& transport_name,
92 int component); 92 int component);
93 93
94 void use_quic() { quic_ = true; }
95 bool quic() const { return quic_; }
96
94 // All of these signals are fired on the signalling thread. 97 // All of these signals are fired on the signalling thread.
95 98
96 // If any transport failed => failed, 99 // If any transport failed => failed,
97 // Else if all completed => completed, 100 // Else if all completed => completed,
98 // Else if all connected => connected, 101 // Else if all connected => connected,
99 // Else => connecting 102 // Else => connecting
100 sigslot::signal1<IceConnectionState> SignalConnectionState; 103 sigslot::signal1<IceConnectionState> SignalConnectionState;
101 104
102 // Receiving if any transport is receiving 105 // Receiving if any transport is receiving
103 sigslot::signal1<bool> SignalReceiving; 106 sigslot::signal1<bool> SignalReceiving;
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 IceGatheringState gathering_state_ = kIceGatheringNew; 218 IceGatheringState gathering_state_ = kIceGatheringNew;
216 219
217 // TODO(deadbeef): Move the fields below down to the transports themselves 220 // TODO(deadbeef): Move the fields below down to the transports themselves
218 IceConfig ice_config_; 221 IceConfig ice_config_;
219 IceRole ice_role_ = ICEROLE_CONTROLLING; 222 IceRole ice_role_ = ICEROLE_CONTROLLING;
220 // Flag which will be set to true after the first role switch 223 // Flag which will be set to true after the first role switch
221 bool ice_role_switch_ = false; 224 bool ice_role_switch_ = false;
222 uint64_t ice_tiebreaker_ = rtc::CreateRandomId64(); 225 uint64_t ice_tiebreaker_ = rtc::CreateRandomId64();
223 rtc::scoped_refptr<rtc::RTCCertificate> certificate_; 226 rtc::scoped_refptr<rtc::RTCCertificate> certificate_;
224 rtc::AsyncInvoker invoker_; 227 rtc::AsyncInvoker invoker_;
228 // True if QUIC is used instead of DTLS.
229 bool quic_ = false;
225 }; 230 };
226 231
227 } // namespace cricket 232 } // namespace cricket
228 233
229 #endif // WEBRTC_P2P_BASE_TRANSPORTCONTROLLER_H_ 234 #endif // WEBRTC_P2P_BASE_TRANSPORTCONTROLLER_H_
OLDNEW
« no previous file with comments | « webrtc/p2p/base/transport_unittest.cc ('k') | webrtc/p2p/base/transportcontroller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698