| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 // Get basic type definitions. | 5 // Get basic type definitions. |
| 6 #define IPC_MESSAGE_IMPL | 6 #define IPC_MESSAGE_IMPL |
| 7 #include "chrome/common/render_messages.h" | 7 #include "chrome/common/render_messages.h" |
| 8 #include "chrome/common/common_param_traits.h" | 8 #include "chrome/common/common_param_traits.h" |
| 9 | 9 |
| 10 // Generate constructors. | 10 // Generate constructors. |
| (...skipping 696 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 707 LogParam(p.attributes, l); | 707 LogParam(p.attributes, l); |
| 708 l->append(", "); | 708 l->append(", "); |
| 709 LogParam(p.children, l); | 709 LogParam(p.children, l); |
| 710 l->append(", "); | 710 l->append(", "); |
| 711 LogParam(p.html_attributes, l); | 711 LogParam(p.html_attributes, l); |
| 712 l->append(", "); | 712 l->append(", "); |
| 713 LogParam(p.indirect_child_ids, l); | 713 LogParam(p.indirect_child_ids, l); |
| 714 l->append(")"); | 714 l->append(")"); |
| 715 } | 715 } |
| 716 | 716 |
| 717 void ParamTraits<AudioBuffersState>::Write(Message* m, const param_type& p) { | |
| 718 WriteParam(m, p.pending_bytes); | |
| 719 WriteParam(m, p.hardware_delay_bytes); | |
| 720 WriteParam(m, p.timestamp); | |
| 721 } | |
| 722 | |
| 723 bool ParamTraits<AudioBuffersState>::Read(const Message* m, | |
| 724 void** iter, | |
| 725 param_type* p) { | |
| 726 return | |
| 727 ReadParam(m, iter, &p->pending_bytes) && | |
| 728 ReadParam(m, iter, &p->hardware_delay_bytes) && | |
| 729 ReadParam(m, iter, &p->timestamp); | |
| 730 } | |
| 731 | |
| 732 void ParamTraits<AudioBuffersState>::Log(const param_type& p, std::string* l) { | |
| 733 l->append("("); | |
| 734 LogParam(p.pending_bytes, l); | |
| 735 l->append(", "); | |
| 736 LogParam(p.hardware_delay_bytes, l); | |
| 737 l->append(", "); | |
| 738 LogParam(p.timestamp, l); | |
| 739 l->append(")"); | |
| 740 } | |
| 741 | |
| 742 } // namespace IPC | 717 } // namespace IPC |
| OLD | NEW |