| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 // Message definition file, included multiple times, hence no include guard. | |
| 6 | |
| 7 #include "content/common/content_export.h" | |
| 8 #include "ipc/ipc_message_macros.h" | |
| 9 #include "ipc/ipc_message_utils.h" | |
| 10 #include "ipc/param_traits_macros.h" | |
| 11 #include "webkit/glue/web_intent_data.h" | |
| 12 #include "webkit/glue/web_intent_reply_data.h" | |
| 13 #include "webkit/glue/web_intent_service_data.h" | |
| 14 | |
| 15 #undef IPC_MESSAGE_EXPORT | |
| 16 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT | |
| 17 #define IPC_MESSAGE_START IntentsMsgStart | |
| 18 | |
| 19 IPC_ENUM_TRAITS(webkit_glue::WebIntentReplyType) | |
| 20 IPC_ENUM_TRAITS(webkit_glue::WebIntentData::DataType) | |
| 21 IPC_ENUM_TRAITS(webkit_glue::WebIntentServiceData::Disposition) | |
| 22 | |
| 23 #if defined(ENABLE_WEB_INTENTS) | |
| 24 | |
| 25 IPC_STRUCT_TRAITS_BEGIN(webkit_glue::WebIntentData) | |
| 26 IPC_STRUCT_TRAITS_MEMBER(action) | |
| 27 IPC_STRUCT_TRAITS_MEMBER(type) | |
| 28 IPC_STRUCT_TRAITS_MEMBER(data) | |
| 29 IPC_STRUCT_TRAITS_MEMBER(extra_data) | |
| 30 IPC_STRUCT_TRAITS_MEMBER(service) | |
| 31 IPC_STRUCT_TRAITS_MEMBER(suggestions) | |
| 32 IPC_STRUCT_TRAITS_MEMBER(unserialized_data) | |
| 33 IPC_STRUCT_TRAITS_MEMBER(message_port_ids) | |
| 34 IPC_STRUCT_TRAITS_MEMBER(blob_file) | |
| 35 IPC_STRUCT_TRAITS_MEMBER(blob_length) | |
| 36 IPC_STRUCT_TRAITS_MEMBER(mime_data) | |
| 37 IPC_STRUCT_TRAITS_MEMBER(root_name) | |
| 38 IPC_STRUCT_TRAITS_MEMBER(filesystem_id) | |
| 39 IPC_STRUCT_TRAITS_MEMBER(data_type) | |
| 40 IPC_STRUCT_TRAITS_END() | |
| 41 | |
| 42 IPC_STRUCT_TRAITS_BEGIN(webkit_glue::WebIntentReply) | |
| 43 IPC_STRUCT_TRAITS_MEMBER(type) | |
| 44 IPC_STRUCT_TRAITS_MEMBER(data) | |
| 45 IPC_STRUCT_TRAITS_MEMBER(data_file) | |
| 46 IPC_STRUCT_TRAITS_MEMBER(data_file_size) | |
| 47 IPC_STRUCT_TRAITS_END() | |
| 48 | |
| 49 IPC_STRUCT_TRAITS_BEGIN(webkit_glue::WebIntentServiceData) | |
| 50 IPC_STRUCT_TRAITS_MEMBER(action) | |
| 51 IPC_STRUCT_TRAITS_MEMBER(type) | |
| 52 IPC_STRUCT_TRAITS_MEMBER(scheme) | |
| 53 IPC_STRUCT_TRAITS_MEMBER(service_url) | |
| 54 IPC_STRUCT_TRAITS_MEMBER(title) | |
| 55 IPC_STRUCT_TRAITS_MEMBER(disposition) | |
| 56 IPC_STRUCT_TRAITS_END() | |
| 57 | |
| 58 // Set the intent data to be set on the service page. | |
| 59 IPC_MESSAGE_ROUTED1(IntentsMsg_SetWebIntentData, | |
| 60 webkit_glue::WebIntentData) | |
| 61 | |
| 62 // Send the service's reply to the client page. | |
| 63 IPC_MESSAGE_ROUTED2(IntentsMsg_WebIntentReply, | |
| 64 webkit_glue::WebIntentReply, /* reply */ | |
| 65 int /* intent ID */) | |
| 66 | |
| 67 // Notify the container that the service has replied to the client page. | |
| 68 IPC_MESSAGE_ROUTED1(IntentsHostMsg_WebIntentReply, | |
| 69 webkit_glue::WebIntentReply /* reply */) | |
| 70 | |
| 71 // Route the startActivity Intents call from a page to the service picker. | |
| 72 IPC_MESSAGE_ROUTED2(IntentsHostMsg_WebIntentDispatch, | |
| 73 webkit_glue::WebIntentData, | |
| 74 int /* intent ID */) | |
| 75 | |
| 76 // Register a new service for Intents with the given action and type filter. | |
| 77 IPC_MESSAGE_ROUTED2(IntentsHostMsg_RegisterIntentService, | |
| 78 webkit_glue::WebIntentServiceData, | |
| 79 bool /* user_gesture */) | |
| 80 | |
| 81 #endif | |
| OLD | NEW |