| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // Message definition file, included multiple times, hence no include guard. | 5 // Message definition file, included multiple times, hence no include guard. |
| 6 | 6 |
| 7 #include "content/common/content_export.h" | 7 #include "content/common/content_export.h" |
| 8 #include "ipc/ipc_message_macros.h" | 8 #include "ipc/ipc_message_macros.h" |
| 9 #include "ipc/ipc_message_utils.h" | 9 #include "ipc/ipc_message_utils.h" |
| 10 #include "ipc/param_traits_macros.h" | 10 #include "ipc/param_traits_macros.h" |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 IPC_STRUCT_TRAITS_MEMBER(unserialized_data) | 30 IPC_STRUCT_TRAITS_MEMBER(unserialized_data) |
| 31 IPC_STRUCT_TRAITS_MEMBER(message_port_ids) | 31 IPC_STRUCT_TRAITS_MEMBER(message_port_ids) |
| 32 IPC_STRUCT_TRAITS_MEMBER(blob_file) | 32 IPC_STRUCT_TRAITS_MEMBER(blob_file) |
| 33 IPC_STRUCT_TRAITS_MEMBER(blob_length) | 33 IPC_STRUCT_TRAITS_MEMBER(blob_length) |
| 34 IPC_STRUCT_TRAITS_MEMBER(root_path) | 34 IPC_STRUCT_TRAITS_MEMBER(root_path) |
| 35 IPC_STRUCT_TRAITS_MEMBER(filesystem_id) | 35 IPC_STRUCT_TRAITS_MEMBER(filesystem_id) |
| 36 IPC_STRUCT_TRAITS_MEMBER(data_type) | 36 IPC_STRUCT_TRAITS_MEMBER(data_type) |
| 37 IPC_STRUCT_TRAITS_END() | 37 IPC_STRUCT_TRAITS_END() |
| 38 | 38 |
| 39 IPC_STRUCT_TRAITS_BEGIN(webkit_glue::WebIntentServiceData) | 39 IPC_STRUCT_TRAITS_BEGIN(webkit_glue::WebIntentServiceData) |
| 40 IPC_STRUCT_TRAITS_MEMBER(service_url) | |
| 41 IPC_STRUCT_TRAITS_MEMBER(action) | 40 IPC_STRUCT_TRAITS_MEMBER(action) |
| 42 IPC_STRUCT_TRAITS_MEMBER(type) | 41 IPC_STRUCT_TRAITS_MEMBER(type) |
| 42 IPC_STRUCT_TRAITS_MEMBER(scheme) |
| 43 IPC_STRUCT_TRAITS_MEMBER(service_url) |
| 43 IPC_STRUCT_TRAITS_MEMBER(title) | 44 IPC_STRUCT_TRAITS_MEMBER(title) |
| 44 IPC_STRUCT_TRAITS_MEMBER(disposition) | 45 IPC_STRUCT_TRAITS_MEMBER(disposition) |
| 45 IPC_STRUCT_TRAITS_END() | 46 IPC_STRUCT_TRAITS_END() |
| 46 | 47 |
| 47 // Set the intent data to be set on the service page. | 48 // Set the intent data to be set on the service page. |
| 48 IPC_MESSAGE_ROUTED1(IntentsMsg_SetWebIntentData, | 49 IPC_MESSAGE_ROUTED1(IntentsMsg_SetWebIntentData, |
| 49 webkit_glue::WebIntentData) | 50 webkit_glue::WebIntentData) |
| 50 | 51 |
| 51 // Send the service's reply to the client page. | 52 // Send the service's reply to the client page. |
| 52 IPC_MESSAGE_ROUTED3(IntentsMsg_WebIntentReply, | 53 IPC_MESSAGE_ROUTED3(IntentsMsg_WebIntentReply, |
| 53 webkit_glue::WebIntentReplyType /* reply type */, | 54 webkit_glue::WebIntentReplyType /* reply type */, |
| 54 string16 /* payload data */, | 55 string16 /* payload data */, |
| 55 int /* intent ID */) | 56 int /* intent ID */) |
| 56 | 57 |
| 57 // Notify the container that the service has replied to the client page. | 58 // Notify the container that the service has replied to the client page. |
| 58 IPC_MESSAGE_ROUTED2(IntentsHostMsg_WebIntentReply, | 59 IPC_MESSAGE_ROUTED2(IntentsHostMsg_WebIntentReply, |
| 59 webkit_glue::WebIntentReplyType /* reply type */, | 60 webkit_glue::WebIntentReplyType /* reply type */, |
| 60 string16 /* payload data */) | 61 string16 /* payload data */) |
| 61 | 62 |
| 62 // Route the startActivity Intents call from a page to the service picker. | 63 // Route the startActivity Intents call from a page to the service picker. |
| 63 IPC_MESSAGE_ROUTED2(IntentsHostMsg_WebIntentDispatch, | 64 IPC_MESSAGE_ROUTED2(IntentsHostMsg_WebIntentDispatch, |
| 64 webkit_glue::WebIntentData, | 65 webkit_glue::WebIntentData, |
| 65 int /* intent ID */) | 66 int /* intent ID */) |
| 66 | 67 |
| 67 // Register a new service for Intents with the given action and type filter. | 68 // Register a new service for Intents with the given action and type filter. |
| 68 IPC_MESSAGE_ROUTED2(IntentsHostMsg_RegisterIntentService, | 69 IPC_MESSAGE_ROUTED2(IntentsHostMsg_RegisterIntentService, |
| 69 webkit_glue::WebIntentServiceData, | 70 webkit_glue::WebIntentServiceData, |
| 70 bool /* user_gesture */) | 71 bool /* user_gesture */) |
| OLD | NEW |