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

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

Issue 9447084: Refactor Pickle Read methods to use higher performance PickleIterator. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: jar feedback Created 8 years, 10 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
OLDNEW
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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698