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

123456789

/external/chromium_org/content/common/
H A Dssl_status_serialization.cc8 #include "base/pickle.h"
16 Pickle pickle; local
17 pickle.WriteInt(cert_id);
18 pickle.WriteUInt32(cert_status);
19 pickle.WriteInt(security_bits);
20 pickle.WriteInt(ssl_connection_status);
21 return std::string(static_cast<const char*>(pickle.data()), pickle.size());
40 Pickle pickle(state.data(), static_cast<int>(state.size()));
41 PickleIterator iter(pickle);
[all...]
/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...]
/external/chromium_org/base/
H A Dpickle_unittest.cc9 #include "base/pickle.h"
26 void VerifyResult(const Pickle& pickle) { argument
27 PickleIterator iter(pickle);
30 EXPECT_TRUE(pickle.ReadInt(&iter, &outint));
34 EXPECT_TRUE(pickle.ReadString(&iter, &outstr));
38 EXPECT_TRUE(pickle.ReadWString(&iter, &outwstr));
42 EXPECT_TRUE(pickle.ReadBool(&iter, &outbool));
44 EXPECT_TRUE(pickle.ReadBool(&iter, &outbool));
48 EXPECT_TRUE(pickle.ReadUInt16(&iter, &outuint16));
52 EXPECT_TRUE(pickle
72 Pickle pickle; local
136 Pickle pickle; local
146 Pickle pickle; local
156 Pickle pickle; local
165 Pickle pickle; local
174 Pickle pickle; local
198 Pickle pickle; local
226 Pickle pickle; local
318 Pickle pickle; local
331 Pickle pickle; local
[all...]
/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,
/external/chromium_org/skia/ext/
H A Dskia_utils_base.h8 #include "base/pickle.h"
13 // Return true if the pickle/iterator contains a string. If so, and if str
15 SK_API bool ReadSkString(const Pickle& pickle, PickleIterator* iter,
18 // Return true if the pickle/iterator contains a FontIdentity. If so, and if
20 SK_API bool ReadSkFontIdentity(const Pickle& pickle, PickleIterator* iter,
23 // Return true if str can be written into the request pickle.
24 SK_API bool WriteSkString(Pickle* pickle, const SkString& str);
26 // Return true if identity can be written into the request pickle.
27 SK_API bool WriteSkFontIdentity(Pickle* pickle,
H A Dskia_utils_base.cc9 bool ReadSkString(const Pickle& pickle, PickleIterator* iter, SkString* str) { argument
13 if (!pickle.ReadData(iter, &reply_text, &reply_length))
21 bool ReadSkFontIdentity(const Pickle& pickle, PickleIterator* iter, argument
28 if (!pickle.ReadUInt32(iter, &reply_id) ||
29 !pickle.ReadUInt32(iter, &reply_ttcIndex) ||
30 !pickle.ReadData(iter, &reply_text, &reply_length))
41 bool WriteSkString(Pickle* pickle, const SkString& str) { argument
42 return pickle->WriteData(str.c_str(), str.size());
45 bool WriteSkFontIdentity(Pickle* pickle, argument
47 return pickle
[all...]
/external/chromium_org/extensions/common/
H A Duser_script.cc8 #include "base/pickle.h"
111 void UserScript::File::Pickle(::Pickle* pickle) const {
112 pickle->WriteString(url_.spec());
117 void UserScript::File::Unpickle(const ::Pickle& pickle, PickleIterator* iter) { argument
118 // Read the url from the pickle.
120 CHECK(pickle.ReadString(iter, &url));
124 void UserScript::Pickle(::Pickle* pickle) const {
125 // Write the simple types to the pickle.
126 pickle->WriteInt(run_location());
127 pickle
140 PickleGlobs(::Pickle* pickle, const std::vector<std::string>& globs) const argument
149 PickleURLPatternSet(::Pickle* pickle, const URLPatternSet& pattern_list) const argument
159 PickleScripts(::Pickle* pickle, const FileList& scripts) const argument
168 Unpickle(const ::Pickle& pickle, PickleIterator* iter) argument
188 UnpickleGlobs(const ::Pickle& pickle, PickleIterator* iter, std::vector<std::string>* globs) argument
200 UnpickleURLPatternSet(const ::Pickle& pickle, PickleIterator* iter, URLPatternSet* pattern_list) argument
224 UnpickleScripts(const ::Pickle& pickle, PickleIterator* iter, FileList* scripts) argument
[all...]
/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...]
/external/chromium_org/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.cc9 #include "base/pickle.h"
29 // |pickle|, if and only if |str| fits within (|max_bytes| - |*bytes_written|).
31 void WriteStringToPickle(Pickle& pickle, int* bytes_written, int max_bytes, argument
36 pickle.WriteString(str);
38 pickle.WriteString(std::string());
144 // Use pickle to handle marshalling.
145 Pickle pickle; local
146 pickle.WriteInt(tab_id);
151 navigation.WriteToPickle(max_state_size, &pickle);
152 return new SessionCommand(command_id, pickle);
160 Pickle pickle; local
179 Pickle pickle; local
200 Pickle pickle; local
[all...]
/external/chromium_org/ui/base/clipboard/
H A Dcustom_data_helper.cc13 #include "base/pickle.h"
43 SkippablePickle pickle(data, data_length);
44 PickleIterator iter(pickle);
47 if (!pickle.ReadUInt64(&iter, &size))
57 if (!pickle.ReadString16(&iter, &types->back()) ||
58 !pickle.SkipString16(&iter)) {
69 SkippablePickle pickle(data, data_length);
70 PickleIterator iter(pickle);
73 if (!pickle.ReadUInt64(&iter, &size))
78 if (!pickle
116 WriteCustomDataToPickle(const std::map<string16, string16>& data, Pickle* pickle) argument
[all...]
H A Dcustom_data_helper_unittest.cc9 #include "base/pickle.h"
17 void PrepareEmptyTestData(Pickle* pickle) { argument
19 WriteCustomDataToPickle(data, pickle);
22 void PrepareTestData(Pickle* pickle) { argument
27 WriteCustomDataToPickle(data, pickle);
31 Pickle pickle; local
32 PrepareEmptyTestData(&pickle);
35 ReadCustomDataTypes(pickle.data(), pickle.size(), &types);
40 Pickle pickle; local
52 Pickle pickle; local
61 Pickle pickle; local
75 Pickle pickle; local
99 Pickle pickle; local
[all...]
/external/chromium_org/ui/base/dragdrop/
H A Dgtk_dnd_util_unittest.cc8 #include "base/pickle.h"
19 Pickle pickle; local
20 pickle.WriteString(kTitle);
21 pickle.WriteString(kUrl);
24 scoped_ptr<guchar[]> test_data(new guchar[pickle.size()]);
25 memcpy(test_data.get(), pickle.data(), pickle.size());
27 data.length = pickle.size();
39 Pickle pickle; local
40 pickle
70 Pickle pickle; local
[all...]
/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...]
/external/chromium_org/chrome/browser/ui/views/extensions/
H A Dbrowser_action_drag_data.cc8 #include "base/pickle.h"
65 Profile* profile, Pickle* pickle) const {
66 pickle->WriteBytes(&profile, sizeof(profile));
67 pickle->WriteString(id_);
68 pickle->WriteUInt64(index_);
71 bool BrowserActionDragData::ReadFromPickle(Pickle* pickle) { argument
72 PickleIterator data_iterator(*pickle);
75 if (!pickle->ReadBytes(&data_iterator, &tmp, sizeof(profile_)))
79 if (!pickle->ReadString(&data_iterator, &id_))
83 if (!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_))
/external/chromium_org/chrome/browser/nacl_host/
H A Dnacl_validation_cache.cc7 #include "base/pickle.h"
57 void NaClValidationCache::Serialize(Pickle* pickle) const {
59 pickle->WriteString(kValidationCacheBeginMagic);
60 pickle->WriteString(validation_cache_key_);
61 pickle->WriteInt(validation_cache_.size());
69 pickle->WriteString(iter->first);
73 pickle->WriteString(kValidationCacheEndMagic);
81 bool NaClValidationCache::Deserialize(const Pickle* pickle) { argument
82 bool success = DeserializeImpl(pickle);
89 bool NaClValidationCache::DeserializeImpl(const Pickle* pickle) { argument
[all...]
/external/chromium_org/net/http/
H A Dhttp_response_info.cc8 #include "base/pickle.h"
151 bool HttpResponseInfo::InitFromPickle(const Pickle& pickle, argument
153 PickleIterator iter(pickle);
157 if (!pickle.ReadInt(&iter, &flags))
168 if (!pickle.ReadInt64(&iter, &time_val))
174 if (!pickle.ReadInt64(&iter, &time_val))
179 headers = new HttpResponseHeaders(pickle, &iter);
186 ssl_info.cert = X509Certificate::CreateFromPickle(pickle, &iter, type);
192 if (!pickle.ReadUInt32(&iter, &cert_status))
198 if (!pickle
261 Persist(Pickle* pickle, bool skip_transient_headers, bool response_truncated) const argument
[all...]
/external/chromium_org/android_webview/native/
H A Dstate_serializer.h22 // Write and restore a WebContents to and from a pickle. Return true on
25 // Note that |pickle| may be changed even if function returns false.
27 Pickle* pickle) WARN_UNUSED_RESULT;
38 bool WriteHeaderToPickle(Pickle* pickle) WARN_UNUSED_RESULT;
41 Pickle* pickle) WARN_UNUSED_RESULT;
/external/chromium_org/chrome/browser/bookmarks/
H A Dbookmark_node_data.cc10 #include "base/pickle.h"
37 void BookmarkNodeData::Element::WriteToPickle(Pickle* pickle) const {
38 pickle->WriteBool(is_url);
39 pickle->WriteString(url.spec());
40 pickle->WriteString16(title);
41 pickle->WriteInt64(id_);
43 pickle->WriteUInt64(children.size());
46 i->WriteToPickle(pickle);
51 bool BookmarkNodeData::Element::ReadFromPickle(Pickle* pickle, argument
54 if (!pickle
153 Pickle pickle; local
198 ReadFromPickle(Pickle* pickle) argument
[all...]
/external/chromium_org/base/metrics/
H A Dhistogram_base_unittest.cc11 #include "base/pickle.h"
44 Pickle pickle; local
45 ASSERT_TRUE(histogram->SerializeInfo(&pickle));
47 PickleIterator iter(pickle);
53 PickleIterator iter2(pickle);
72 Pickle pickle; local
73 ASSERT_TRUE(histogram->SerializeInfo(&pickle));
74 histogram->SnapshotSamples()->Serialize(&pickle);
76 PickleIterator iter(pickle);
88 PickleIterator iter2(pickle);
103 Pickle pickle; local
125 Pickle pickle; local
152 Pickle pickle; local
174 Pickle pickle; local
[all...]
/external/chromium_org/content/child/npapi/
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);
H A Dnpruntime_util.h16 bool SerializeNPIdentifier(NPIdentifier identifier, Pickle* pickle);

Completed in 762 milliseconds

123456789