OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "ui/base/models/menu_model.h" | 5 #include "ui/base/models/menu_model.h" |
6 | 6 |
7 // Get basic type definitions. | 7 // Get basic type definitions. |
8 #define IPC_MESSAGE_IMPL | 8 #define IPC_MESSAGE_IMPL |
9 #include "chrome/common/automation_messages.h" | 9 #include "chrome/common/automation_messages.h" |
10 | 10 |
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
187 return true; | 187 return true; |
188 } | 188 } |
189 static void Log(const param_type& p, std::string* l) { | 189 static void Log(const param_type& p, std::string* l) { |
190 l->append("<net::UploadElement>"); | 190 l->append("<net::UploadElement>"); |
191 } | 191 } |
192 }; | 192 }; |
193 | 193 |
194 void ParamTraits<scoped_refptr<net::UploadData> >::Write(Message* m, | 194 void ParamTraits<scoped_refptr<net::UploadData> >::Write(Message* m, |
195 const param_type& p) { | 195 const param_type& p) { |
196 WriteParam(m, p.get() != NULL); | 196 WriteParam(m, p.get() != NULL); |
197 if (p) { | 197 if (p.get()) { |
198 WriteParam(m, p->elements()); | 198 WriteParam(m, p->elements()); |
199 WriteParam(m, p->identifier()); | 199 WriteParam(m, p->identifier()); |
200 WriteParam(m, p->is_chunked()); | 200 WriteParam(m, p->is_chunked()); |
201 WriteParam(m, p->last_chunk_appended()); | 201 WriteParam(m, p->last_chunk_appended()); |
202 } | 202 } |
203 } | 203 } |
204 | 204 |
205 bool ParamTraits<scoped_refptr<net::UploadData> >::Read(const Message* m, | 205 bool ParamTraits<scoped_refptr<net::UploadData> >::Read(const Message* m, |
206 PickleIterator* iter, | 206 PickleIterator* iter, |
207 param_type* r) { | 207 param_type* r) { |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
278 LogParam(status, l); | 278 LogParam(status, l); |
279 | 279 |
280 if (p.status() == net::URLRequestStatus::FAILED) { | 280 if (p.status() == net::URLRequestStatus::FAILED) { |
281 l->append(", "); | 281 l->append(", "); |
282 LogParam(p.error(), l); | 282 LogParam(p.error(), l); |
283 l->append(")"); | 283 l->append(")"); |
284 } | 284 } |
285 } | 285 } |
286 | 286 |
287 } // namespace IPC | 287 } // namespace IPC |
OLD | NEW |