| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "chrome/common/render_messages_params.h" | 5 #include "chrome/common/render_messages_params.h" |
| 6 | 6 |
| 7 #include "chrome/common/navigation_gesture.h" | 7 #include "chrome/common/navigation_gesture.h" |
| 8 #include "chrome/common/common_param_traits.h" | 8 #include "chrome/common/common_param_traits.h" |
| 9 #include "chrome/common/indexed_db_param_traits.h" | 9 #include "chrome/common/indexed_db_param_traits.h" |
| 10 #include "chrome/common/render_messages.h" | 10 #include "chrome/common/render_messages.h" |
| (...skipping 1399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1410 LogParam(p.request_id, l); | 1410 LogParam(p.request_id, l); |
| 1411 l->append(", "); | 1411 l->append(", "); |
| 1412 LogParam(p.origin_url, l); | 1412 LogParam(p.origin_url, l); |
| 1413 l->append(", "); | 1413 l->append(", "); |
| 1414 LogParam(p.type, l); | 1414 LogParam(p.type, l); |
| 1415 l->append(", "); | 1415 l->append(", "); |
| 1416 LogParam(p.requested_size, l); | 1416 LogParam(p.requested_size, l); |
| 1417 l->append(")"); | 1417 l->append(")"); |
| 1418 } | 1418 } |
| 1419 | 1419 |
| 1420 void ParamTraits<ViewMsg_FileSystem_DidReadDirectory_Params>::Write( |
| 1421 Message* m, |
| 1422 const param_type& p) { |
| 1423 WriteParam(m, p.request_id); |
| 1424 WriteParam(m, p.entries); |
| 1425 WriteParam(m, p.has_more); |
| 1426 } |
| 1427 |
| 1428 bool ParamTraits<ViewMsg_FileSystem_DidReadDirectory_Params>::Read( |
| 1429 const Message* m, |
| 1430 void** iter, |
| 1431 param_type* p) { |
| 1432 return |
| 1433 ReadParam(m, iter, &p->request_id) && |
| 1434 ReadParam(m, iter, &p->entries) && |
| 1435 ReadParam(m, iter, &p->has_more); |
| 1436 } |
| 1437 |
| 1438 void ParamTraits<ViewMsg_FileSystem_DidReadDirectory_Params>::Log( |
| 1439 const param_type& p, |
| 1440 std::string* l) { |
| 1441 l->append("("); |
| 1442 LogParam(p.request_id, l); |
| 1443 l->append(", "); |
| 1444 LogParam(p.entries, l); |
| 1445 l->append(", "); |
| 1446 LogParam(p.has_more, l); |
| 1447 l->append(")"); |
| 1448 } |
| 1449 |
| 1450 void ParamTraits<ViewMsg_FileSystem_DidReadDirectory_Params::Entry>::Write( |
| 1451 Message* m, |
| 1452 const param_type& p) { |
| 1453 WriteParam(m, p.name); |
| 1454 WriteParam(m, p.is_directory); |
| 1455 } |
| 1456 |
| 1457 bool ParamTraits<ViewMsg_FileSystem_DidReadDirectory_Params::Entry>::Read( |
| 1458 const Message* m, |
| 1459 void** iter, |
| 1460 param_type* p) { |
| 1461 return |
| 1462 ReadParam(m, iter, &p->name) && |
| 1463 ReadParam(m, iter, &p->is_directory); |
| 1464 } |
| 1465 |
| 1466 void ParamTraits<ViewMsg_FileSystem_DidReadDirectory_Params::Entry>::Log( |
| 1467 const param_type& p, |
| 1468 std::string* l) { |
| 1469 l->append("("); |
| 1470 LogParam(p.name, l); |
| 1471 l->append(", "); |
| 1472 LogParam(p.is_directory, l); |
| 1473 l->append(")"); |
| 1474 } |
| 1475 |
| 1420 } // namespace IPC | 1476 } // namespace IPC |
| OLD | NEW |