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

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

Issue 2386783002: Add UMA metrics for ICE regathering reasons. (Closed)
Patch Set: . 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 private: 65 private:
66 void Construct(); 66 void Construct();
67 67
68 void OnIceRegatheringReason(PortAllocatorSession* session,
69 IceRegatheringReason reason);
70
68 rtc::NetworkManager* network_manager_; 71 rtc::NetworkManager* network_manager_;
69 rtc::PacketSocketFactory* socket_factory_; 72 rtc::PacketSocketFactory* socket_factory_;
70 bool allow_tcp_listen_; 73 bool allow_tcp_listen_;
71 int network_ignore_mask_ = rtc::kDefaultNetworkIgnoreMask; 74 int network_ignore_mask_ = rtc::kDefaultNetworkIgnoreMask;
72 }; 75 };
73 76
74 struct PortConfiguration; 77 struct PortConfiguration;
75 class AllocationSequence; 78 class AllocationSequence;
76 79
77 enum class SessionState { 80 enum class SessionState {
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after
365 std::unique_ptr<rtc::AsyncPacketSocket> udp_socket_; 368 std::unique_ptr<rtc::AsyncPacketSocket> udp_socket_;
366 // There will be only one udp port per AllocationSequence. 369 // There will be only one udp port per AllocationSequence.
367 UDPPort* udp_port_; 370 UDPPort* udp_port_;
368 std::vector<TurnPort*> turn_ports_; 371 std::vector<TurnPort*> turn_ports_;
369 int phase_; 372 int phase_;
370 }; 373 };
371 374
372 } // namespace cricket 375 } // namespace cricket
373 376
374 #endif // WEBRTC_P2P_CLIENT_BASICPORTALLOCATOR_H_ 377 #endif // WEBRTC_P2P_CLIENT_BASICPORTALLOCATOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698