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/extensions/extension_constants.h" | 9 #include "chrome/common/extensions/extension_constants.h" |
10 #include "chrome/common/render_messages.h" | 10 #include "chrome/common/render_messages.h" |
(...skipping 1472 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1483 LogParam(p.source_url, l); | 1483 LogParam(p.source_url, l); |
1484 l->append(", "); | 1484 l->append(", "); |
1485 LogParam(p.request_id, l); | 1485 LogParam(p.request_id, l); |
1486 l->append(", "); | 1486 l->append(", "); |
1487 LogParam(p.has_callback, l); | 1487 LogParam(p.has_callback, l); |
1488 l->append(", "); | 1488 l->append(", "); |
1489 LogParam(p.user_gesture, l); | 1489 LogParam(p.user_gesture, l); |
1490 l->append(")"); | 1490 l->append(")"); |
1491 } | 1491 } |
1492 | 1492 |
1493 void ParamTraits<base::FileUtilProxy::Entry>::Write( | |
1494 Message* m, | |
1495 const param_type& p) { | |
1496 WriteParam(m, p.name); | |
1497 WriteParam(m, p.is_directory); | |
1498 } | |
1499 | |
1500 bool ParamTraits<base::FileUtilProxy::Entry>::Read( | |
1501 const Message* m, | |
1502 void** iter, | |
1503 param_type* p) { | |
1504 return | |
1505 ReadParam(m, iter, &p->name) && | |
1506 ReadParam(m, iter, &p->is_directory); | |
1507 } | |
1508 | |
1509 void ParamTraits<base::FileUtilProxy::Entry>::Log( | |
1510 const param_type& p, | |
1511 std::string* l) { | |
1512 l->append("("); | |
1513 LogParam(p.name, l); | |
1514 l->append(", "); | |
1515 LogParam(p.is_directory, l); | |
1516 l->append(")"); | |
1517 } | |
1518 | |
1519 void ParamTraits<ViewHostMsg_AccessibilityNotification_Params>::Write( | 1493 void ParamTraits<ViewHostMsg_AccessibilityNotification_Params>::Write( |
1520 Message* m, | 1494 Message* m, |
1521 const param_type& p) { | 1495 const param_type& p) { |
1522 WriteParam(m, p.notification_type); | 1496 WriteParam(m, p.notification_type); |
1523 WriteParam(m, p.acc_obj); | 1497 WriteParam(m, p.acc_obj); |
1524 } | 1498 } |
1525 | 1499 |
1526 bool ParamTraits<ViewHostMsg_AccessibilityNotification_Params>::Read( | 1500 bool ParamTraits<ViewHostMsg_AccessibilityNotification_Params>::Read( |
1527 const Message* m, | 1501 const Message* m, |
1528 void** iter, | 1502 void** iter, |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1591 l->append(", "); | 1565 l->append(", "); |
1592 LogParam(p.tag_name, l); | 1566 LogParam(p.tag_name, l); |
1593 l->append(", "); | 1567 l->append(", "); |
1594 LogParam(p.parent, l); | 1568 LogParam(p.parent, l); |
1595 l->append(", "); | 1569 l->append(", "); |
1596 LogParam(p.children, l); | 1570 LogParam(p.children, l); |
1597 l->append(")"); | 1571 l->append(")"); |
1598 } | 1572 } |
1599 | 1573 |
1600 } // namespace IPC | 1574 } // namespace IPC |
OLD | NEW |