Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(548)

Side by Side Diff: content/common/intents_messages.h

Issue 9651020: Pass content-type resources to web intents. Goes through download, then invokes the p… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Move dispatch logic client-side. Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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"
11 #include "webkit/glue/web_intent_data.h" 11 #include "webkit/glue/web_intent_data.h"
12 #include "webkit/glue/web_intent_reply_data.h" 12 #include "webkit/glue/web_intent_reply_data.h"
13 13
14 #undef IPC_MESSAGE_EXPORT 14 #undef IPC_MESSAGE_EXPORT
15 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT 15 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT
16 #define IPC_MESSAGE_START IntentsMsgStart 16 #define IPC_MESSAGE_START IntentsMsgStart
17 17
18 IPC_ENUM_TRAITS(webkit_glue::WebIntentReplyType) 18 IPC_ENUM_TRAITS(webkit_glue::WebIntentReplyType)
19 19
20 IPC_STRUCT_TRAITS_BEGIN(webkit_glue::WebIntentData) 20 IPC_STRUCT_TRAITS_BEGIN(webkit_glue::WebIntentData)
21 IPC_STRUCT_TRAITS_MEMBER(action) 21 IPC_STRUCT_TRAITS_MEMBER(action)
22 IPC_STRUCT_TRAITS_MEMBER(type) 22 IPC_STRUCT_TRAITS_MEMBER(type)
23 IPC_STRUCT_TRAITS_MEMBER(data) 23 IPC_STRUCT_TRAITS_MEMBER(data)
24 IPC_STRUCT_TRAITS_MEMBER(extra_data)
25 IPC_STRUCT_TRAITS_MEMBER(unserialized_data)
26 IPC_STRUCT_TRAITS_MEMBER(blob_file)
27 IPC_STRUCT_TRAITS_MEMBER(blob_length)
28 IPC_STRUCT_TRAITS_MEMBER(data_type)
24 IPC_STRUCT_TRAITS_END() 29 IPC_STRUCT_TRAITS_END()
25 30
26 // Set the intent data to be set on the service page. 31 // Set the intent data to be set on the service page.
27 IPC_MESSAGE_ROUTED1(IntentsMsg_SetWebIntentData, 32 IPC_MESSAGE_ROUTED1(IntentsMsg_SetWebIntentData,
28 webkit_glue::WebIntentData) 33 webkit_glue::WebIntentData)
29 34
30 // Send the service's reply to the client page. 35 // Send the service's reply to the client page.
31 IPC_MESSAGE_ROUTED3(IntentsMsg_WebIntentReply, 36 IPC_MESSAGE_ROUTED3(IntentsMsg_WebIntentReply,
32 webkit_glue::WebIntentReplyType /* reply type */, 37 webkit_glue::WebIntentReplyType /* reply type */,
33 string16 /* payload data */, 38 string16 /* payload data */,
34 int /* intent ID */) 39 int /* intent ID */)
35 40
36 // Notify the container that the service has replied to the client page. 41 // Notify the container that the service has replied to the client page.
37 IPC_MESSAGE_ROUTED2(IntentsHostMsg_WebIntentReply, 42 IPC_MESSAGE_ROUTED2(IntentsHostMsg_WebIntentReply,
38 webkit_glue::WebIntentReplyType /* reply type */, 43 webkit_glue::WebIntentReplyType /* reply type */,
39 string16 /* payload data */) 44 string16 /* payload data */)
40 45
41 // Route the startActivity Intents call from a page to the service picker. 46 // Route the startActivity Intents call from a page to the service picker.
42 IPC_MESSAGE_ROUTED2(IntentsHostMsg_WebIntentDispatch, 47 IPC_MESSAGE_ROUTED2(IntentsHostMsg_WebIntentDispatch,
43 webkit_glue::WebIntentData, 48 webkit_glue::WebIntentData,
44 int /* intent ID */) 49 int /* intent ID */)
45 50
46 // Register a new service for Intents with the given action and type filter. 51 // Register a new service for Intents with the given action and type filter.
47 IPC_MESSAGE_ROUTED5(IntentsHostMsg_RegisterIntentService, 52 IPC_MESSAGE_ROUTED5(IntentsHostMsg_RegisterIntentService,
48 string16 /* action */, 53 string16 /* action */,
49 string16 /* type */, 54 string16 /* type */,
50 string16 /* href */, 55 string16 /* href */,
51 string16 /* title */, 56 string16 /* title */,
52 string16 /* disposition */) 57 string16 /* disposition */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698