diff options
author | munjal@chromium.org <munjal@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-28 20:23:33 +0000 |
---|---|---|
committer | munjal@chromium.org <munjal@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-28 20:23:33 +0000 |
commit | fc7c36a2c51aeba1da2495ffa5f6944179b93974 (patch) | |
tree | 909b0fa25ab0c23c1157af27515927e3a426fba3 /chrome/browser/bookmarks/bookmark_storage.h | |
parent | 1e7377df1449c4e543a50c8a8a1425599c8425f7 (diff) | |
download | chromium_src-fc7c36a2c51aeba1da2495ffa5f6944179b93974.zip chromium_src-fc7c36a2c51aeba1da2495ffa5f6944179b93974.tar.gz chromium_src-fc7c36a2c51aeba1da2495ffa5f6944179b93974.tar.bz2 |
We need to save bookmarks file when the persist_ids settings changes
or when the file is detected to be changed externally.
Review URL: http://codereview.chromium.org/114055
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@17105 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/bookmarks/bookmark_storage.h')
-rw-r--r-- | chrome/browser/bookmarks/bookmark_storage.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/chrome/browser/bookmarks/bookmark_storage.h b/chrome/browser/bookmarks/bookmark_storage.h index f9a080d..cc18b60 100644 --- a/chrome/browser/bookmarks/bookmark_storage.h +++ b/chrome/browser/bookmarks/bookmark_storage.h @@ -65,11 +65,25 @@ class BookmarkStorage : public NotificationObserver, void set_max_id(int max_id) { max_id_ = max_id; } int max_id() const { return max_id_; } + // Computed checksum. + void set_computed_checksum(const std::string& value) { + computed_checksum_ = value; + } + const std::string& computed_checksum() const { return computed_checksum_; } + + // Stored checksum. + void set_stored_checksum(const std::string& value) { + stored_checksum_ = value; + } + const std::string& stored_checksum() const { return stored_checksum_; } + private: scoped_ptr<BookmarkNode> bb_node_; scoped_ptr<BookmarkNode> other_folder_node_; scoped_ptr<BookmarkIndex> index_; int max_id_; + std::string computed_checksum_; + std::string stored_checksum_; DISALLOW_COPY_AND_ASSIGN(LoadDetails); }; |