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

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

Issue 292113002: QUIC - minor clean up of comments per wtc' comments for the CL: (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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 | « net/quic/quic_client_session_test.cc ('k') | net/quic/quic_packet_creator.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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 86
87 // Called when the connection failed to write because the socket was blocked. 87 // Called when the connection failed to write because the socket was blocked.
88 virtual void OnWriteBlocked() = 0; 88 virtual void OnWriteBlocked() = 0;
89 89
90 // Called once a specific QUIC version is agreed by both endpoints. 90 // Called once a specific QUIC version is agreed by both endpoints.
91 virtual void OnSuccessfulVersionNegotiation(const QuicVersion& version) = 0; 91 virtual void OnSuccessfulVersionNegotiation(const QuicVersion& version) = 0;
92 92
93 // Called when a blocked socket becomes writable. 93 // Called when a blocked socket becomes writable.
94 virtual void OnCanWrite() = 0; 94 virtual void OnCanWrite() = 0;
95 95
96 // Called to ask if the visitor wants to schedule write resumption as it has 96 // Called to ask if the visitor wants to schedule write resumption as it both
97 // both has pending data to write, and is able to write (e.g. based on flow 97 // has pending data to write, and is able to write (e.g. based on flow control
98 // control limits). 98 // limits).
99 // Writes may be pending because they were write-blocked, congestion-throttled 99 // Writes may be pending because they were write-blocked, congestion-throttled
100 // or yielded to other connections. 100 // or yielded to other connections.
101 virtual bool WillingAndAbleToWrite() const = 0; 101 virtual bool WillingAndAbleToWrite() const = 0;
102 102
103 // Called to ask if any handshake messages are pending in this visitor. 103 // Called to ask if any handshake messages are pending in this visitor.
104 virtual bool HasPendingHandshake() const = 0; 104 virtual bool HasPendingHandshake() const = 0;
105 105
106 // Called to ask if any streams are open in this visitor, excluding the 106 // Called to ask if any streams are open in this visitor, excluding the
107 // reserved crypto and headers stream. 107 // reserved crypto and headers stream.
108 virtual bool HasOpenDataStreams() const = 0; 108 virtual bool HasOpenDataStreams() const = 0;
(...skipping 644 matching lines...) Expand 10 before | Expand all | Expand 10 after
753 // If non-empty this contains the set of versions received in a 753 // If non-empty this contains the set of versions received in a
754 // version negotiation packet. 754 // version negotiation packet.
755 QuicVersionVector server_supported_versions_; 755 QuicVersionVector server_supported_versions_;
756 756
757 DISALLOW_COPY_AND_ASSIGN(QuicConnection); 757 DISALLOW_COPY_AND_ASSIGN(QuicConnection);
758 }; 758 };
759 759
760 } // namespace net 760 } // namespace net
761 761
762 #endif // NET_QUIC_QUIC_CONNECTION_H_ 762 #endif // NET_QUIC_QUIC_CONNECTION_H_
OLDNEW
« no previous file with comments | « net/quic/quic_client_session_test.cc ('k') | net/quic/quic_packet_creator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698