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

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

Issue 1277263002: Add instrumentation to track the IceEndpointType. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Created 5 years, 4 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 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 295 matching lines...) Expand 10 before | Expand all | Expand 10 after
306 enum { 306 enum {
307 MSG_CHECKTIMEOUT = 0, 307 MSG_CHECKTIMEOUT = 0,
308 MSG_FIRST_AVAILABLE 308 MSG_FIRST_AVAILABLE
309 }; 309 };
310 310
311 void set_type(const std::string& type) { type_ = type; } 311 void set_type(const std::string& type) { type_ = type; }
312 312
313 void AddAddress(const rtc::SocketAddress& address, 313 void AddAddress(const rtc::SocketAddress& address,
314 const rtc::SocketAddress& base_address, 314 const rtc::SocketAddress& base_address,
315 const rtc::SocketAddress& related_address, 315 const rtc::SocketAddress& related_address,
316 const std::string& protocol, const std::string& tcptype, 316 const std::string& protocol,
317 const std::string& type, uint32 type_preference, 317 const std::string& relay_protocol,
318 uint32 relay_preference, bool final); 318 const std::string& tcptype,
319 const std::string& type,
320 uint32 type_preference,
321 uint32 relay_preference,
322 bool final);
319 323
320 // Adds the given connection to the list. (Deleting removes them.) 324 // Adds the given connection to the list. (Deleting removes them.)
321 void AddConnection(Connection* conn); 325 void AddConnection(Connection* conn);
322 326
323 // Called when a packet is received from an unknown address that is not 327 // Called when a packet is received from an unknown address that is not
324 // currently a connection. If this is an authenticated STUN binding request, 328 // currently a connection. If this is an authenticated STUN binding request,
325 // then we will signal the client. 329 // then we will signal the client.
326 void OnReadPacket(const char* data, size_t size, 330 void OnReadPacket(const char* data, size_t size,
327 const rtc::SocketAddress& addr, 331 const rtc::SocketAddress& addr,
328 ProtocolType proto); 332 ProtocolType proto);
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after
637 const rtc::PacketOptions& options); 641 const rtc::PacketOptions& options);
638 virtual int GetError() { return error_; } 642 virtual int GetError() { return error_; }
639 643
640 private: 644 private:
641 int error_; 645 int error_;
642 }; 646 };
643 647
644 } // namespace cricket 648 } // namespace cricket
645 649
646 #endif // WEBRTC_P2P_BASE_PORT_H_ 650 #endif // WEBRTC_P2P_BASE_PORT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698