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

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

Issue 18307003: Implement the variable length changes necessary to easily accommodate (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merging with TOT Created 7 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 | « net/quic/quic_packet_creator_test.cc ('k') | net/quic/reliable_quic_stream_test.cc » ('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 #ifndef NET_QUIC_QUIC_PROTOCOL_H_ 5 #ifndef NET_QUIC_QUIC_PROTOCOL_H_
6 #define NET_QUIC_QUIC_PROTOCOL_H_ 6 #define NET_QUIC_QUIC_PROTOCOL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <limits> 9 #include <limits>
10 #include <map> 10 #include <map>
(...skipping 471 matching lines...) Expand 10 before | Expand all | Expand 10 after
482 QuicPacketSequenceNumber least_unacked); 482 QuicPacketSequenceNumber least_unacked);
483 483
484 NET_EXPORT_PRIVATE friend std::ostream& operator<<( 484 NET_EXPORT_PRIVATE friend std::ostream& operator<<(
485 std::ostream& os, const QuicAckFrame& s); 485 std::ostream& os, const QuicAckFrame& s);
486 486
487 SentPacketInfo sent_info; 487 SentPacketInfo sent_info;
488 ReceivedPacketInfo received_info; 488 ReceivedPacketInfo received_info;
489 }; 489 };
490 490
491 // Defines for all types of congestion feedback that will be negotiated in QUIC, 491 // Defines for all types of congestion feedback that will be negotiated in QUIC,
492 // kTCP MUST be supported by all QUIC implementations to guarentee 100% 492 // kTCP MUST be supported by all QUIC implementations to guarantee 100%
493 // compatibility. 493 // compatibility.
494 enum CongestionFeedbackType { 494 enum CongestionFeedbackType {
495 kTCP, // Used to mimic TCP. 495 kTCP, // Used to mimic TCP.
496 kInterArrival, // Use additional inter arrival information. 496 kInterArrival, // Use additional inter arrival information.
497 kFixRate, // Provided for testing. 497 kFixRate, // Provided for testing.
498 }; 498 };
499 499
500 struct NET_EXPORT_PRIVATE CongestionFeedbackMessageTCP { 500 struct NET_EXPORT_PRIVATE CongestionFeedbackMessageTCP {
501 uint16 accumulated_number_of_lost_packets; 501 uint16 accumulated_number_of_lost_packets;
502 QuicByteCount receive_window; 502 QuicByteCount receive_window;
(...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after
796 NET_EXPORT_PRIVATE friend std::ostream& operator<<( 796 NET_EXPORT_PRIVATE friend std::ostream& operator<<(
797 std::ostream& os, const QuicConsumedData& s); 797 std::ostream& os, const QuicConsumedData& s);
798 798
799 size_t bytes_consumed; 799 size_t bytes_consumed;
800 bool fin_consumed; 800 bool fin_consumed;
801 }; 801 };
802 802
803 } // namespace net 803 } // namespace net
804 804
805 #endif // NET_QUIC_QUIC_PROTOCOL_H_ 805 #endif // NET_QUIC_QUIC_PROTOCOL_H_
OLDNEW
« no previous file with comments | « net/quic/quic_packet_creator_test.cc ('k') | net/quic/reliable_quic_stream_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698