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

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

Issue 394053003: QUIC - minor cleanup changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge with TOT Created 6 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | net/quic/quic_crypto_client_stream.h » ('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 496 matching lines...) Expand 10 before | Expand all | Expand 10 after
507 507
508 // Selects and updates the version of the protocol being used by selecting a 508 // Selects and updates the version of the protocol being used by selecting a
509 // version from |available_versions| which is also supported. Returns true if 509 // version from |available_versions| which is also supported. Returns true if
510 // such a version exists, false otherwise. 510 // such a version exists, false otherwise.
511 bool SelectMutualVersion(const QuicVersionVector& available_versions); 511 bool SelectMutualVersion(const QuicVersionVector& available_versions);
512 512
513 QuicPacketWriter* writer() { return writer_; } 513 QuicPacketWriter* writer() { return writer_; }
514 514
515 bool peer_port_changed() const { return peer_port_changed_; } 515 bool peer_port_changed() const { return peer_port_changed_; }
516 516
517 const QuicReceivedPacketManager& received_packet_manager() { 517 const QuicReceivedPacketManager& received_packet_manager() const {
518 return received_packet_manager_; 518 return received_packet_manager_;
519 } 519 }
520 520
521 QuicPacketSequenceNumber sequence_number_of_last_sent_packet() const { 521 QuicPacketSequenceNumber sequence_number_of_last_sent_packet() const {
522 return sequence_number_of_last_sent_packet_; 522 return sequence_number_of_last_sent_packet_;
523 } 523 }
524 524
525 private: 525 private:
526 friend class test::QuicConnectionPeer; 526 friend class test::QuicConnectionPeer;
527 527
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
773 // If non-empty this contains the set of versions received in a 773 // If non-empty this contains the set of versions received in a
774 // version negotiation packet. 774 // version negotiation packet.
775 QuicVersionVector server_supported_versions_; 775 QuicVersionVector server_supported_versions_;
776 776
777 DISALLOW_COPY_AND_ASSIGN(QuicConnection); 777 DISALLOW_COPY_AND_ASSIGN(QuicConnection);
778 }; 778 };
779 779
780 } // namespace net 780 } // namespace net
781 781
782 #endif // NET_QUIC_QUIC_CONNECTION_H_ 782 #endif // NET_QUIC_QUIC_CONNECTION_H_
OLDNEW
« no previous file with comments | « no previous file | net/quic/quic_crypto_client_stream.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698