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

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

Issue 2063823008: Adding IceConfig option to assume TURN/TURN candidate pairs will work. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Merge with master again.. 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 unified diff | Download patch
« no previous file with comments | « webrtc/p2p/base/p2ptransportchannel_unittest.cc ('k') | webrtc/p2p/base/transport.h » ('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 2004 The WebRTC Project Authors. All rights reserved. 2 * Copyright 2004 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 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 void set_component(int component) { component_ = component; } 171 void set_component(int component) { component_ = component; }
172 172
173 bool send_retransmit_count_attribute() const { 173 bool send_retransmit_count_attribute() const {
174 return send_retransmit_count_attribute_; 174 return send_retransmit_count_attribute_;
175 } 175 }
176 void set_send_retransmit_count_attribute(bool enable) { 176 void set_send_retransmit_count_attribute(bool enable) {
177 send_retransmit_count_attribute_ = enable; 177 send_retransmit_count_attribute_ = enable;
178 } 178 }
179 179
180 // Identifies the generation that this port was created in. 180 // Identifies the generation that this port was created in.
181 uint32_t generation() { return generation_; } 181 uint32_t generation() const { return generation_; }
182 void set_generation(uint32_t generation) { generation_ = generation; } 182 void set_generation(uint32_t generation) { generation_ = generation; }
183 183
184 const std::string username_fragment() const; 184 const std::string username_fragment() const;
185 const std::string& password() const { return password_; } 185 const std::string& password() const { return password_; }
186 186
187 // May be called when this port was initially created by a pooled 187 // May be called when this port was initially created by a pooled
188 // PortAllocatorSession, and is now being assigned to an ICE transport. 188 // PortAllocatorSession, and is now being assigned to an ICE transport.
189 // Updates the information for candidates as well. 189 // Updates the information for candidates as well.
190 void SetIceParameters(int component, 190 void SetIceParameters(int component,
191 const std::string& username_fragment, 191 const std::string& username_fragment,
(...skipping 486 matching lines...) Expand 10 before | Expand all | Expand 10 after
678 const rtc::PacketOptions& options) override; 678 const rtc::PacketOptions& options) override;
679 int GetError() override { return error_; } 679 int GetError() override { return error_; }
680 680
681 private: 681 private:
682 int error_ = 0; 682 int error_ = 0;
683 }; 683 };
684 684
685 } // namespace cricket 685 } // namespace cricket
686 686
687 #endif // WEBRTC_P2P_BASE_PORT_H_ 687 #endif // WEBRTC_P2P_BASE_PORT_H_
OLDNEW
« no previous file with comments | « webrtc/p2p/base/p2ptransportchannel_unittest.cc ('k') | webrtc/p2p/base/transport.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698