Lines Matching defs:pickle
7 #include "base/pickle.h"
28 // |pickle|, if and only if |str| fits within (|max_bytes| - |*bytes_written|).
30 void WriteStringToPickle(Pickle& pickle, int* bytes_written, int max_bytes,
35 pickle.WriteString(str);
37 pickle.WriteString(std::string());
42 void WriteString16ToPickle(Pickle& pickle, int* bytes_written, int max_bytes,
47 pickle.WriteString16(str);
49 pickle.WriteString16(string16());
142 // Use pickle to handle marshalling.
143 Pickle pickle;
144 pickle.WriteInt(tab_id);
145 pickle.WriteInt(index);
158 WriteStringToPickle(pickle, &bytes_written, max_state_size,
161 WriteString16ToPickle(pickle, &bytes_written, max_state_size, entry.title());
165 WriteStringToPickle(pickle, &bytes_written, max_state_size,
168 WriteStringToPickle(pickle, &bytes_written, max_state_size,
172 pickle.WriteInt(entry.transition_type());
174 pickle.WriteInt(type_mask);
176 WriteStringToPickle(pickle, &bytes_written, max_state_size,
180 return new SessionCommand(command_id, pickle);
187 // Use pickle to handle marshalling.
188 Pickle pickle;
189 pickle.WriteInt(tab_id);
197 WriteStringToPickle(pickle, &bytes_written, max_id_size, extension_id);
199 return new SessionCommand(command_id, pickle);
206 scoped_ptr<Pickle> pickle(command.PayloadAsPickle());
207 if (!pickle.get())
211 if (!pickle->ReadInt(&iterator, tab_id) ||
212 !pickle->ReadInt(&iterator, &(navigation->index_)) ||
213 !pickle->ReadString(&iterator, &url_spec) ||
214 !pickle->ReadString16(&iterator, &(navigation->title_)) ||
215 !pickle->ReadString(&iterator, &(navigation->state_)) ||
216 !pickle->ReadInt(&iterator,
221 bool has_type_mask = pickle->ReadInt(&iterator, &(navigation->type_mask_));
227 pickle->ReadString(&iterator, &referrer_spec);
240 scoped_ptr<Pickle> pickle(command.PayloadAsPickle());
241 if (!pickle.get())
245 return pickle->ReadInt(&iterator, tab_id) &&
246 pickle->ReadString(&iterator, extension_app_id);