| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |