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

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

Issue 2193073003: Move shared files in net/quic/ into net/quic/core/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: io_thread_unittest.cc Created 4 years, 4 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_packet_creator.h ('k') | net/quic/core/quic_packet_creator_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 #include "net/quic/quic_packet_creator.h" 5 #include "net/quic/core/quic_packet_creator.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "net/quic/crypto/crypto_protocol.h" 11 #include "net/quic/core/crypto/crypto_protocol.h"
12 #include "net/quic/crypto/quic_random.h" 12 #include "net/quic/core/crypto/quic_random.h"
13 #include "net/quic/quic_bug_tracker.h" 13 #include "net/quic/core/quic_bug_tracker.h"
14 #include "net/quic/quic_data_writer.h" 14 #include "net/quic/core/quic_data_writer.h"
15 #include "net/quic/quic_flags.h" 15 #include "net/quic/core/quic_flags.h"
16 #include "net/quic/quic_utils.h" 16 #include "net/quic/core/quic_utils.h"
17 17
18 using base::StringPiece; 18 using base::StringPiece;
19 using std::make_pair; 19 using std::make_pair;
20 using std::max; 20 using std::max;
21 using std::min; 21 using std::min;
22 using std::pair; 22 using std::pair;
23 using std::string; 23 using std::string;
24 using std::vector; 24 using std::vector;
25 25
26 namespace net { 26 namespace net {
(...skipping 690 matching lines...) Expand 10 before | Expand all | Expand 10 after
717 if (bit_mask_ == 0) { 717 if (bit_mask_ == 0) {
718 bit_bucket_ = random_->RandUint64(); 718 bit_bucket_ = random_->RandUint64();
719 bit_mask_ = 1; 719 bit_mask_ = 1;
720 } 720 }
721 bool result = ((bit_bucket_ & bit_mask_) != 0); 721 bool result = ((bit_bucket_ & bit_mask_) != 0);
722 bit_mask_ <<= 1; 722 bit_mask_ <<= 1;
723 return result; 723 return result;
724 } 724 }
725 725
726 } // namespace net 726 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/core/quic_packet_creator.h ('k') | net/quic/core/quic_packet_creator_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698