| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 COMPONENTS_BOOKMARKS_BROWSER_BOOKMARK_NODE_DATA_H_ | 5 #ifndef COMPONENTS_BOOKMARKS_BROWSER_BOOKMARK_NODE_DATA_H_ |
| 6 #define COMPONENTS_BOOKMARKS_BROWSER_BOOKMARK_NODE_DATA_H_ | 6 #define COMPONENTS_BOOKMARKS_BROWSER_BOOKMARK_NODE_DATA_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 // Meta info for the bookmark node. | 70 // Meta info for the bookmark node. |
| 71 BookmarkNode::MetaInfoMap meta_info_map; | 71 BookmarkNode::MetaInfoMap meta_info_map; |
| 72 | 72 |
| 73 int64 id() const { return id_; } | 73 int64 id() const { return id_; } |
| 74 | 74 |
| 75 private: | 75 private: |
| 76 friend struct BookmarkNodeData; | 76 friend struct BookmarkNodeData; |
| 77 | 77 |
| 78 // For reading/writing this Element. | 78 // For reading/writing this Element. |
| 79 void WriteToPickle(Pickle* pickle) const; | 79 void WriteToPickle(Pickle* pickle) const; |
| 80 bool ReadFromPickle(PickleIterator* iterator); | 80 bool ReadFromPickle(Pickle* pickle, PickleIterator* iterator); |
| 81 | 81 |
| 82 // ID of the node. | 82 // ID of the node. |
| 83 int64 id_; | 83 int64 id_; |
| 84 }; | 84 }; |
| 85 | 85 |
| 86 // The MIME type for the clipboard format for BookmarkNodeData. | 86 // The MIME type for the clipboard format for BookmarkNodeData. |
| 87 static const char* kClipboardFormatString; | 87 static const char* kClipboardFormatString; |
| 88 | 88 |
| 89 BookmarkNodeData(); | 89 BookmarkNodeData(); |
| 90 | 90 |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 std::vector<Element> elements; | 169 std::vector<Element> elements; |
| 170 | 170 |
| 171 private: | 171 private: |
| 172 // Path of the profile we originated from. | 172 // Path of the profile we originated from. |
| 173 base::FilePath profile_path_; | 173 base::FilePath profile_path_; |
| 174 }; | 174 }; |
| 175 | 175 |
| 176 } // namespace bookmarks | 176 } // namespace bookmarks |
| 177 | 177 |
| 178 #endif // COMPONENTS_BOOKMARKS_BROWSER_BOOKMARK_NODE_DATA_H_ | 178 #endif // COMPONENTS_BOOKMARKS_BROWSER_BOOKMARK_NODE_DATA_H_ |
| OLD | NEW |