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

Unified Diff: sync/api/sync_data.h

Issue 1545553003: Switch to standard integer types in sync/. (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 | « sync/api/sync_change_processor_wrapper_for_test.h ('k') | sync/api/sync_data.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/api/sync_data.h
diff --git a/sync/api/sync_data.h b/sync/api/sync_data.h
index e38852912777c8dfc5e1a991e7f683a20656ca84..a516eab36eb76f585be11da21685c6b03b4ea445 100644
--- a/sync/api/sync_data.h
+++ b/sync/api/sync_data.h
@@ -5,11 +5,12 @@
#ifndef SYNC_API_SYNC_DATA_H_
#define SYNC_API_SYNC_DATA_H_
+#include <stdint.h>
+
#include <iosfwd>
#include <string>
#include <vector>
-#include "base/basictypes.h"
#include "base/callback.h"
#include "base/memory/ref_counted.h"
#include "base/stl_util.h"
@@ -71,7 +72,7 @@ class SYNC_EXPORT SyncData {
// Helper method for creating SyncData objects originating from the syncer.
static SyncData CreateRemoteData(
- int64 id,
+ int64_t id,
const sync_pb::EntitySpecifics& specifics,
const base::Time& last_modified_time,
const AttachmentIdList& attachment_ids,
@@ -128,7 +129,7 @@ class SYNC_EXPORT SyncData {
ImmutableSyncEntity;
// Equal to kInvalidId iff this is local.
- int64 id_;
+ int64_t id_;
// This may be null if the SyncData represents a deleted item.
base::Time remote_modification_time_;
@@ -143,7 +144,7 @@ class SYNC_EXPORT SyncData {
bool is_valid_;
// Clears |entity| and |attachments|.
- SyncData(int64 id,
+ SyncData(int64_t id,
sync_pb::SyncEntity* entity,
const base::Time& remote_modification_time,
const syncer::AttachmentServiceProxy& attachment_service);
@@ -176,7 +177,7 @@ class SYNC_EXPORT SyncDataRemote : public SyncData {
// if the SyncData represents a deleted item.
const base::Time& GetModifiedTime() const;
- int64 GetId() const;
+ int64_t GetId() const;
// Retrieve the attachments indentified by |attachment_ids|. Invoke
// |callback| with the requested attachments.
« no previous file with comments | « sync/api/sync_change_processor_wrapper_for_test.h ('k') | sync/api/sync_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698