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

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

Issue 1369773003: Add a continual_gathering_policy in PeerConnection RTCConfiguration (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Rebase to master 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
« no previous file with comments | « webrtc/p2p/base/transportchannelimpl.h ('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 27 matching lines...) Expand all
38 rtc::Thread* signaling_thread() const { return signaling_thread_; } 38 rtc::Thread* signaling_thread() const { return signaling_thread_; }
39 rtc::Thread* worker_thread() const { return worker_thread_; } 39 rtc::Thread* worker_thread() const { return worker_thread_; }
40 40
41 PortAllocator* port_allocator() const { return port_allocator_; } 41 PortAllocator* port_allocator() const { return port_allocator_; }
42 42
43 // Can only be set before transports are created. 43 // Can only be set before transports are created.
44 // TODO(deadbeef): Make this an argument to the constructor once BaseSession 44 // TODO(deadbeef): Make this an argument to the constructor once BaseSession
45 // and WebRtcSession are combined 45 // and WebRtcSession are combined
46 bool SetSslMaxProtocolVersion(rtc::SSLProtocolVersion version); 46 bool SetSslMaxProtocolVersion(rtc::SSLProtocolVersion version);
47 47
48 void SetIceConnectionReceivingTimeout(int timeout_ms); 48 void SetIceConfig(const IceConfig& config);
49 void SetIceRole(IceRole ice_role); 49 void SetIceRole(IceRole ice_role);
50 50
51 // TODO(deadbeef) - Return role of each transport, as role may differ from 51 // TODO(deadbeef) - Return role of each transport, as role may differ from
52 // one another. 52 // one another.
53 // In current implementaion we just return the role of the first transport 53 // In current implementaion we just return the role of the first transport
54 // alphabetically. 54 // alphabetically.
55 bool GetSslRole(rtc::SSLRole* role); 55 bool GetSslRole(rtc::SSLRole* role);
56 56
57 // Specifies the identity to use in this session. 57 // Specifies the identity to use in this session.
58 // Can only be called once. 58 // Can only be called once.
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 Transport* GetTransport_w(const std::string& transport_name); 119 Transport* GetTransport_w(const std::string& transport_name);
120 120
121 private: 121 private:
122 void OnMessage(rtc::Message* pmsg) override; 122 void OnMessage(rtc::Message* pmsg) override;
123 123
124 Transport* GetOrCreateTransport_w(const std::string& transport_name); 124 Transport* GetOrCreateTransport_w(const std::string& transport_name);
125 void DestroyTransport_w(const std::string& transport_name); 125 void DestroyTransport_w(const std::string& transport_name);
126 void DestroyAllTransports_w(); 126 void DestroyAllTransports_w();
127 127
128 bool SetSslMaxProtocolVersion_w(rtc::SSLProtocolVersion version); 128 bool SetSslMaxProtocolVersion_w(rtc::SSLProtocolVersion version);
129 void SetIceConnectionReceivingTimeout_w(int timeout_ms); 129 void SetIceConfig_w(const IceConfig& config);
130 void SetIceRole_w(IceRole ice_role); 130 void SetIceRole_w(IceRole ice_role);
131 bool GetSslRole_w(rtc::SSLRole* role); 131 bool GetSslRole_w(rtc::SSLRole* role);
132 bool SetLocalCertificate_w( 132 bool SetLocalCertificate_w(
133 const rtc::scoped_refptr<rtc::RTCCertificate>& certificate); 133 const rtc::scoped_refptr<rtc::RTCCertificate>& certificate);
134 bool GetLocalCertificate_w( 134 bool GetLocalCertificate_w(
135 const std::string& transport_name, 135 const std::string& transport_name,
136 rtc::scoped_refptr<rtc::RTCCertificate>* certificate); 136 rtc::scoped_refptr<rtc::RTCCertificate>* certificate);
137 bool GetRemoteSSLCertificate_w(const std::string& transport_name, 137 bool GetRemoteSSLCertificate_w(const std::string& transport_name,
138 rtc::SSLCertificate** cert); 138 rtc::SSLCertificate** cert);
139 bool SetLocalTransportDescription_w(const std::string& transport_name, 139 bool SetLocalTransportDescription_w(const std::string& transport_name,
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 173
174 PortAllocator* const port_allocator_ = nullptr; 174 PortAllocator* const port_allocator_ = nullptr;
175 rtc::SSLProtocolVersion ssl_max_version_ = rtc::SSL_PROTOCOL_DTLS_10; 175 rtc::SSLProtocolVersion ssl_max_version_ = rtc::SSL_PROTOCOL_DTLS_10;
176 176
177 // Aggregate state for Transports 177 // Aggregate state for Transports
178 IceConnectionState connection_state_ = kIceConnectionConnecting; 178 IceConnectionState connection_state_ = kIceConnectionConnecting;
179 bool receiving_ = false; 179 bool receiving_ = false;
180 IceGatheringState gathering_state_ = kIceGatheringNew; 180 IceGatheringState gathering_state_ = kIceGatheringNew;
181 181
182 // TODO(deadbeef): Move the fields below down to the transports themselves 182 // TODO(deadbeef): Move the fields below down to the transports themselves
183 183 IceConfig ice_config_;
184 // Timeout value in milliseconds for which no ICE connection receives
185 // any packets
186 int ice_receiving_timeout_ms_ = -1;
187 IceRole ice_role_ = ICEROLE_CONTROLLING; 184 IceRole ice_role_ = ICEROLE_CONTROLLING;
188 // Flag which will be set to true after the first role switch 185 // Flag which will be set to true after the first role switch
189 bool ice_role_switch_ = false; 186 bool ice_role_switch_ = false;
190 uint64 ice_tiebreaker_ = rtc::CreateRandomId64(); 187 uint64 ice_tiebreaker_ = rtc::CreateRandomId64();
191 rtc::scoped_refptr<rtc::RTCCertificate> certificate_; 188 rtc::scoped_refptr<rtc::RTCCertificate> certificate_;
192 }; 189 };
193 190
194 } // namespace cricket 191 } // namespace cricket
195 192
196 #endif // WEBRTC_P2P_BASE_TRANSPORTCONTROLLER_H_ 193 #endif // WEBRTC_P2P_BASE_TRANSPORTCONTROLLER_H_
OLDNEW
« no previous file with comments | « webrtc/p2p/base/transportchannelimpl.h ('k') | webrtc/p2p/base/transportcontroller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698