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

Side by Side Diff: components/bookmarks/browser/bookmark_node_data.h

Issue 825353003: Revert of Remove deprecated methods from Pickle. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 12 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
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/extensions/browser_action_drag_data.cc ('k') | components/bookmarks/browser/bookmark_node_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698