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

Side by Side Diff: net/quic/core/quic_packet_creator.cc

Issue 2820423002: Move quic_flags.h from net/quic/core to net/quic/platform and split into api and impl. (Closed)
Patch Set: Created 3 years, 8 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
« no previous file with comments | « net/quic/core/quic_headers_stream_test.cc ('k') | net/quic/core/quic_packets.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 #include "net/quic/core/quic_packet_creator.h" 5 #include "net/quic/core/quic_packet_creator.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <cstdint> 8 #include <cstdint>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "net/quic/core/crypto/crypto_protocol.h" 11 #include "net/quic/core/crypto/crypto_protocol.h"
12 #include "net/quic/core/quic_data_writer.h" 12 #include "net/quic/core/quic_data_writer.h"
13 #include "net/quic/core/quic_flags.h"
14 #include "net/quic/core/quic_utils.h" 13 #include "net/quic/core/quic_utils.h"
15 #include "net/quic/platform/api/quic_aligned.h" 14 #include "net/quic/platform/api/quic_aligned.h"
16 #include "net/quic/platform/api/quic_bug_tracker.h" 15 #include "net/quic/platform/api/quic_bug_tracker.h"
17 #include "net/quic/platform/api/quic_flag_utils.h" 16 #include "net/quic/platform/api/quic_flag_utils.h"
17 #include "net/quic/platform/api/quic_flags.h"
18 #include "net/quic/platform/api/quic_logging.h" 18 #include "net/quic/platform/api/quic_logging.h"
19 #include "net/quic/platform/api/quic_string_piece.h" 19 #include "net/quic/platform/api/quic_string_piece.h"
20 20
21 using std::string; 21 using std::string;
22 22
23 // If true, enforce that QUIC CHLOs fit in one packet. 23 // If true, enforce that QUIC CHLOs fit in one packet.
24 bool FLAGS_quic_enforce_single_packet_chlo = true; 24 bool FLAGS_quic_enforce_single_packet_chlo = true;
25 25
26 namespace net { 26 namespace net {
27 27
(...skipping 629 matching lines...) Expand 10 before | Expand all | Expand 10 after
657 bool QuicPacketCreator::IncludeNonceInPublicHeader() { 657 bool QuicPacketCreator::IncludeNonceInPublicHeader() {
658 return have_diversification_nonce_ && 658 return have_diversification_nonce_ &&
659 packet_.encryption_level == ENCRYPTION_INITIAL; 659 packet_.encryption_level == ENCRYPTION_INITIAL;
660 } 660 }
661 661
662 void QuicPacketCreator::AddPendingPadding(QuicByteCount size) { 662 void QuicPacketCreator::AddPendingPadding(QuicByteCount size) {
663 pending_padding_bytes_ += size; 663 pending_padding_bytes_ += size;
664 } 664 }
665 665
666 } // namespace net 666 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/core/quic_headers_stream_test.cc ('k') | net/quic/core/quic_packets.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698