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

Side by Side Diff: chrome/browser/bookmarks/bookmark_codec.h

Issue 1868: Moves bookmark related classes into bookmarks directory. There are no... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 12 years, 3 months 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 unified diff | Download patch | Annotate | Revision Log
Property Changes:
Added: svn:mergeinfo
OLDNEW
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
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
OLDNEW
« no previous file with comments | « chrome/browser/bookmarks/bookmark_bar_model_unittest.cc ('k') | chrome/browser/bookmarks/bookmark_codec.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698