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

Unified Diff: net/quic/quic_packet_creator.cc

Issue 1535363003: Switch to standard integer types in net/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: stddef Created 5 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/quic/quic_packet_creator.h ('k') | net/quic/quic_packet_creator_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_packet_creator.cc
diff --git a/net/quic/quic_packet_creator.cc b/net/quic/quic_packet_creator.cc
index c47dcc6804d09e91c2055b541774d931f373a4cd..a9739e649ecfd801d64966f18b70ee73d3375f8c 100644
--- a/net/quic/quic_packet_creator.cc
+++ b/net/quic/quic_packet_creator.cc
@@ -6,8 +6,8 @@
#include <algorithm>
-#include "base/basictypes.h"
#include "base/logging.h"
+#include "base/macros.h"
#include "net/quic/crypto/quic_random.h"
#include "net/quic/quic_data_writer.h"
#include "net/quic/quic_fec_group.h"
@@ -42,7 +42,7 @@ const float kRttMultiplierForFecTimeout = 0.5;
// Minimum timeout for FEC alarm, set to half the minimum Tail Loss Probe
// timeout of 10ms.
-const int64 kMinFecTimeoutMs = 5u;
+const int64_t kMinFecTimeoutMs = 5u;
} // namespace
@@ -72,9 +72,9 @@ class QuicRandomBoolSource {
// Source of entropy.
QuicRandom* random_;
// Stored random bits.
- uint64 bit_bucket_;
+ uint64_t bit_bucket_;
// The next available bit has "1" in the mask. Zero means empty bucket.
- uint64 bit_mask_;
+ uint64_t bit_mask_;
DISALLOW_COPY_AND_ASSIGN(QuicRandomBoolSource);
};
@@ -242,7 +242,7 @@ void QuicPacketCreator::UpdatePacketNumberLength(
const QuicPacketNumber current_delta = max_packets_per_fec_group_ +
packet_number_ + 1 -
least_packet_awaited_by_peer;
- const uint64 delta = max(current_delta, max_packets_in_flight);
+ const uint64_t delta = max(current_delta, max_packets_in_flight);
next_packet_number_length_ =
QuicFramer::GetMinSequenceNumberLength(delta * 4);
}
« no previous file with comments | « net/quic/quic_packet_creator.h ('k') | net/quic/quic_packet_creator_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698