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

Unified Diff: sync/engine/entity_tracker.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/engine/directory_update_handler_unittest.cc ('k') | sync/engine/entity_tracker.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/engine/entity_tracker.h
diff --git a/sync/engine/entity_tracker.h b/sync/engine/entity_tracker.h
index 39898cf55184dd4999b64dc720f6b285eadf4e90..e0e66f60d38631c1bd83cff3eabfeddf65699135 100644
--- a/sync/engine/entity_tracker.h
+++ b/sync/engine/entity_tracker.h
@@ -5,9 +5,11 @@
#ifndef SYNC_ENGINE_ENTITY_TRACKER_H_
#define SYNC_ENGINE_ENTITY_TRACKER_H_
+#include <stdint.h>
+
#include <string>
-#include "base/basictypes.h"
+#include "base/macros.h"
#include "base/memory/scoped_ptr.h"
#include "base/time/time.h"
#include "sync/base/sync_export.h"
@@ -47,7 +49,7 @@ class SYNC_EXPORT EntityTracker {
// Populates a sync_pb::SyncEntity for a commit. Also sets the
// |sequence_number|, so we can track it throughout the commit process.
void PrepareCommitProto(sync_pb::SyncEntity* commit_entity,
- int64* sequence_number) const;
+ int64_t* sequence_number) const;
// Updates this entity with data from the latest version that the
// model asked us to commit. May clobber state related to the
@@ -60,11 +62,11 @@ class SYNC_EXPORT EntityTracker {
// that our item's state at the end of the commit is the same as it was at
// the start.
void ReceiveCommitResponse(const std::string& response_id,
- int64 response_version,
- int64 sequence_number);
+ int64_t response_version,
+ int64_t sequence_number);
// Handles receipt of an update from the server.
- void ReceiveUpdate(int64 version);
+ void ReceiveUpdate(int64_t version);
// Handles the receipt of an pending update from the server.
//
@@ -85,8 +87,8 @@ class SYNC_EXPORT EntityTracker {
// related to a pending commit.
EntityTracker(const std::string& id,
const std::string& client_tag_hash,
- int64 highest_commit_response_version,
- int64 highest_gu_response_version);
+ int64_t highest_commit_response_version,
+ int64_t highest_gu_response_version);
// Checks if the current state indicates a conflict.
//
@@ -107,18 +109,18 @@ class SYNC_EXPORT EntityTracker {
std::string client_tag_hash_;
// The highest version seen in a commit response for this entry.
- int64 highest_commit_response_version_;
+ int64_t highest_commit_response_version_;
// The highest version seen in a GU response for this entry.
- int64 highest_gu_response_version_;
+ int64_t highest_gu_response_version_;
// Used to track in-flight commit requests on the model thread. All we need
// to do here is return it back to the model thread when the pending commit
// is completed and confirmed. Not valid if no commit is pending.
- int64 sequence_number_;
+ int64_t sequence_number_;
// The server version on which this item is based.
- int64 base_version_;
+ int64_t base_version_;
// A commit for this entity waiting for a sync cycle to be committed.
scoped_ptr<CommitRequestData> pending_commit_;
« no previous file with comments | « sync/engine/directory_update_handler_unittest.cc ('k') | sync/engine/entity_tracker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698