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 "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" | 12 #include "chrome/common/speech_input_result.h" |
13 #include "chrome/common/thumbnail_score.h" | 13 #include "chrome/common/thumbnail_score.h" |
14 #include "chrome/common/web_apps.h" | 14 #include "chrome/common/web_apps.h" |
15 #include "gfx/rect.h" | 15 #include "gfx/rect.h" |
16 #include "ipc/ipc_channel_handle.h" | 16 #include "ipc/ipc_channel_handle.h" |
17 #include "media/audio/audio_buffers_state.h" | 17 #include "media/audio/audio_buffers_state.h" |
18 #include "net/base/upload_data.h" | 18 #include "net/base/upload_data.h" |
19 #include "net/http/http_response_headers.h" | 19 #include "net/http/http_response_headers.h" |
20 #include "third_party/WebKit/WebKit/chromium/public/WebCompositionUnderline.h" | 20 #include "third_party/WebKit/WebKit/chromium/public/WebCompositionUnderline.h" |
21 #include "third_party/skia/include/core/SkBitmap.h" | 21 #include "third_party/skia/include/core/SkBitmap.h" |
22 #include "webkit/appcache/appcache_interfaces.h" | 22 #include "webkit/appcache/appcache_interfaces.h" |
23 #include "webkit/blob/blob_data.h" | 23 #include "webkit/blob/blob_data.h" |
24 #include "webkit/glue/form_field.h" | 24 #include "webkit/glue/form_field.h" |
25 #include "webkit/glue/password_form.h" | 25 #include "webkit/glue/password_form.h" |
26 #include "webkit/glue/plugins/webplugin.h" | |
27 #include "webkit/glue/resource_loader_bridge.h" | 26 #include "webkit/glue/resource_loader_bridge.h" |
28 #include "webkit/glue/webaccessibility.h" | 27 #include "webkit/glue/webaccessibility.h" |
29 #include "webkit/glue/webcookie.h" | 28 #include "webkit/glue/webcookie.h" |
30 #include "webkit/glue/webcursor.h" | 29 #include "webkit/glue/webcursor.h" |
31 #include "webkit/glue/webmenuitem.h" | 30 #include "webkit/glue/webmenuitem.h" |
| 31 #include "webkit/plugins/npapi/webplugin.h" |
32 | 32 |
33 #if defined(OS_MACOSX) | 33 #if defined(OS_MACOSX) |
34 #include "chrome/common/font_descriptor_mac.h" | 34 #include "chrome/common/font_descriptor_mac.h" |
35 #endif | 35 #endif |
36 | 36 |
37 #define IPC_MESSAGE_IMPL | 37 #define IPC_MESSAGE_IMPL |
38 #include "chrome/common/render_messages.h" | 38 #include "chrome/common/render_messages.h" |
39 | 39 |
40 namespace IPC { | 40 namespace IPC { |
41 | 41 |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 ReadParam(m, iter, &p->security_info) && | 189 ReadParam(m, iter, &p->security_info) && |
190 ReadParam(m, iter, &p->frame_charset) && | 190 ReadParam(m, iter, &p->frame_charset) && |
191 ReadParam(m, iter, &p->custom_items); | 191 ReadParam(m, iter, &p->custom_items); |
192 } | 192 } |
193 | 193 |
194 void ParamTraits<ContextMenuParams>::Log(const param_type& p, | 194 void ParamTraits<ContextMenuParams>::Log(const param_type& p, |
195 std::string* l) { | 195 std::string* l) { |
196 l->append("<ContextMenuParams>"); | 196 l->append("<ContextMenuParams>"); |
197 } | 197 } |
198 | 198 |
199 void ParamTraits<webkit_glue::WebPluginGeometry>::Write(Message* m, | 199 void ParamTraits<webkit::npapi::WebPluginGeometry>::Write(Message* m, |
200 const param_type& p) { | 200 const param_type& p) { |
201 WriteParam(m, p.window); | 201 WriteParam(m, p.window); |
202 WriteParam(m, p.window_rect); | 202 WriteParam(m, p.window_rect); |
203 WriteParam(m, p.clip_rect); | 203 WriteParam(m, p.clip_rect); |
204 WriteParam(m, p.cutout_rects); | 204 WriteParam(m, p.cutout_rects); |
205 WriteParam(m, p.rects_valid); | 205 WriteParam(m, p.rects_valid); |
206 WriteParam(m, p.visible); | 206 WriteParam(m, p.visible); |
207 } | 207 } |
208 | 208 |
209 bool ParamTraits<webkit_glue::WebPluginGeometry>::Read( | 209 bool ParamTraits<webkit::npapi::WebPluginGeometry>::Read( |
210 const Message* m, void** iter, param_type* p) { | 210 const Message* m, void** iter, param_type* p) { |
211 return | 211 return |
212 ReadParam(m, iter, &p->window) && | 212 ReadParam(m, iter, &p->window) && |
213 ReadParam(m, iter, &p->window_rect) && | 213 ReadParam(m, iter, &p->window_rect) && |
214 ReadParam(m, iter, &p->clip_rect) && | 214 ReadParam(m, iter, &p->clip_rect) && |
215 ReadParam(m, iter, &p->cutout_rects) && | 215 ReadParam(m, iter, &p->cutout_rects) && |
216 ReadParam(m, iter, &p->rects_valid) && | 216 ReadParam(m, iter, &p->rects_valid) && |
217 ReadParam(m, iter, &p->visible); | 217 ReadParam(m, iter, &p->visible); |
218 } | 218 } |
219 | 219 |
220 void ParamTraits<webkit_glue::WebPluginGeometry>::Log(const param_type& p, | 220 void ParamTraits<webkit::npapi::WebPluginGeometry>::Log(const param_type& p, |
221 std::string* l) { | 221 std::string* l) { |
222 l->append("("); | 222 l->append("("); |
223 LogParam(p.window, l); | 223 LogParam(p.window, l); |
224 l->append(", "); | 224 l->append(", "); |
225 LogParam(p.window_rect, l); | 225 LogParam(p.window_rect, l); |
226 l->append(", "); | 226 l->append(", "); |
227 LogParam(p.clip_rect, l); | 227 LogParam(p.clip_rect, l); |
228 l->append(", "); | 228 l->append(", "); |
229 LogParam(p.cutout_rects, l); | 229 LogParam(p.cutout_rects, l); |
230 l->append(", "); | 230 l->append(", "); |
231 LogParam(p.rects_valid, l); | 231 LogParam(p.rects_valid, l); |
232 l->append(", "); | 232 l->append(", "); |
233 LogParam(p.visible, l); | 233 LogParam(p.visible, l); |
234 l->append(")"); | 234 l->append(")"); |
235 } | 235 } |
236 | 236 |
237 void ParamTraits<WebPluginMimeType>::Write(Message* m, const param_type& p) { | 237 void ParamTraits<webkit::npapi::WebPluginMimeType>::Write(Message* m, |
| 238 const param_type& p) { |
238 WriteParam(m, p.mime_type); | 239 WriteParam(m, p.mime_type); |
239 WriteParam(m, p.file_extensions); | 240 WriteParam(m, p.file_extensions); |
240 WriteParam(m, p.description); | 241 WriteParam(m, p.description); |
241 } | 242 } |
242 | 243 |
243 bool ParamTraits<WebPluginMimeType>::Read(const Message* m, void** iter, | 244 bool ParamTraits<webkit::npapi::WebPluginMimeType>::Read(const Message* m, |
244 param_type* r) { | 245 void** iter, |
| 246 param_type* r) { |
245 return | 247 return |
246 ReadParam(m, iter, &r->mime_type) && | 248 ReadParam(m, iter, &r->mime_type) && |
247 ReadParam(m, iter, &r->file_extensions) && | 249 ReadParam(m, iter, &r->file_extensions) && |
248 ReadParam(m, iter, &r->description); | 250 ReadParam(m, iter, &r->description); |
249 } | 251 } |
250 | 252 |
251 void ParamTraits<WebPluginMimeType>::Log(const param_type& p, std::string* l) { | 253 void ParamTraits<webkit::npapi::WebPluginMimeType>::Log(const param_type& p, |
| 254 std::string* l) { |
252 l->append("("); | 255 l->append("("); |
253 LogParam(p.mime_type, l); | 256 LogParam(p.mime_type, l); |
254 l->append(", "); | 257 l->append(", "); |
255 LogParam(p.file_extensions, l); | 258 LogParam(p.file_extensions, l); |
256 l->append(", "); | 259 l->append(", "); |
257 LogParam(p.description, l); | 260 LogParam(p.description, l); |
258 l->append(")"); | 261 l->append(")"); |
259 } | 262 } |
260 | 263 |
261 void ParamTraits<WebPluginInfo>::Write(Message* m, const param_type& p) { | 264 void ParamTraits<webkit::npapi::WebPluginInfo>::Write(Message* m, |
| 265 const param_type& p) { |
262 WriteParam(m, p.name); | 266 WriteParam(m, p.name); |
263 WriteParam(m, p.path); | 267 WriteParam(m, p.path); |
264 WriteParam(m, p.version); | 268 WriteParam(m, p.version); |
265 WriteParam(m, p.desc); | 269 WriteParam(m, p.desc); |
266 WriteParam(m, p.mime_types); | 270 WriteParam(m, p.mime_types); |
267 WriteParam(m, p.enabled); | 271 WriteParam(m, p.enabled); |
268 } | 272 } |
269 | 273 |
270 bool ParamTraits<WebPluginInfo>::Read(const Message* m, void** iter, | 274 bool ParamTraits<webkit::npapi::WebPluginInfo>::Read(const Message* m, |
271 param_type* r) { | 275 void** iter, |
| 276 param_type* r) { |
272 return | 277 return |
273 ReadParam(m, iter, &r->name) && | 278 ReadParam(m, iter, &r->name) && |
274 ReadParam(m, iter, &r->path) && | 279 ReadParam(m, iter, &r->path) && |
275 ReadParam(m, iter, &r->version) && | 280 ReadParam(m, iter, &r->version) && |
276 ReadParam(m, iter, &r->desc) && | 281 ReadParam(m, iter, &r->desc) && |
277 ReadParam(m, iter, &r->mime_types) && | 282 ReadParam(m, iter, &r->mime_types) && |
278 ReadParam(m, iter, &r->enabled); | 283 ReadParam(m, iter, &r->enabled); |
279 } | 284 } |
280 | 285 |
281 void ParamTraits<WebPluginInfo>::Log(const param_type& p, std::string* l) { | 286 void ParamTraits<webkit::npapi::WebPluginInfo>::Log(const param_type& p, |
| 287 std::string* l) { |
282 l->append("("); | 288 l->append("("); |
283 LogParam(p.name, l); | 289 LogParam(p.name, l); |
284 l->append(", "); | 290 l->append(", "); |
285 l->append(", "); | 291 l->append(", "); |
286 LogParam(p.path, l); | 292 LogParam(p.path, l); |
287 l->append(", "); | 293 l->append(", "); |
288 LogParam(p.version, l); | 294 LogParam(p.version, l); |
289 l->append(", "); | 295 l->append(", "); |
290 LogParam(p.desc, l); | 296 LogParam(p.desc, l); |
291 l->append(", "); | 297 l->append(", "); |
(...skipping 932 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1224 void ParamTraits<speech_input::SpeechInputResultItem>::Log(const param_type& p, | 1230 void ParamTraits<speech_input::SpeechInputResultItem>::Log(const param_type& p, |
1225 std::string* l) { | 1231 std::string* l) { |
1226 l->append("("); | 1232 l->append("("); |
1227 LogParam(p.utterance, l); | 1233 LogParam(p.utterance, l); |
1228 l->append(":"); | 1234 l->append(":"); |
1229 LogParam(p.confidence, l); | 1235 LogParam(p.confidence, l); |
1230 l->append(")"); | 1236 l->append(")"); |
1231 } | 1237 } |
1232 | 1238 |
1233 } // namespace IPC | 1239 } // namespace IPC |
OLD | NEW |