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

Side by Side Diff: webrtc/p2p/client/basicportallocator.h

Issue 2386783002: Add UMA metrics for ICE regathering reasons. (Closed)
Patch Set: Address comments Created 4 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
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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 55
56 PortAllocatorSession* CreateSessionInternal( 56 PortAllocatorSession* CreateSessionInternal(
57 const std::string& content_name, 57 const std::string& content_name,
58 int component, 58 int component,
59 const std::string& ice_ufrag, 59 const std::string& ice_ufrag,
60 const std::string& ice_pwd) override; 60 const std::string& ice_pwd) override;
61 61
62 // Convenience method that adds a TURN server to the configuration. 62 // Convenience method that adds a TURN server to the configuration.
63 void AddTurnServer(const RelayServerConfig& turn_server); 63 void AddTurnServer(const RelayServerConfig& turn_server);
64 64
65 void ReportIceRegatheringReason(IceRegatheringReason reason) override;
66
65 private: 67 private:
66 void Construct(); 68 void Construct();
67 69
68 rtc::NetworkManager* network_manager_; 70 rtc::NetworkManager* network_manager_;
69 rtc::PacketSocketFactory* socket_factory_; 71 rtc::PacketSocketFactory* socket_factory_;
70 bool allow_tcp_listen_; 72 bool allow_tcp_listen_;
71 int network_ignore_mask_ = rtc::kDefaultNetworkIgnoreMask; 73 int network_ignore_mask_ = rtc::kDefaultNetworkIgnoreMask;
72 }; 74 };
73 75
74 struct PortConfiguration; 76 struct PortConfiguration;
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after
365 std::unique_ptr<rtc::AsyncPacketSocket> udp_socket_; 367 std::unique_ptr<rtc::AsyncPacketSocket> udp_socket_;
366 // There will be only one udp port per AllocationSequence. 368 // There will be only one udp port per AllocationSequence.
367 UDPPort* udp_port_; 369 UDPPort* udp_port_;
368 std::vector<TurnPort*> turn_ports_; 370 std::vector<TurnPort*> turn_ports_;
369 int phase_; 371 int phase_;
370 }; 372 };
371 373
372 } // namespace cricket 374 } // namespace cricket
373 375
374 #endif // WEBRTC_P2P_CLIENT_BASICPORTALLOCATOR_H_ 376 #endif // WEBRTC_P2P_CLIENT_BASICPORTALLOCATOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698