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 #include "base/values.h" | 5 #include "base/values.h" |
6 #include "chrome/common/edit_command.h" | 6 #include "chrome/common/edit_command.h" |
7 #include "chrome/common/extensions/extension_extent.h" | 7 #include "chrome/common/extensions/extension_extent.h" |
8 #include "chrome/common/extensions/url_pattern.h" | 8 #include "chrome/common/extensions/url_pattern.h" |
9 #include "chrome/common/gpu_param_traits.h" | 9 #include "chrome/common/gpu_param_traits.h" |
10 #include "chrome/common/render_messages_params.h" | 10 #include "chrome/common/render_messages_params.h" |
(...skipping 1164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1175 void ParamTraits<AudioBuffersState>::Log(const param_type& p, std::string* l) { | 1175 void ParamTraits<AudioBuffersState>::Log(const param_type& p, std::string* l) { |
1176 l->append("("); | 1176 l->append("("); |
1177 LogParam(p.pending_bytes, l); | 1177 LogParam(p.pending_bytes, l); |
1178 l->append(", "); | 1178 l->append(", "); |
1179 LogParam(p.hardware_delay_bytes, l); | 1179 LogParam(p.hardware_delay_bytes, l); |
1180 l->append(", "); | 1180 l->append(", "); |
1181 LogParam(p.timestamp, l); | 1181 LogParam(p.timestamp, l); |
1182 l->append(")"); | 1182 l->append(")"); |
1183 } | 1183 } |
1184 | 1184 |
| 1185 void ParamTraits<P2PSocketAddress>::Write(Message* m, const param_type& p) { |
| 1186 WriteParam(m, p.address); |
| 1187 WriteParam(m, p.port); |
| 1188 } |
| 1189 |
| 1190 bool ParamTraits<P2PSocketAddress>::Read(const Message* m, |
| 1191 void** iter, |
| 1192 param_type* p) { |
| 1193 return |
| 1194 ReadParam(m, iter, &p->address) && |
| 1195 ReadParam(m, iter, &p->port); |
| 1196 } |
| 1197 |
| 1198 void ParamTraits<P2PSocketAddress>::Log(const param_type& p, std::string* l) { |
| 1199 l->append("("); |
| 1200 LogParam(p.address, l); |
| 1201 l->append(", "); |
| 1202 LogParam(p.port, l); |
| 1203 l->append(")"); |
| 1204 } |
| 1205 |
1185 } // namespace IPC | 1206 } // namespace IPC |
OLD | NEW |