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 // BookmarkCodec is responsible for encoding and decoding the BookmarkModel | 5 // BookmarkCodec is responsible for encoding and decoding the BookmarkModel |
6 // into JSON values. The encoded values are written to disk via the | 6 // into JSON values. The encoded values are written to disk via the |
7 // BookmarkService. | 7 // BookmarkService. |
8 | 8 |
9 #ifndef CHROME_BROWSER_BOOKMARKS_BOOKMARK_CODEC_H_ | 9 #ifndef CHROME_BROWSER_BOOKMARKS_BOOKMARK_CODEC_H_ |
10 #define CHROME_BROWSER_BOOKMARKS_BOOKMARK_CODEC_H_ | 10 #define CHROME_BROWSER_BOOKMARKS_BOOKMARK_CODEC_H_ |
11 #pragma once | |
12 | 11 |
13 #include <set> | 12 #include <set> |
14 #include <string> | 13 #include <string> |
15 | 14 |
16 #include "base/basictypes.h" | 15 #include "base/basictypes.h" |
17 #include "base/md5.h" | 16 #include "base/md5.h" |
18 #include "base/string16.h" | 17 #include "base/string16.h" |
19 | 18 |
20 class BookmarkModel; | 19 class BookmarkModel; |
21 class BookmarkNode; | 20 class BookmarkNode; |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
165 std::string computed_checksum_; | 164 std::string computed_checksum_; |
166 std::string stored_checksum_; | 165 std::string stored_checksum_; |
167 | 166 |
168 // Maximum ID assigned when decoding data. | 167 // Maximum ID assigned when decoding data. |
169 int64 maximum_id_; | 168 int64 maximum_id_; |
170 | 169 |
171 DISALLOW_COPY_AND_ASSIGN(BookmarkCodec); | 170 DISALLOW_COPY_AND_ASSIGN(BookmarkCodec); |
172 }; | 171 }; |
173 | 172 |
174 #endif // CHROME_BROWSER_BOOKMARKS_BOOKMARK_CODEC_H_ | 173 #endif // CHROME_BROWSER_BOOKMARKS_BOOKMARK_CODEC_H_ |
OLD | NEW |