| 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" |
| 11 #include "chrome/common/resource_response.h" | 11 #include "chrome/common/resource_response.h" |
| 12 #include "chrome/common/speech_input_result.h" | |
| 13 #include "chrome/common/thumbnail_score.h" | 12 #include "chrome/common/thumbnail_score.h" |
| 14 #include "chrome/common/web_apps.h" | 13 #include "chrome/common/web_apps.h" |
| 15 #include "gfx/rect.h" | 14 #include "gfx/rect.h" |
| 16 #include "ipc/ipc_channel_handle.h" | 15 #include "ipc/ipc_channel_handle.h" |
| 17 #include "media/audio/audio_buffers_state.h" | 16 #include "media/audio/audio_buffers_state.h" |
| 18 #include "net/base/upload_data.h" | 17 #include "net/base/upload_data.h" |
| 19 #include "net/http/http_response_headers.h" | 18 #include "net/http/http_response_headers.h" |
| 20 #include "ppapi/c/private/ppb_flash.h" | 19 #include "ppapi/c/private/ppb_flash.h" |
| 21 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCompositionUnderli
ne.h" | 20 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCompositionUnderli
ne.h" |
| 22 #include "third_party/skia/include/core/SkBitmap.h" | 21 #include "third_party/skia/include/core/SkBitmap.h" |
| (...skipping 1190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1213 void ParamTraits<AudioBuffersState>::Log(const param_type& p, std::string* l) { | 1212 void ParamTraits<AudioBuffersState>::Log(const param_type& p, std::string* l) { |
| 1214 l->append("("); | 1213 l->append("("); |
| 1215 LogParam(p.pending_bytes, l); | 1214 LogParam(p.pending_bytes, l); |
| 1216 l->append(", "); | 1215 l->append(", "); |
| 1217 LogParam(p.hardware_delay_bytes, l); | 1216 LogParam(p.hardware_delay_bytes, l); |
| 1218 l->append(", "); | 1217 l->append(", "); |
| 1219 LogParam(p.timestamp, l); | 1218 LogParam(p.timestamp, l); |
| 1220 l->append(")"); | 1219 l->append(")"); |
| 1221 } | 1220 } |
| 1222 | 1221 |
| 1223 void ParamTraits<speech_input::SpeechInputResultItem>::Write( | |
| 1224 Message* m, const param_type& p) { | |
| 1225 WriteParam(m, p.utterance); | |
| 1226 WriteParam(m, p.confidence); | |
| 1227 } | |
| 1228 | |
| 1229 bool ParamTraits<speech_input::SpeechInputResultItem>::Read(const Message* m, | |
| 1230 void** iter, | |
| 1231 param_type* p) { | |
| 1232 return ReadParam(m, iter, &p->utterance) && | |
| 1233 ReadParam(m, iter, &p->confidence); | |
| 1234 } | |
| 1235 | |
| 1236 void ParamTraits<speech_input::SpeechInputResultItem>::Log(const param_type& p, | |
| 1237 std::string* l) { | |
| 1238 l->append("("); | |
| 1239 LogParam(p.utterance, l); | |
| 1240 l->append(":"); | |
| 1241 LogParam(p.confidence, l); | |
| 1242 l->append(")"); | |
| 1243 } | |
| 1244 | |
| 1245 void ParamTraits<PP_Flash_NetAddress>::Write(Message* m, const param_type& p) { | 1222 void ParamTraits<PP_Flash_NetAddress>::Write(Message* m, const param_type& p) { |
| 1246 WriteParam(m, p.size); | 1223 WriteParam(m, p.size); |
| 1247 m->WriteBytes(p.data, p.size); | 1224 m->WriteBytes(p.data, p.size); |
| 1248 } | 1225 } |
| 1249 | 1226 |
| 1250 bool ParamTraits<PP_Flash_NetAddress>::Read(const Message* m, | 1227 bool ParamTraits<PP_Flash_NetAddress>::Read(const Message* m, |
| 1251 void** iter, | 1228 void** iter, |
| 1252 param_type* p) { | 1229 param_type* p) { |
| 1253 uint16 size; | 1230 uint16 size; |
| 1254 if (!ReadParam(m, iter, &size)) | 1231 if (!ReadParam(m, iter, &size)) |
| (...skipping 10 matching lines...) Expand all Loading... |
| 1265 } | 1242 } |
| 1266 | 1243 |
| 1267 void ParamTraits<PP_Flash_NetAddress>::Log(const param_type& p, | 1244 void ParamTraits<PP_Flash_NetAddress>::Log(const param_type& p, |
| 1268 std::string* l) { | 1245 std::string* l) { |
| 1269 l->append("<PP_Flash_NetAddress ("); | 1246 l->append("<PP_Flash_NetAddress ("); |
| 1270 LogParam(p.size, l); | 1247 LogParam(p.size, l); |
| 1271 l->append(" bytes)>"); | 1248 l->append(" bytes)>"); |
| 1272 } | 1249 } |
| 1273 | 1250 |
| 1274 } // namespace IPC | 1251 } // namespace IPC |
| OLD | NEW |