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 1188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1211 void ParamTraits<AudioBuffersState>::Log(const param_type& p, std::string* l) { | 1210 void ParamTraits<AudioBuffersState>::Log(const param_type& p, std::string* l) { |
1212 l->append("("); | 1211 l->append("("); |
1213 LogParam(p.pending_bytes, l); | 1212 LogParam(p.pending_bytes, l); |
1214 l->append(", "); | 1213 l->append(", "); |
1215 LogParam(p.hardware_delay_bytes, l); | 1214 LogParam(p.hardware_delay_bytes, l); |
1216 l->append(", "); | 1215 l->append(", "); |
1217 LogParam(p.timestamp, l); | 1216 LogParam(p.timestamp, l); |
1218 l->append(")"); | 1217 l->append(")"); |
1219 } | 1218 } |
1220 | 1219 |
1221 void ParamTraits<speech_input::SpeechInputResultItem>::Write( | |
1222 Message* m, const param_type& p) { | |
1223 WriteParam(m, p.utterance); | |
1224 WriteParam(m, p.confidence); | |
1225 } | |
1226 | |
1227 bool ParamTraits<speech_input::SpeechInputResultItem>::Read(const Message* m, | |
1228 void** iter, | |
1229 param_type* p) { | |
1230 return ReadParam(m, iter, &p->utterance) && | |
1231 ReadParam(m, iter, &p->confidence); | |
1232 } | |
1233 | |
1234 void ParamTraits<speech_input::SpeechInputResultItem>::Log(const param_type& p, | |
1235 std::string* l) { | |
1236 l->append("("); | |
1237 LogParam(p.utterance, l); | |
1238 l->append(":"); | |
1239 LogParam(p.confidence, l); | |
1240 l->append(")"); | |
1241 } | |
1242 | |
1243 void ParamTraits<PP_Flash_NetAddress>::Write(Message* m, const param_type& p) { | 1220 void ParamTraits<PP_Flash_NetAddress>::Write(Message* m, const param_type& p) { |
1244 WriteParam(m, p.size); | 1221 WriteParam(m, p.size); |
1245 m->WriteBytes(p.data, p.size); | 1222 m->WriteBytes(p.data, p.size); |
1246 } | 1223 } |
1247 | 1224 |
1248 bool ParamTraits<PP_Flash_NetAddress>::Read(const Message* m, | 1225 bool ParamTraits<PP_Flash_NetAddress>::Read(const Message* m, |
1249 void** iter, | 1226 void** iter, |
1250 param_type* p) { | 1227 param_type* p) { |
1251 uint16 size; | 1228 uint16 size; |
1252 if (!ReadParam(m, iter, &size)) | 1229 if (!ReadParam(m, iter, &size)) |
(...skipping 10 matching lines...) Expand all Loading... |
1263 } | 1240 } |
1264 | 1241 |
1265 void ParamTraits<PP_Flash_NetAddress>::Log(const param_type& p, | 1242 void ParamTraits<PP_Flash_NetAddress>::Log(const param_type& p, |
1266 std::string* l) { | 1243 std::string* l) { |
1267 l->append("<PP_Flash_NetAddress ("); | 1244 l->append("<PP_Flash_NetAddress ("); |
1268 LogParam(p.size, l); | 1245 LogParam(p.size, l); |
1269 l->append(" bytes)>"); | 1246 l->append(" bytes)>"); |
1270 } | 1247 } |
1271 | 1248 |
1272 } // namespace IPC | 1249 } // namespace IPC |
OLD | NEW |