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_NODE_DATA_H_ | 5 #ifndef CHROME_BROWSER_BOOKMARKS_BOOKMARK_NODE_DATA_H_ |
6 #define CHROME_BROWSER_BOOKMARKS_BOOKMARK_NODE_DATA_H_ | 6 #define CHROME_BROWSER_BOOKMARKS_BOOKMARK_NODE_DATA_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 // Children, only used for non-URL nodes. | 57 // Children, only used for non-URL nodes. |
58 std::vector<Element> children; | 58 std::vector<Element> children; |
59 | 59 |
60 int64 id() { return id_; } | 60 int64 id() { return id_; } |
61 | 61 |
62 private: | 62 private: |
63 friend struct BookmarkNodeData; | 63 friend struct BookmarkNodeData; |
64 | 64 |
65 // For reading/writing this Element. | 65 // For reading/writing this Element. |
66 void WriteToPickle(Pickle* pickle) const; | 66 void WriteToPickle(Pickle* pickle) const; |
67 bool ReadFromPickle(Pickle* pickle, void** iterator); | 67 bool ReadFromPickle(Pickle* pickle, PickleReader* iterator); |
68 | 68 |
69 // ID of the node. | 69 // ID of the node. |
70 int64 id_; | 70 int64 id_; |
71 }; | 71 }; |
72 | 72 |
73 BookmarkNodeData(); | 73 BookmarkNodeData(); |
74 | 74 |
75 #if defined(TOOLKIT_VIEWS) | 75 #if defined(TOOLKIT_VIEWS) |
76 static ui::OSExchangeData::CustomFormat GetBookmarkCustomFormat(); | 76 static ui::OSExchangeData::CustomFormat GetBookmarkCustomFormat(); |
77 #endif | 77 #endif |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 static const char* kClipboardFormatString; | 156 static const char* kClipboardFormatString; |
157 | 157 |
158 static bool ClipboardContainsBookmarks(); | 158 static bool ClipboardContainsBookmarks(); |
159 | 159 |
160 private: | 160 private: |
161 // Path of the profile we originated from. | 161 // Path of the profile we originated from. |
162 FilePath profile_path_; | 162 FilePath profile_path_; |
163 }; | 163 }; |
164 | 164 |
165 #endif // CHROME_BROWSER_BOOKMARKS_BOOKMARK_NODE_DATA_H_ | 165 #endif // CHROME_BROWSER_BOOKMARKS_BOOKMARK_NODE_DATA_H_ |
OLD | NEW |