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

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

Issue 54463011: QUIC - Made AckFrameInfo a struct. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merging with tip Created 7 years, 1 month 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 | no next file » | 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_FRAMER_H_ 5 #ifndef NET_QUIC_QUIC_FRAMER_H_
6 #define NET_QUIC_QUIC_FRAMER_H_ 6 #define NET_QUIC_QUIC_FRAMER_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after
355 355
356 // The minimum sequence number length required to represent |sequence_number|. 356 // The minimum sequence number length required to represent |sequence_number|.
357 static QuicSequenceNumberLength GetMinSequenceNumberLength( 357 static QuicSequenceNumberLength GetMinSequenceNumberLength(
358 QuicPacketSequenceNumber sequence_number); 358 QuicPacketSequenceNumber sequence_number);
359 359
360 private: 360 private:
361 friend class test::QuicFramerPeer; 361 friend class test::QuicFramerPeer;
362 362
363 typedef std::map<QuicPacketSequenceNumber, uint8> NackRangeMap; 363 typedef std::map<QuicPacketSequenceNumber, uint8> NackRangeMap;
364 364
365 class AckFrameInfo { 365 struct AckFrameInfo {
366 public:
367 AckFrameInfo(); 366 AckFrameInfo();
368 virtual ~AckFrameInfo(); 367 ~AckFrameInfo();
369 368
370 // The maximum delta between ranges. 369 // The maximum delta between ranges.
371 QuicPacketSequenceNumber max_delta; 370 QuicPacketSequenceNumber max_delta;
372 // Nack ranges starting with start sequence numbers and lengths. 371 // Nack ranges starting with start sequence numbers and lengths.
373 NackRangeMap nack_ranges; 372 NackRangeMap nack_ranges;
374 }; 373 };
375 374
376 QuicPacketEntropyHash GetPacketEntropyHash( 375 QuicPacketEntropyHash GetPacketEntropyHash(
377 const QuicPacketHeader& header) const; 376 const QuicPacketHeader& header) const;
378 377
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
504 // The time this frames was created. Time written to the wire will be 503 // The time this frames was created. Time written to the wire will be
505 // written as a delta from this value. 504 // written as a delta from this value.
506 QuicTime creation_time_; 505 QuicTime creation_time_;
507 506
508 DISALLOW_COPY_AND_ASSIGN(QuicFramer); 507 DISALLOW_COPY_AND_ASSIGN(QuicFramer);
509 }; 508 };
510 509
511 } // namespace net 510 } // namespace net
512 511
513 #endif // NET_QUIC_QUIC_FRAMER_H_ 512 #endif // NET_QUIC_QUIC_FRAMER_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698