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

Unified Diff: components/invalidation/impl/push_client_channel.h

Issue 1548113002: Switch to standard integer types in components/, part 2 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: gn 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
Index: components/invalidation/impl/push_client_channel.h
diff --git a/components/invalidation/impl/push_client_channel.h b/components/invalidation/impl/push_client_channel.h
index d47cc4915aa56281afdb12ffcd45a2385aa20ef3..8f00cd009ca67c566b1b2ac7c2e3b04bc2341297 100644
--- a/components/invalidation/impl/push_client_channel.h
+++ b/components/invalidation/impl/push_client_channel.h
@@ -5,10 +5,12 @@
#ifndef COMPONENTS_INVALIDATION_IMPL_PUSH_CLIENT_CHANNEL_H_
#define COMPONENTS_INVALIDATION_IMPL_PUSH_CLIENT_CHANNEL_H_
+#include <stdint.h>
+
#include <string>
-#include "base/basictypes.h"
#include "base/compiler_specific.h"
+#include "base/macros.h"
#include "base/memory/scoped_ptr.h"
#include "components/invalidation/impl/sync_system_resources.h"
#include "components/invalidation/public/invalidation_export.h"
@@ -54,31 +56,31 @@ class INVALIDATION_EXPORT PushClientChannel
const std::string& GetServiceContextForTest() const;
- int64 GetSchedulingHashForTest() const;
+ int64_t GetSchedulingHashForTest() const;
static std::string EncodeMessageForTest(const std::string& message,
const std::string& service_context,
- int64 scheduling_hash);
+ int64_t scheduling_hash);
static bool DecodeMessageForTest(const std::string& notification,
std::string* message,
std::string* service_context,
- int64* scheduling_hash);
+ int64_t* scheduling_hash);
private:
static void EncodeMessage(std::string* encoded_message,
const std::string& message,
const std::string& service_context,
- int64 scheduling_hash);
+ int64_t scheduling_hash);
static bool DecodeMessage(const std::string& data,
std::string* message,
std::string* service_context,
- int64* scheduling_hash);
+ int64_t* scheduling_hash);
scoped_ptr<base::DictionaryValue> CollectDebugData() const;
scoped_ptr<notifier::PushClient> push_client_;
std::string service_context_;
- int64 scheduling_hash_;
+ int64_t scheduling_hash_;
// This count is saved for displaying statatistics.
int sent_messages_count_;
« no previous file with comments | « components/invalidation/impl/p2p_invalidator_unittest.cc ('k') | components/invalidation/impl/push_client_channel.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698