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

Unified Diff: components/bookmarks/browser/bookmark_storage.h

Issue 1546143002: Switch to standard integer types in components/, part 1 of 4. (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
Index: components/bookmarks/browser/bookmark_storage.h
diff --git a/components/bookmarks/browser/bookmark_storage.h b/components/bookmarks/browser/bookmark_storage.h
index 6fbb8a5508fecb888687a6ab155d4d0674476b99..cc72f675cdebfa88334116c8e1113cf627ca6eb4 100644
--- a/components/bookmarks/browser/bookmark_storage.h
+++ b/components/bookmarks/browser/bookmark_storage.h
@@ -5,12 +5,15 @@
#ifndef COMPONENTS_BOOKMARKS_BROWSER_BOOKMARK_STORAGE_H_
#define COMPONENTS_BOOKMARKS_BROWSER_BOOKMARK_STORAGE_H_
+#include <stdint.h>
+
#include <string>
#include <vector>
#include "base/callback_forward.h"
#include "base/files/file_path.h"
#include "base/files/important_file_writer.h"
+#include "base/macros.h"
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
#include "base/memory/scoped_vector.h"
@@ -32,7 +35,7 @@ typedef ScopedVector<BookmarkPermanentNode> BookmarkPermanentNodeList;
// A callback that generates a BookmarkPermanentNodeList, given a max ID to
// use. The max ID argument will be updated after any new nodes have been
// created and assigned IDs.
-typedef base::Callback<BookmarkPermanentNodeList(int64*)> LoadExtraCallback;
+typedef base::Callback<BookmarkPermanentNodeList(int64_t*)> LoadExtraCallback;
// BookmarkLoadDetails is used by BookmarkStorage when loading bookmarks.
// BookmarkModel creates a BookmarkLoadDetails and passes it (including
@@ -49,7 +52,7 @@ class BookmarkLoadDetails {
BookmarkPermanentNode* mobile_folder_node,
const LoadExtraCallback& load_extra_callback,
BookmarkIndex* index,
- int64 max_id);
+ int64_t max_id);
~BookmarkLoadDetails();
void LoadExtraNodes();
@@ -84,16 +87,16 @@ class BookmarkLoadDetails {
model_meta_info_map_ = meta_info_map;
}
- int64 model_sync_transaction_version() const {
+ int64_t model_sync_transaction_version() const {
return model_sync_transaction_version_;
}
- void set_model_sync_transaction_version(int64 sync_transaction_version) {
+ void set_model_sync_transaction_version(int64_t sync_transaction_version) {
model_sync_transaction_version_ = sync_transaction_version;
}
// Max id of the nodes.
- void set_max_id(int64 max_id) { max_id_ = max_id; }
- int64 max_id() const { return max_id_; }
+ void set_max_id(int64_t max_id) { max_id_ = max_id; }
+ int64_t max_id() const { return max_id_; }
// Computed checksum.
void set_computed_checksum(const std::string& value) {
@@ -122,8 +125,8 @@ class BookmarkLoadDetails {
BookmarkPermanentNodeList extra_nodes_;
scoped_ptr<BookmarkIndex> index_;
BookmarkNode::MetaInfoMap model_meta_info_map_;
- int64 model_sync_transaction_version_;
- int64 max_id_;
+ int64_t model_sync_transaction_version_;
+ int64_t max_id_;
std::string computed_checksum_;
std::string stored_checksum_;
bool ids_reassigned_;
« no previous file with comments | « components/bookmarks/browser/bookmark_pasteboard_helper_mac.mm ('k') | components/bookmarks/browser/bookmark_storage.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698