Lines Matching defs:pickle
10 #include "base/pickle.h"
43 void BookmarkNodeData::Element::WriteToPickle(Pickle* pickle) const {
44 pickle->WriteBool(is_url);
45 pickle->WriteString(url.spec());
46 pickle->WriteString16(title);
47 pickle->WriteInt64(id_);
49 pickle->WriteSize(children.size());
52 i->WriteToPickle(pickle);
57 bool BookmarkNodeData::Element::ReadFromPickle(Pickle* pickle,
60 if (!pickle->ReadBool(iterator, &is_url) ||
61 !pickle->ReadString(iterator, &url_spec) ||
62 !pickle->ReadString16(iterator, &title) ||
63 !pickle->ReadInt64(iterator, &id_)) {
70 if (!pickle->ReadSize(iterator, &children_count))
75 if (!i->ReadFromPickle(pickle, iterator))
162 Pickle pickle;
163 WriteToPickle(profile, &pickle);
164 scw.WritePickledData(pickle, kClipboardFormatString);
173 Pickle pickle(data.data(), data.size());
174 if (ReadFromPickle(&pickle))
233 Pickle data_pickle;
245 Pickle drag_data_pickle;
263 void BookmarkNodeData::WriteToPickle(Profile* profile, Pickle* pickle) const {
265 FilePath::WriteStringTypeToPickle(pickle, path.value());
266 pickle->WriteSize(elements.size());
269 elements[i].WriteToPickle(pickle);
272 bool BookmarkNodeData::ReadFromPickle(Pickle* pickle) {
275 if (FilePath::ReadStringTypeFromPickle(pickle, &data_iterator,
277 pickle->ReadSize(&data_iterator, &element_count)) {
281 if (!tmp_elements[i].ReadFromPickle(pickle, &data_iterator)) {