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

Unified Diff: chrome/browser/net/probe_message.h

Issue 1550593002: Switch to standard integer types in chrome/browser/, part 2 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 | « chrome/browser/net/predictor_unittest.cc ('k') | chrome/browser/net/probe_message.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/net/probe_message.h
diff --git a/chrome/browser/net/probe_message.h b/chrome/browser/net/probe_message.h
index cef40d4000e7f1274dee95d25638423f9eba3db8..6fa046666da9e838c164062546dcdd4434978e08 100644
--- a/chrome/browser/net/probe_message.h
+++ b/chrome/browser/net/probe_message.h
@@ -5,10 +5,12 @@
#ifndef CHROME_BROWSER_NET_PROBE_MESSAGE_H_
#define CHROME_BROWSER_NET_PROBE_MESSAGE_H_
+#include <stdint.h>
+
#include <string>
-#include "base/basictypes.h"
#include "base/gtest_prod_util.h"
+#include "base/macros.h"
#include "chrome/browser/net/probe_message.pb.h"
namespace chrome_browser_net {
@@ -20,10 +22,10 @@ class ProbeMessage {
// Generate a ProbeRequest packet.
void GenerateProbeRequest(const ProbePacket_Token& received_token,
- uint32 group_id,
- uint32 probe_size,
- uint32 pacing_interval_micros,
- uint32 number_probe_packets,
+ uint32_t group_id,
+ uint32_t probe_size,
+ uint32_t pacing_interval_micros,
+ uint32_t number_probe_packets,
ProbePacket* output);
// Make an encoded packet (string) from a ProbePacket object.
std::string MakeEncodedPacket(const ProbePacket& packet) const;
@@ -34,7 +36,7 @@ class ProbeMessage {
// packet. Return true if there is no error and false otherwise.
bool ParseInput(const std::string& input, ProbePacket* packet) const;
- static const uint32 kMaxProbePacketBytes;
+ static const uint32_t kMaxProbePacketBytes;
private:
// For unittest.
@@ -45,14 +47,14 @@ class ProbeMessage {
FRIEND_TEST_ALL_PREFIXES(ProbeMessageTest, TestSetPacketHeader);
// Compute the checksum of the padding string.
- uint32 Checksum(const std::string& str) const;
+ uint32_t Checksum(const std::string& str) const;
// Encode the packet with kEncodingString. This is also used for decoding.
std::string Encode(const std::string& input) const;
- static const uint32 kVersion;
- static const uint32 kMaxNumberProbePackets;
- static const uint32 kMaxPacingIntervalMicros;
+ static const uint32_t kVersion;
+ static const uint32_t kMaxNumberProbePackets;
+ static const uint32_t kMaxPacingIntervalMicros;
static const char kEncodingString[];
DISALLOW_COPY_AND_ASSIGN(ProbeMessage);
« no previous file with comments | « chrome/browser/net/predictor_unittest.cc ('k') | chrome/browser/net/probe_message.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698