| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_BOOKMARKS_BOOKMARK_CODEC_H_ | 5 #ifndef CHROME_BROWSER_BOOKMARKS_BOOKMARK_CODEC_H_ |
| 6 #define CHROME_BROWSER_BOOKMARKS_BOOKMARK_CODEC_H_ | 6 #define CHROME_BROWSER_BOOKMARKS_BOOKMARK_CODEC_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
| 12 #include "base/md5.h" | 12 #include "base/md5.h" |
| 13 #include "base/strings/string16.h" | 13 #include "base/strings/string16.h" |
| 14 #include "chrome/browser/bookmarks/bookmark_model.h" | 14 #include "components/bookmarks/core/browser/bookmark_node.h" |
| 15 | 15 |
| 16 class BookmarkModel; | 16 class BookmarkModel; |
| 17 class BookmarkNode; | |
| 18 | 17 |
| 19 namespace base { | 18 namespace base { |
| 20 class DictionaryValue; | 19 class DictionaryValue; |
| 21 class ListValue; | 20 class ListValue; |
| 22 class Value; | 21 class Value; |
| 23 } | 22 } |
| 24 | 23 |
| 25 // BookmarkCodec is responsible for encoding and decoding the BookmarkModel | 24 // BookmarkCodec is responsible for encoding and decoding the BookmarkModel |
| 26 // into JSON values. The encoded values are written to disk via the | 25 // into JSON values. The encoded values are written to disk via the |
| 27 // BookmarkStorage. | 26 // BookmarkStorage. |
| (...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 199 // Meta info set on bookmark model root. | 198 // Meta info set on bookmark model root. |
| 200 BookmarkNode::MetaInfoMap model_meta_info_map_; | 199 BookmarkNode::MetaInfoMap model_meta_info_map_; |
| 201 | 200 |
| 202 // Sync transaction version set on bookmark model root. | 201 // Sync transaction version set on bookmark model root. |
| 203 int64 model_sync_transaction_version_; | 202 int64 model_sync_transaction_version_; |
| 204 | 203 |
| 205 DISALLOW_COPY_AND_ASSIGN(BookmarkCodec); | 204 DISALLOW_COPY_AND_ASSIGN(BookmarkCodec); |
| 206 }; | 205 }; |
| 207 | 206 |
| 208 #endif // CHROME_BROWSER_BOOKMARKS_BOOKMARK_CODEC_H_ | 207 #endif // CHROME_BROWSER_BOOKMARKS_BOOKMARK_CODEC_H_ |
| OLD | NEW |