| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 BookmarkBarModel | 5 // BookmarkCodec is responsible for encoding and decoding the BookmarkBarModel |
| 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_BOOKMARK_CODEC_H_ | 9 #ifndef CHROME_BROWSER_BOOKMARKS_BOOKMARK_CODEC_H_ |
| 10 #define CHROME_BROWSER_BOOKMARKS_BOOKMARK_CODEC_H_ |
| 10 | 11 |
| 11 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
| 12 | 13 |
| 13 class BookmarkBarModel; | 14 class BookmarkBarModel; |
| 14 class BookmarkBarNode; | 15 class BookmarkBarNode; |
| 15 class DictionaryValue; | 16 class DictionaryValue; |
| 16 class ListValue; | 17 class ListValue; |
| 17 class Value; | 18 class Value; |
| 18 | 19 |
| 19 // BookmarkCodec is responsible for encoding/decoding bookmarks into JSON | 20 // BookmarkCodec is responsible for encoding/decoding bookmarks into JSON |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 // created appropriately by way of DecodeChildren. If node is NULL a new | 57 // created appropriately by way of DecodeChildren. If node is NULL a new |
| 57 // node is created and added to parent, otherwise node is used. | 58 // node is created and added to parent, otherwise node is used. |
| 58 bool DecodeNode(BookmarkBarModel* model, | 59 bool DecodeNode(BookmarkBarModel* model, |
| 59 const DictionaryValue& value, | 60 const DictionaryValue& value, |
| 60 BookmarkBarNode* parent, | 61 BookmarkBarNode* parent, |
| 61 BookmarkBarNode* node); | 62 BookmarkBarNode* node); |
| 62 | 63 |
| 63 DISALLOW_COPY_AND_ASSIGN(BookmarkCodec); | 64 DISALLOW_COPY_AND_ASSIGN(BookmarkCodec); |
| 64 }; | 65 }; |
| 65 | 66 |
| 66 #endif // CHROME_BROWSER_BOOKMARK_CODEC_H_ | 67 #endif // CHROME_BROWSER_BOOKMARKS_BOOKMARK_CODEC_H_ |
| 67 | |
| OLD | NEW |