/external/chromium/base/ |
pickle_unittest.cc | 9 #include "base/pickle.h" 25 void VerifyResult(const Pickle& pickle) { 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)) 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...] |
file_path.h | 123 class Pickle; 312 // 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) [all...] |
/external/chromium/webkit/glue/ |
npruntime_util.cc | 7 #include "base/pickle.h" 14 bool SerializeNPIdentifier(NPIdentifier identifier, Pickle* pickle) { 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, 32 if (!pickle.ReadBool(pickle_iter, &is_string)) 38 if (!pickle.ReadData(pickle_iter, &data, &data_len) [all...] |
npruntime_util.h | 10 class Pickle; 15 bool SerializeNPIdentifier(NPIdentifier identifier, Pickle* pickle); 16 bool DeserializeNPIdentifier(const Pickle& pickle, void** pickle_iter,
|
webcursor.cc | 8 #include "base/pickle.h" 73 bool WebCursor::Deserialize(const Pickle* pickle, void** iter) { 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) [all...] |
glue_serialize.cc | 9 #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) [all...] |
webcursor.h | 31 class Pickle; 57 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/ |
session_command.cc | 9 #include "base/pickle.h" 16 SessionCommand::SessionCommand(id_type id, const Pickle& pickle) 18 contents_(pickle.size(), 0) { 19 DCHECK(pickle.size() < std::numeric_limits<size_type>::max()); 20 memcpy(contents(), pickle.data(), pickle.size()); 30 Pickle* SessionCommand::PayloadAsPickle() const { 31 return new Pickle(contents(), static_cast<int>(size()));
|
base_session_service.cc | 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()) 143 Pickle pickle; local 188 Pickle pickle; local [all...] |
session_command.h | 13 class Pickle; 24 // . 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 56 // returned Pickle. The returned Pickle references the underlying data of 58 // pickle. 59 Pickle* PayloadAsPickle() const [all...] |
/external/chromium/chrome/common/extensions/ |
user_script.cc | 7 #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) { 102 CHECK(pickle.ReadString(iter, &url)); 106 void UserScript::Pickle(::Pickle* pickle) const [all...] |
extension_unpacker.cc | 214 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, &iter, images) [all...] |
/external/chromium/chrome/browser/ui/views/extensions/ |
browser_action_drag_data.cc | 8 #include "base/pickle.h" 32 Pickle data_pickle; 41 Pickle drag_data_pickle; 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) { [all...] |
browser_action_drag_data_unittest.cc | 5 #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
|
browser_action_drag_data.h | 20 class Pickle; 45 void WriteToPickle(Profile* profile, Pickle* pickle) const; 46 bool ReadFromPickle(Pickle* pickle);
|
/external/chromium/net/http/ |
http_response_info.cc | 8 #include "base/pickle.h" 105 bool HttpResponseInfo::InitFromPickle(const Pickle& pickle, 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) [all...] |
http_response_info.h | 15 class Pickle; 33 // Initializes from the representation stored in the given pickle. 34 bool InitFromPickle(const Pickle& pickle, bool* response_truncated); 37 void Persist(Pickle* pickle,
|
http_vary_data.h | 11 class Pickle; 47 // 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;
|
http_vary_data.cc | 9 #include "base/pickle.h" 67 bool HttpVaryData::InitFromPickle(const Pickle& pickle, void** iter) { 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/ |
bookmark_node_data.cc | 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 162 Pickle pickle; local [all...] |
bookmark_node_data.h | 20 class Pickle; 67 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) [all...] |
/external/chromium/chrome/browser/password_manager/ |
native_backend_kwallet_x.cc | 10 #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) [all...] |
native_backend_kwallet_x.h | 19 class Pickle; 93 static void SerializeValue(const PasswordFormList& forms, Pickle* pickle); 101 const Pickle& pickle, 104 // Convenience function to read a GURL from a Pickle. Assumes the URL has 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/ |
ssl_manager.cc | 63 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())) [all...] |
/external/chromium/net/url_request/ |
view_cache_helper_unittest.cc | 7 #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());
|