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

Side by Side Diff: net/quic/quic_connection.h

Issue 1228873008: Introduce UMA metrics for path MTU discovery. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2454
Patch Set: Created 5 years, 5 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 | « net/quic/quic_client_session.cc ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 // 4 //
5 // The entity that handles framing writes for a Quic client or server. 5 // The entity that handles framing writes for a Quic client or server.
6 // Each QuicSession will have a connection associated with it. 6 // Each QuicSession will have a connection associated with it.
7 // 7 //
8 // On the server side, the Dispatcher handles the raw reads, and hands off 8 // On the server side, the Dispatcher handles the raw reads, and hands off
9 // packets via ProcessUdpPacket for framing and processing. 9 // packets via ProcessUdpPacket for framing and processing.
10 // 10 //
(...skipping 425 matching lines...) Expand 10 before | Expand all | Expand 10 after
436 packet_generator_.set_debug_delegate(debug_visitor); 436 packet_generator_.set_debug_delegate(debug_visitor);
437 sent_packet_manager_.set_debug_delegate(debug_visitor); 437 sent_packet_manager_.set_debug_delegate(debug_visitor);
438 } 438 }
439 const IPEndPoint& self_address() const { return self_address_; } 439 const IPEndPoint& self_address() const { return self_address_; }
440 const IPEndPoint& peer_address() const { return peer_address_; } 440 const IPEndPoint& peer_address() const { return peer_address_; }
441 QuicConnectionId connection_id() const { return connection_id_; } 441 QuicConnectionId connection_id() const { return connection_id_; }
442 const QuicClock* clock() const { return clock_; } 442 const QuicClock* clock() const { return clock_; }
443 QuicRandom* random_generator() const { return random_generator_; } 443 QuicRandom* random_generator() const { return random_generator_; }
444 QuicByteCount max_packet_length() const; 444 QuicByteCount max_packet_length() const;
445 void set_max_packet_length(QuicByteCount length); 445 void set_max_packet_length(QuicByteCount length);
446 size_t mtu_probe_count() const { return mtu_probe_count_; }
446 447
447 bool connected() const { return connected_; } 448 bool connected() const { return connected_; }
448 449
449 // Must only be called on client connections. 450 // Must only be called on client connections.
450 const QuicVersionVector& server_supported_versions() const { 451 const QuicVersionVector& server_supported_versions() const {
451 DCHECK_EQ(Perspective::IS_CLIENT, perspective_); 452 DCHECK_EQ(Perspective::IS_CLIENT, perspective_);
452 return server_supported_versions_; 453 return server_supported_versions_;
453 } 454 }
454 455
455 size_t NumFecGroups() const { return group_map_.size(); } 456 size_t NumFecGroups() const { return group_map_.size(); }
(...skipping 478 matching lines...) Expand 10 before | Expand all | Expand 10 after
934 935
935 // The size of the largest packet received from peer. 936 // The size of the largest packet received from peer.
936 QuicByteCount largest_received_packet_size_; 937 QuicByteCount largest_received_packet_size_;
937 938
938 DISALLOW_COPY_AND_ASSIGN(QuicConnection); 939 DISALLOW_COPY_AND_ASSIGN(QuicConnection);
939 }; 940 };
940 941
941 } // namespace net 942 } // namespace net
942 943
943 #endif // NET_QUIC_QUIC_CONNECTION_H_ 944 #endif // NET_QUIC_QUIC_CONNECTION_H_
OLDNEW
« no previous file with comments | « net/quic/quic_client_session.cc ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698