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

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

Issue 1868353004: Update prflx candidates' generation when setting ICE credentials. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Only need to pass in the last ICE params and the generation. 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
« no previous file with comments | « webrtc/api/peerconnection_unittest.cc ('k') | webrtc/p2p/base/p2ptransportchannel.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 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 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 } 242 }
243 243
244 private: 244 private:
245 std::string ToStringInternal(bool sensitive) const { 245 std::string ToStringInternal(bool sensitive) const {
246 std::ostringstream ost; 246 std::ostringstream ost;
247 std::string address = sensitive ? address_.ToSensitiveString() : 247 std::string address = sensitive ? address_.ToSensitiveString() :
248 address_.ToString(); 248 address_.ToString();
249 ost << "Cand[" << transport_name_ << ":" << foundation_ << ":" << component_ 249 ost << "Cand[" << transport_name_ << ":" << foundation_ << ":" << component_
250 << ":" << protocol_ << ":" << priority_ << ":" << address << ":" 250 << ":" << protocol_ << ":" << priority_ << ":" << address << ":"
251 << type_ << ":" << related_address_ << ":" << username_ << ":" 251 << type_ << ":" << related_address_ << ":" << username_ << ":"
252 << password_ << ":" << network_id_ << ":" << network_cost_ << "]"; 252 << password_ << ":" << network_id_ << ":" << network_cost_ << ":"
253 << generation_ << "]";
253 return ost.str(); 254 return ost.str();
254 } 255 }
255 256
256 std::string id_; 257 std::string id_;
257 int component_; 258 int component_;
258 std::string protocol_; 259 std::string protocol_;
259 std::string relay_protocol_; 260 std::string relay_protocol_;
260 rtc::SocketAddress address_; 261 rtc::SocketAddress address_;
261 uint32_t priority_; 262 uint32_t priority_;
262 std::string username_; 263 std::string username_;
(...skipping 18 matching lines...) Expand all
281 virtual ~CandidateTranslator() {} 282 virtual ~CandidateTranslator() {}
282 virtual bool GetChannelNameFromComponent( 283 virtual bool GetChannelNameFromComponent(
283 int component, std::string* channel_name) const = 0; 284 int component, std::string* channel_name) const = 0;
284 virtual bool GetComponentFromChannelName( 285 virtual bool GetComponentFromChannelName(
285 const std::string& channel_name, int* component) const = 0; 286 const std::string& channel_name, int* component) const = 0;
286 }; 287 };
287 288
288 } // namespace cricket 289 } // namespace cricket
289 290
290 #endif // WEBRTC_P2P_BASE_CANDIDATE_H_ 291 #endif // WEBRTC_P2P_BASE_CANDIDATE_H_
OLDNEW
« no previous file with comments | « webrtc/api/peerconnection_unittest.cc ('k') | webrtc/p2p/base/p2ptransportchannel.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698