| 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);
|
|
|