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.h" | 5 #include "chrome/common/render_messages.h" |
6 | 6 |
7 #include "base/values.h" | 7 #include "base/values.h" |
8 #include "chrome/common/edit_command.h" | 8 #include "chrome/common/edit_command.h" |
9 #include "chrome/common/extensions/extension_extent.h" | 9 #include "chrome/common/extensions/extension_extent.h" |
10 #include "chrome/common/extensions/url_pattern.h" | 10 #include "chrome/common/extensions/url_pattern.h" |
11 #include "chrome/common/gpu_param_traits.h" | 11 #include "chrome/common/gpu_param_traits.h" |
12 #include "chrome/common/indexed_db_key.h" | 12 #include "chrome/common/indexed_db_key.h" |
13 #include "chrome/common/indexed_db_param_traits.h" | 13 #include "chrome/common/indexed_db_param_traits.h" |
14 #include "chrome/common/render_messages_params.h" | 14 #include "chrome/common/render_messages_params.h" |
15 #include "chrome/common/resource_response.h" | 15 #include "chrome/common/resource_response.h" |
16 #include "chrome/common/serialized_script_value.h" | 16 #include "chrome/common/serialized_script_value.h" |
| 17 #include "chrome/common/speech_input_result.h" |
17 #include "chrome/common/thumbnail_score.h" | 18 #include "chrome/common/thumbnail_score.h" |
18 #include "gfx/rect.h" | 19 #include "gfx/rect.h" |
19 #include "ipc/ipc_channel_handle.h" | 20 #include "ipc/ipc_channel_handle.h" |
20 #include "media/audio/audio_buffers_state.h" | 21 #include "media/audio/audio_buffers_state.h" |
21 #include "net/base/upload_data.h" | 22 #include "net/base/upload_data.h" |
22 #include "net/http/http_response_headers.h" | 23 #include "net/http/http_response_headers.h" |
23 #include "third_party/WebKit/WebKit/chromium/public/WebCompositionUnderline.h" | 24 #include "third_party/WebKit/WebKit/chromium/public/WebCompositionUnderline.h" |
24 #include "third_party/WebKit/WebKit/chromium/public/WebFindOptions.h" | 25 #include "third_party/WebKit/WebKit/chromium/public/WebFindOptions.h" |
25 #include "third_party/WebKit/WebKit/chromium/public/WebMediaPlayerAction.h" | 26 #include "third_party/WebKit/WebKit/chromium/public/WebMediaPlayerAction.h" |
26 #include "third_party/WebKit/WebKit/chromium/public/WebScreenInfo.h" | 27 #include "third_party/WebKit/WebKit/chromium/public/WebScreenInfo.h" |
(...skipping 1195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1222 } | 1223 } |
1223 | 1224 |
1224 void ParamTraits<PepperDirEntry>::Log(const param_type& p, std::string* l) { | 1225 void ParamTraits<PepperDirEntry>::Log(const param_type& p, std::string* l) { |
1225 l->append("("); | 1226 l->append("("); |
1226 LogParam(p.name, l); | 1227 LogParam(p.name, l); |
1227 l->append(", "); | 1228 l->append(", "); |
1228 LogParam(p.is_dir, l); | 1229 LogParam(p.is_dir, l); |
1229 l->append(")"); | 1230 l->append(")"); |
1230 } | 1231 } |
1231 | 1232 |
| 1233 void ParamTraits<speech_input::SpeechInputResultItem>::Write( |
| 1234 Message* m, const param_type& p) { |
| 1235 WriteParam(m, p.utterance); |
| 1236 WriteParam(m, p.confidence); |
| 1237 } |
| 1238 |
| 1239 bool ParamTraits<speech_input::SpeechInputResultItem>::Read(const Message* m, |
| 1240 void** iter, |
| 1241 param_type* p) { |
| 1242 return ReadParam(m, iter, &p->utterance) && |
| 1243 ReadParam(m, iter, &p->confidence); |
| 1244 } |
| 1245 |
| 1246 void ParamTraits<speech_input::SpeechInputResultItem>::Log(const param_type& p, |
| 1247 std::string* l) { |
| 1248 l->append("("); |
| 1249 LogParam(p.utterance, l); |
| 1250 l->append(":"); |
| 1251 LogParam(p.confidence, l); |
| 1252 l->append(")"); |
| 1253 } |
| 1254 |
1232 } // namespace IPC | 1255 } // namespace IPC |
OLD | NEW |