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

Unified Diff: net/quic/port_suggester.h

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/p2p/quic_p2p_stream.h ('k') | net/quic/port_suggester.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/port_suggester.h
diff --git a/net/quic/port_suggester.h b/net/quic/port_suggester.h
index 0074f7c745975c6c6a7d7e83362e6591e7a9d5c3..458ddfa30712e098a931bfea6ba437d63e04f82d 100644
--- a/net/quic/port_suggester.h
+++ b/net/quic/port_suggester.h
@@ -5,7 +5,9 @@
#ifndef NET_QUIC_PORT_SUGGESTER_H_
#define NET_QUIC_PORT_SUGGESTER_H_
-#include "base/basictypes.h"
+#include <stdint.h>
+
+#include "base/macros.h"
#include "base/memory/ref_counted.h"
#include "base/sha1.h"
#include "net/base/net_export.h"
@@ -23,13 +25,13 @@ class HostPortPair;
class NET_EXPORT_PRIVATE PortSuggester
: public base::RefCounted<PortSuggester> {
public:
- PortSuggester(const HostPortPair& server, uint64 seed);
+ PortSuggester(const HostPortPair& server, uint64_t seed);
// Generate a pseudo-random int in the inclusive range from |min| to |max|.
// Will (probably) return different numbers when called repeatedly.
int SuggestPort(int min, int max);
- uint32 call_count() const { return call_count_; }
+ uint32_t call_count() const { return call_count_; }
int previous_suggestion() const;
private:
@@ -38,8 +40,8 @@ class NET_EXPORT_PRIVATE PortSuggester
virtual ~PortSuggester() {}
// We maintain the first 8 bytes of a hash as our seed_ state.
- uint64 seed_;
- uint32 call_count_; // Number of suggestions made.
+ uint64_t seed_;
+ uint32_t call_count_; // Number of suggestions made.
int previous_suggestion_;
DISALLOW_COPY_AND_ASSIGN(PortSuggester);
« no previous file with comments | « net/quic/p2p/quic_p2p_stream.h ('k') | net/quic/port_suggester.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698