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

Unified Diff: google_apis/gcm/base/mcs_util.h

Issue 1548673002: Switch to standard integer types in google_apis/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix 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 | « google_apis/gcm/base/mcs_message_unittest.cc ('k') | google_apis/gcm/base/mcs_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: google_apis/gcm/base/mcs_util.h
diff --git a/google_apis/gcm/base/mcs_util.h b/google_apis/gcm/base/mcs_util.h
index e6fc1e0fbddfb992c89080e78dd9f912b1ccdb17..53f53eac1aea4e010b9ed296e3d929d3661bfb06 100644
--- a/google_apis/gcm/base/mcs_util.h
+++ b/google_apis/gcm/base/mcs_util.h
@@ -7,10 +7,11 @@
#ifndef GOOGLE_APIS_GCM_BASE_MCS_UTIL_H_
#define GOOGLE_APIS_GCM_BASE_MCS_UTIL_H_
+#include <stdint.h>
+
#include <string>
#include <vector>
-#include "base/basictypes.h"
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
#include "google_apis/gcm/base/gcm_export.h"
@@ -56,8 +57,8 @@ enum MCSIqStanzaExtension {
// Builds a LoginRequest with the hardcoded local data.
GCM_EXPORT scoped_ptr<mcs_proto::LoginRequest> BuildLoginRequest(
- uint64 auth_id,
- uint64 auth_token,
+ uint64_t auth_id,
+ uint64_t auth_token,
const std::string& version_string);
// Builds a StreamAck IqStanza message.
@@ -66,8 +67,8 @@ GCM_EXPORT scoped_ptr<mcs_proto::IqStanza> BuildSelectiveAck(
const std::vector<std::string>& acked_ids);
// Utility methods for building and identifying MCS protobufs.
-GCM_EXPORT scoped_ptr<google::protobuf::MessageLite>
- BuildProtobufFromTag(uint8 tag);
+GCM_EXPORT scoped_ptr<google::protobuf::MessageLite> BuildProtobufFromTag(
+ uint8_t tag);
GCM_EXPORT int GetMCSProtoTag(const google::protobuf::MessageLite& message);
// RMQ utility methods for extracting/setting common data from/to protobufs.
@@ -76,10 +77,10 @@ GCM_EXPORT std::string GetPersistentId(
GCM_EXPORT void SetPersistentId(
const std::string& persistent_id,
google::protobuf::MessageLite* message);
-GCM_EXPORT uint32 GetLastStreamIdReceived(
- const google::protobuf::MessageLite& protobuf);
+GCM_EXPORT uint32_t
+GetLastStreamIdReceived(const google::protobuf::MessageLite& protobuf);
GCM_EXPORT void SetLastStreamIdReceived(
- uint32 last_stream_id_received,
+ uint32_t last_stream_id_received,
google::protobuf::MessageLite* protobuf);
// Returns whether the TTL (time to live) for this message has expired, based
« no previous file with comments | « google_apis/gcm/base/mcs_message_unittest.cc ('k') | google_apis/gcm/base/mcs_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698