Searched refs:pickle (Results 1 - 25 of 52) sorted by relevance

123

/external/chromium/base/
H A Dpickle_unittest.cc9 #include "base/pickle.h"
25 void VerifyResult(const Pickle& pickle) { argument
29 EXPECT_TRUE(pickle.ReadInt(&iter, &outint));
33 EXPECT_TRUE(pickle.ReadString(&iter, &outstr));
37 EXPECT_TRUE(pickle.ReadWString(&iter, &outwstr));
41 EXPECT_TRUE(pickle.ReadBool(&iter, &outbool));
43 EXPECT_TRUE(pickle.ReadBool(&iter, &outbool));
47 EXPECT_TRUE(pickle.ReadUInt16(&iter, &outuint16));
52 EXPECT_TRUE(pickle.ReadData(&iter, &outdata, &outdatalen));
56 EXPECT_TRUE(pickle
67 Pickle pickle; local
130 Pickle pickle; local
140 Pickle pickle; local
150 Pickle pickle; local
159 Pickle pickle; local
168 Pickle pickle; local
192 Pickle pickle; local
216 Pickle pickle; local
301 Pickle pickle; local
314 Pickle pickle; local
[all...]
H A Dfile_path.h312 // Static helper method to write a StringType to a pickle.
313 static void WriteStringTypeToPickle(Pickle* pickle,
315 static bool ReadStringTypeFromPickle(Pickle* pickle, void** iter,
318 void WriteToPickle(Pickle* pickle);
319 bool ReadFromPickle(Pickle* pickle, void** iter);
/external/chromium/webkit/glue/
H A Dnpruntime_util.cc7 #include "base/pickle.h"
14 bool SerializeNPIdentifier(NPIdentifier identifier, Pickle* pickle) { argument
20 if (!pickle->WriteBool(is_string))
24 return pickle->WriteData(string, strlen(string) + 1);
26 return pickle->WriteInt(number);
29 bool DeserializeNPIdentifier(const Pickle& pickle, void** pickle_iter, argument
32 if (!pickle.ReadBool(pickle_iter, &is_string))
38 if (!pickle.ReadData(pickle_iter, &data, &data_len))
44 if (!pickle.ReadInt(pickle_iter, &number))
H A Dnpruntime_util.h15 bool SerializeNPIdentifier(NPIdentifier identifier, Pickle* pickle);
16 bool DeserializeNPIdentifier(const Pickle& pickle, void** pickle_iter,
H A Dwebcursor.cc8 #include "base/pickle.h"
73 bool WebCursor::Deserialize(const Pickle* pickle, void** iter) { argument
79 if (!pickle->ReadInt(iter, &type) ||
80 !pickle->ReadInt(iter, &hotspot_x) ||
81 !pickle->ReadInt(iter, &hotspot_y) ||
82 !pickle->ReadLength(iter, &size_x) ||
83 !pickle->ReadLength(iter, &size_y) ||
84 !pickle->ReadData(iter, &data, &data_len))
114 return DeserializePlatformData(pickle, iter);
117 bool WebCursor::Serialize(Pickle* pickle) cons
[all...]
H A Dglue_serialize.cc9 #include "base/pickle.h"
35 SerializeObject(const char* data, int len) : pickle(data, len), iter(NULL) {}
38 return std::string(static_cast<const char*>(pickle.data()), pickle.size());
41 Pickle pickle; member in struct:webkit_glue::SerializeObject
62 // NOTE: If the version is -1, then the pickle contains only a URL string.
71 obj->pickle.WriteData(static_cast<const char*>(data), length);
77 obj->pickle.ReadData(&obj->iter, &tmp, length);
84 if (!obj->pickle.ReadBytes(&obj->iter, &tmp, length))
91 obj->pickle
[all...]
H A Dwebcursor.h57 bool Deserialize(const Pickle* pickle, void** iter);
58 bool Serialize(Pickle* pickle) const;
118 bool SerializePlatformData(Pickle* pickle) const;
119 bool DeserializePlatformData(const Pickle* pickle, void** iter);
/external/chromium/chrome/browser/sessions/
H A Dsession_command.cc9 #include "base/pickle.h"
16 SessionCommand::SessionCommand(id_type id, const Pickle& pickle) argument
18 contents_(pickle.size(), 0) {
19 DCHECK(pickle.size() < std::numeric_limits<size_type>::max());
20 memcpy(contents(), pickle.data(), pickle.size());
H A Dbase_session_service.cc7 #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, argument
35 pickle.WriteString(str);
37 pickle.WriteString(std::string());
42 void WriteString16ToPickle(Pickle& pickle, int* bytes_written, int max_bytes, argument
47 pickle.WriteString16(str);
49 pickle.WriteString16(string16());
142 // Use pickle to handle marshalling.
143 Pickle pickle; local
188 Pickle pickle; local
[all...]
H A Dsession_command.h24 // . From a pickle, this is useful for commands whose length varies.
38 // id whose contents is populated from the contents of pickle.
39 SessionCommand(id_type id, const Pickle& pickle);
55 // Returns the contents as a pickle. It is up to the caller to delete the
58 // pickle.
/external/chromium/chrome/common/extensions/
H A Duser_script.cc7 #include "base/pickle.h"
93 void UserScript::File::Pickle(::Pickle* pickle) const {
94 pickle->WriteString(url_.spec());
99 void UserScript::File::Unpickle(const ::Pickle& pickle, void** iter) { argument
102 CHECK(pickle.ReadString(iter, &url));
106 void UserScript::Pickle(::Pickle* pickle) const {
108 pickle->WriteInt(run_location());
109 pickle->WriteString(extension_id());
110 pickle->WriteBool(emulate_greasemonkey());
111 pickle
148 Unpickle(const ::Pickle& pickle, void** iter) argument
[all...]
H A Dextension_unpacker.cc214 IPC::Message pickle; // We use a Message so we can use WriteParam. local
215 IPC::WriteParam(&pickle, decoded_images_);
219 if (!file_util::WriteFile(path, static_cast<const char*>(pickle.data()),
220 pickle.size())) {
229 IPC::Message pickle; local
230 IPC::WriteParam(&pickle, *parsed_catalogs_.get());
234 if (!file_util::WriteFile(path, static_cast<const char*>(pickle.data()),
235 pickle.size())) {
251 IPC::Message pickle(file_str.data(), file_str.size());
253 return IPC::ReadParam(&pickle,
[all...]
/external/chromium/chrome/browser/ui/views/extensions/
H A Dbrowser_action_drag_data.cc8 #include "base/pickle.h"
67 Profile* profile, Pickle* pickle) const {
69 pickle->WriteBytes(&profile_id, sizeof(profile_id));
70 pickle->WriteString(id_);
71 pickle->WriteSize(index_);
74 bool BrowserActionDragData::ReadFromPickle(Pickle* pickle) { argument
78 if (!pickle->ReadBytes(&data_iterator, &tmp, sizeof(profile_id_)))
82 if (!pickle->ReadString(&data_iterator, &id_))
85 if (!pickle->ReadSize(&data_iterator, &index_))
H A Dbrowser_action_drag_data_unittest.cc5 #include "base/pickle.h"
42 Pickle pickle; local
43 pickle.WriteBytes(&profile_id, sizeof(profile_id));
44 pickle.WriteString(extension_id);
45 pickle.WriteInt(42);
49 pickle); local
H A Dbrowser_action_drag_data.h45 void WriteToPickle(Profile* profile, Pickle* pickle) const;
46 bool ReadFromPickle(Pickle* pickle);
/external/chromium/net/http/
H A Dhttp_response_info.cc8 #include "base/pickle.h"
105 bool HttpResponseInfo::InitFromPickle(const Pickle& pickle, argument
111 if (!pickle.ReadInt(&iter, &flags))
122 if (!pickle.ReadInt64(&iter, &time_val))
128 if (!pickle.ReadInt64(&iter, &time_val))
133 headers = new HttpResponseHeaders(pickle, &iter);
143 ssl_info.cert = X509Certificate::CreateFromPickle(pickle, &iter, type);
147 if (!pickle.ReadInt(&iter, &cert_status))
153 if (!pickle.ReadInt(&iter, &security_bits))
160 if (!vary_data.InitFromPickle(pickle,
187 Persist(Pickle* pickle, bool skip_transient_headers, bool response_truncated) const argument
[all...]
H A Dhttp_vary_data.h47 // Initialize from a pickle that contains data generated by a call to the
54 bool InitFromPickle(const Pickle& pickle, void** pickle_iter);
58 void Persist(Pickle* pickle) const;
H A Dhttp_response_info.h33 // Initializes from the representation stored in the given pickle.
34 bool InitFromPickle(const Pickle& pickle, bool* response_truncated);
37 void Persist(Pickle* pickle,
H A Dhttp_vary_data.cc9 #include "base/pickle.h"
67 bool HttpVaryData::InitFromPickle(const Pickle& pickle, void** iter) { argument
70 if (pickle.ReadBytes(iter, &data, sizeof(request_digest_))) {
77 void HttpVaryData::Persist(Pickle* pickle) const {
79 pickle->WriteBytes(&request_digest_, sizeof(request_digest_));
/external/chromium/chrome/browser/bookmarks/
H A Dbookmark_node_data.cc10 #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, argument
60 if (!pickle
162 Pickle pickle; local
272 ReadFromPickle(Pickle* pickle) argument
[all...]
H A Dbookmark_node_data.h67 void WriteToPickle(Pickle* pickle) const;
68 bool ReadFromPickle(Pickle* pickle, void** iterator);
117 // Writes the data for a drag to |pickle|.
118 void WriteToPickle(Profile* profile, Pickle* pickle) const;
120 // Reads the data for a drag from a |pickle|.
121 bool ReadFromPickle(Pickle* pickle);
/external/chromium/chrome/browser/password_manager/
H A Dnative_backend_kwallet_x.cc10 #include "base/pickle.h"
217 Pickle pickle(byte_array->data, byte_array->len);
219 DeserializeValue(signon_realm, pickle, &all_forms);
314 Pickle pickle(byte_array->data, byte_array->len);
315 DeserializeValue(signon_realm, pickle, forms);
392 Pickle pickle(byte_array->data, byte_array->len);
393 DeserializeValue(*realm, pickle, forms);
461 Pickle* pickle) {
462 pickle->WriteInt(kPickleVersion);
463 pickle
460 SerializeValue(const PasswordFormList& forms, Pickle* pickle) argument
494 DeserializeValue(const string& signon_realm, const Pickle& pickle, PasswordFormList* forms) argument
545 ReadGURL(const Pickle& pickle, void** iter, GURL* url) argument
[all...]
H A Dnative_backend_kwallet_x.h93 static void SerializeValue(const PasswordFormList& forms, Pickle* pickle);
101 const Pickle& pickle,
106 static bool ReadGURL(const Pickle& pickle, void** iter, GURL* url);
108 // In case the fields in the pickle ever change, version them so we can try to
/external/chromium/chrome/browser/ssl/
H A Dssl_manager.cc63 Pickle pickle; local
64 pickle.WriteInt(cert_id);
65 pickle.WriteInt(cert_status);
66 pickle.WriteInt(security_bits);
67 pickle.WriteInt(ssl_connection_status);
68 return std::string(static_cast<const char*>(pickle.data()), pickle.size());
88 Pickle pickle(state.data(), static_cast<int>(state.size()));
90 return pickle.ReadInt(&iter, cert_id) &&
91 pickle
[all...]
/external/chromium/net/url_request/
H A Dview_cache_helper_unittest.cc7 #include "base/pickle.h"
40 Pickle pickle;
41 pickle.WriteInt(flags | 1); // Version 1.
42 pickle.WriteInt64(0);
43 pickle.WriteInt64(0);
44 pickle.WriteString(data);
47 reinterpret_cast<const char*>(pickle.data())));
48 int len = static_cast<int>(pickle.size());

Completed in 249 milliseconds

123