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

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

Issue 331573002: Land Recent QUIC Changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix compiler error - use push_back to initialize vectors Created 6 years, 6 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_data_stream_test.cc ('k') | net/quic/quic_headers_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_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 355 matching lines...) Expand 10 before | Expand all | Expand 10 after
366 static QuicSequenceNumberLength GetMinSequenceNumberLength( 366 static QuicSequenceNumberLength GetMinSequenceNumberLength(
367 QuicPacketSequenceNumber sequence_number); 367 QuicPacketSequenceNumber sequence_number);
368 368
369 void SetSupportedVersions(const QuicVersionVector& versions) { 369 void SetSupportedVersions(const QuicVersionVector& versions) {
370 supported_versions_ = versions; 370 supported_versions_ = versions;
371 quic_version_ = versions[0]; 371 quic_version_ = versions[0];
372 } 372 }
373 373
374 void set_validate_flags(bool value) { validate_flags_ = value; } 374 void set_validate_flags(bool value) { validate_flags_ = value; }
375 375
376 bool is_server() const { return is_server_; }
377
376 private: 378 private:
377 friend class test::QuicFramerPeer; 379 friend class test::QuicFramerPeer;
378 380
379 typedef std::map<QuicPacketSequenceNumber, uint8> NackRangeMap; 381 typedef std::map<QuicPacketSequenceNumber, uint8> NackRangeMap;
380 382
381 struct AckFrameInfo { 383 struct AckFrameInfo {
382 AckFrameInfo(); 384 AckFrameInfo();
383 ~AckFrameInfo(); 385 ~AckFrameInfo();
384 386
385 // The maximum delta between ranges. 387 // The maximum delta between ranges.
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
530 // The time this frames was created. Time written to the wire will be 532 // The time this frames was created. Time written to the wire will be
531 // written as a delta from this value. 533 // written as a delta from this value.
532 QuicTime creation_time_; 534 QuicTime creation_time_;
533 535
534 DISALLOW_COPY_AND_ASSIGN(QuicFramer); 536 DISALLOW_COPY_AND_ASSIGN(QuicFramer);
535 }; 537 };
536 538
537 } // namespace net 539 } // namespace net
538 540
539 #endif // NET_QUIC_QUIC_FRAMER_H_ 541 #endif // NET_QUIC_QUIC_FRAMER_H_
OLDNEW
« no previous file with comments | « net/quic/quic_data_stream_test.cc ('k') | net/quic/quic_headers_stream_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698