OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 // Multiply-included message file, hence no include guard. | 5 // Multiply-included message file, hence no include guard. |
6 | 6 |
| 7 #include <stdint.h> |
| 8 |
7 #include "build/build_config.h" | 9 #include "build/build_config.h" |
8 #include "content/child/plugin_param_traits.h" | 10 #include "content/child/plugin_param_traits.h" |
9 #include "content/common/content_export.h" | 11 #include "content/common/content_export.h" |
10 #include "content/common/content_param_traits.h" | 12 #include "content/common/content_param_traits.h" |
11 #include "content/common/cursors/webcursor.h" | 13 #include "content/common/cursors/webcursor.h" |
12 #include "content/public/common/common_param_traits.h" | 14 #include "content/public/common/common_param_traits.h" |
13 #include "ipc/ipc_channel_handle.h" | 15 #include "ipc/ipc_channel_handle.h" |
14 #include "ipc/ipc_message_macros.h" | 16 #include "ipc/ipc_message_macros.h" |
15 #include "ui/gfx/geometry/rect.h" | 17 #include "ui/gfx/geometry/rect.h" |
16 #include "ui/gfx/ipc/gfx_param_traits.h" | 18 #include "ui/gfx/ipc/gfx_param_traits.h" |
(...skipping 14 matching lines...) Expand all Loading... |
31 IPC_STRUCT_MEMBER(std::vector<std::string>, arg_names) | 33 IPC_STRUCT_MEMBER(std::vector<std::string>, arg_names) |
32 IPC_STRUCT_MEMBER(std::vector<std::string>, arg_values) | 34 IPC_STRUCT_MEMBER(std::vector<std::string>, arg_values) |
33 IPC_STRUCT_MEMBER(bool, load_manually) | 35 IPC_STRUCT_MEMBER(bool, load_manually) |
34 IPC_STRUCT_MEMBER(int, host_render_view_routing_id) | 36 IPC_STRUCT_MEMBER(int, host_render_view_routing_id) |
35 IPC_STRUCT_END() | 37 IPC_STRUCT_END() |
36 | 38 |
37 IPC_STRUCT_BEGIN(PluginMsg_DidReceiveResponseParams) | 39 IPC_STRUCT_BEGIN(PluginMsg_DidReceiveResponseParams) |
38 IPC_STRUCT_MEMBER(unsigned long, id) | 40 IPC_STRUCT_MEMBER(unsigned long, id) |
39 IPC_STRUCT_MEMBER(std::string, mime_type) | 41 IPC_STRUCT_MEMBER(std::string, mime_type) |
40 IPC_STRUCT_MEMBER(std::string, headers) | 42 IPC_STRUCT_MEMBER(std::string, headers) |
41 IPC_STRUCT_MEMBER(uint32, expected_length) | 43 IPC_STRUCT_MEMBER(uint32_t, expected_length) |
42 IPC_STRUCT_MEMBER(uint32, last_modified) | 44 IPC_STRUCT_MEMBER(uint32_t, last_modified) |
43 IPC_STRUCT_MEMBER(bool, request_is_seekable) | 45 IPC_STRUCT_MEMBER(bool, request_is_seekable) |
44 IPC_STRUCT_END() | 46 IPC_STRUCT_END() |
45 | 47 |
46 IPC_STRUCT_BEGIN(PluginMsg_FetchURL_Params) | 48 IPC_STRUCT_BEGIN(PluginMsg_FetchURL_Params) |
47 IPC_STRUCT_MEMBER(unsigned long, resource_id) | 49 IPC_STRUCT_MEMBER(unsigned long, resource_id) |
48 IPC_STRUCT_MEMBER(GURL, url) | 50 IPC_STRUCT_MEMBER(GURL, url) |
49 IPC_STRUCT_MEMBER(GURL, first_party_for_cookies) | 51 IPC_STRUCT_MEMBER(GURL, first_party_for_cookies) |
50 IPC_STRUCT_MEMBER(std::string, method) | 52 IPC_STRUCT_MEMBER(std::string, method) |
51 IPC_STRUCT_MEMBER(std::vector<char>, post_data) | 53 IPC_STRUCT_MEMBER(std::vector<char>, post_data) |
52 IPC_STRUCT_MEMBER(GURL, referrer) | 54 IPC_STRUCT_MEMBER(GURL, referrer) |
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
273 // accelerated rendering path. | 275 // accelerated rendering path. |
274 IPC_MESSAGE_ROUTED0(PluginHostMsg_AcceleratedPluginEnabledRendering) | 276 IPC_MESSAGE_ROUTED0(PluginHostMsg_AcceleratedPluginEnabledRendering) |
275 | 277 |
276 // Notifies the renderer process that the plugin allocated a new | 278 // Notifies the renderer process that the plugin allocated a new |
277 // IOSurface into which it is rendering. The renderer process forwards | 279 // IOSurface into which it is rendering. The renderer process forwards |
278 // this IOSurface to the GPU process, causing it to be bound to a | 280 // this IOSurface to the GPU process, causing it to be bound to a |
279 // texture from which the compositor can render. Any previous | 281 // texture from which the compositor can render. Any previous |
280 // IOSurface allocated by this plugin must be implicitly released by | 282 // IOSurface allocated by this plugin must be implicitly released by |
281 // the receipt of this message. | 283 // the receipt of this message. |
282 IPC_MESSAGE_ROUTED3(PluginHostMsg_AcceleratedPluginAllocatedIOSurface, | 284 IPC_MESSAGE_ROUTED3(PluginHostMsg_AcceleratedPluginAllocatedIOSurface, |
283 int32 /* width */, | 285 int32_t /* width */, |
284 int32 /* height */, | 286 int32_t /* height */, |
285 uint32 /* surface_id */) | 287 uint32_t /* surface_id */) |
286 | 288 |
287 // Notifies the renderer process that the plugin produced a new frame | 289 // Notifies the renderer process that the plugin produced a new frame |
288 // of content into its IOSurface, and therefore that the compositor | 290 // of content into its IOSurface, and therefore that the compositor |
289 // needs to redraw. | 291 // needs to redraw. |
290 IPC_MESSAGE_ROUTED0(PluginHostMsg_AcceleratedPluginSwappedIOSurface) | 292 IPC_MESSAGE_ROUTED0(PluginHostMsg_AcceleratedPluginSwappedIOSurface) |
291 #endif | 293 #endif |
292 | 294 |
293 | 295 |
294 //----------------------------------------------------------------------------- | 296 //----------------------------------------------------------------------------- |
295 // NPObject messages | 297 // NPObject messages |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
335 IPC_SYNC_MESSAGE_ROUTED1_2(NPObjectMsg_Construct, | 337 IPC_SYNC_MESSAGE_ROUTED1_2(NPObjectMsg_Construct, |
336 std::vector<content::NPVariant_Param> /* args */, | 338 std::vector<content::NPVariant_Param> /* args */, |
337 content::NPVariant_Param /* result_param */, | 339 content::NPVariant_Param /* result_param */, |
338 bool /* result */) | 340 bool /* result */) |
339 | 341 |
340 IPC_SYNC_MESSAGE_ROUTED2_2(NPObjectMsg_Evaluate, | 342 IPC_SYNC_MESSAGE_ROUTED2_2(NPObjectMsg_Evaluate, |
341 std::string /* script */, | 343 std::string /* script */, |
342 bool /* popups_allowed */, | 344 bool /* popups_allowed */, |
343 content::NPVariant_Param /* result_param */, | 345 content::NPVariant_Param /* result_param */, |
344 bool /* result */) | 346 bool /* result */) |
OLD | NEW |