summaryrefslogtreecommitdiffstats
path: root/sync/syncable/entry.h
diff options
context:
space:
mode:
authoravi <avi@chromium.org>2015-12-21 19:14:10 -0800
committerCommit bot <commit-bot@chromium.org>2015-12-22 03:15:12 +0000
commit4856ced07dfda549a142df3a5fa28cbb73bf1865 (patch)
treea81aceedc8ee5507d9f22fb4f163d847bfae6d28 /sync/syncable/entry.h
parent5af9dfc5f6ed2163b13d8c20d679bdb44c783769 (diff)
downloadchromium_src-4856ced07dfda549a142df3a5fa28cbb73bf1865.zip
chromium_src-4856ced07dfda549a142df3a5fa28cbb73bf1865.tar.gz
chromium_src-4856ced07dfda549a142df3a5fa28cbb73bf1865.tar.bz2
Switch to standard integer types in sync/.
BUG=138542 TBR=zea@chromium.org Review URL: https://codereview.chromium.org/1545553003 Cr-Commit-Position: refs/heads/master@{#366533}
Diffstat (limited to 'sync/syncable/entry.h')
-rw-r--r--sync/syncable/entry.h18
1 files changed, 11 insertions, 7 deletions
diff --git a/sync/syncable/entry.h b/sync/syncable/entry.h
index cf9b9af..906387f 100644
--- a/sync/syncable/entry.h
+++ b/sync/syncable/entry.h
@@ -5,9 +5,13 @@
#ifndef SYNC_SYNCABLE_ENTRY_H_
#define SYNC_SYNCABLE_ENTRY_H_
+#include <stddef.h>
+#include <stdint.h>
+
#include <string>
#include <vector>
+#include "base/macros.h"
#include "sync/base/sync_export.h"
#include "sync/syncable/entry_kernel.h"
@@ -54,7 +58,7 @@ class SYNC_EXPORT Entry {
public:
// After constructing, you must check good() to test whether the Get
// succeeded.
- Entry(BaseTransaction* trans, GetByHandle, int64 handle);
+ Entry(BaseTransaction* trans, GetByHandle, int64_t handle);
Entry(BaseTransaction* trans, GetById, const Id& id);
Entry(BaseTransaction* trans, GetTypeRoot, ModelType type);
Entry(BaseTransaction* trans, GetByClientTag, const std::string& tag);
@@ -68,27 +72,27 @@ class SYNC_EXPORT Entry {
BaseTransaction* trans() const { return basetrans_; }
// Field accessors.
- int64 GetMetahandle() const {
+ int64_t GetMetahandle() const {
DCHECK(kernel_);
return kernel_->ref(META_HANDLE);
}
- int64 GetBaseVersion() const {
+ int64_t GetBaseVersion() const {
DCHECK(kernel_);
return kernel_->ref(BASE_VERSION);
}
- int64 GetServerVersion() const {
+ int64_t GetServerVersion() const {
DCHECK(kernel_);
return kernel_->ref(SERVER_VERSION);
}
- int64 GetLocalExternalId() const {
+ int64_t GetLocalExternalId() const {
DCHECK(kernel_);
return kernel_->ref(LOCAL_EXTERNAL_ID);
}
- int64 GetTransactionVersion() const {
+ int64_t GetTransactionVersion() const {
DCHECK(kernel_);
return kernel_->ref(TRANSACTION_VERSION);
}
@@ -235,7 +239,7 @@ class SYNC_EXPORT Entry {
// Clears |result| if there are no children. If this node is of a type that
// supports user-defined ordering then the resulting vector will be in the
// proper order.
- void GetChildHandles(std::vector<int64>* result) const;
+ void GetChildHandles(std::vector<int64_t>* result) const;
inline bool ExistsOnClientBecauseNameIsNonEmpty() const {
DCHECK(kernel_);