| 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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 | 86 |
| 87 // For reading/writing this Element. | 87 // For reading/writing this Element. |
| 88 void WriteToPickle(base::Pickle* pickle) const; | 88 void WriteToPickle(base::Pickle* pickle) const; |
| 89 bool ReadFromPickle(base::PickleIterator* iterator); | 89 bool ReadFromPickle(base::PickleIterator* iterator); |
| 90 | 90 |
| 91 // ID of the node. | 91 // ID of the node. |
| 92 int64 id_; | 92 int64 id_; |
| 93 }; | 93 }; |
| 94 | 94 |
| 95 // The MIME type for the clipboard format for BookmarkNodeData. | 95 // The MIME type for the clipboard format for BookmarkNodeData. |
| 96 static const char* kClipboardFormatString; | 96 static const char kClipboardFormatString[]; |
| 97 | 97 |
| 98 BookmarkNodeData(); | 98 BookmarkNodeData(); |
| 99 | 99 |
| 100 // Created a BookmarkNodeData populated from the arguments. | 100 // Created a BookmarkNodeData populated from the arguments. |
| 101 explicit BookmarkNodeData(const BookmarkNode* node); | 101 explicit BookmarkNodeData(const BookmarkNode* node); |
| 102 explicit BookmarkNodeData(const std::vector<const BookmarkNode*>& nodes); | 102 explicit BookmarkNodeData(const std::vector<const BookmarkNode*>& nodes); |
| 103 | 103 |
| 104 ~BookmarkNodeData(); | 104 ~BookmarkNodeData(); |
| 105 | 105 |
| 106 #if defined(TOOLKIT_VIEWS) | 106 #if defined(TOOLKIT_VIEWS) |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 179 std::vector<Element> elements; | 179 std::vector<Element> elements; |
| 180 | 180 |
| 181 private: | 181 private: |
| 182 // Path of the profile we originated from. | 182 // Path of the profile we originated from. |
| 183 base::FilePath profile_path_; | 183 base::FilePath profile_path_; |
| 184 }; | 184 }; |
| 185 | 185 |
| 186 } // namespace bookmarks | 186 } // namespace bookmarks |
| 187 | 187 |
| 188 #endif // COMPONENTS_BOOKMARKS_BROWSER_BOOKMARK_NODE_DATA_H_ | 188 #endif // COMPONENTS_BOOKMARKS_BROWSER_BOOKMARK_NODE_DATA_H_ |
| OLD | NEW |