OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 // IPC messages for injected Java objects. See JavaBridgeDispatcher for details. | 5 // IPC messages for injected Java objects. See JavaBridgeDispatcher for details. |
6 | 6 |
7 // Multiply-included message file, hence no include guard. | 7 // Multiply-included message file, hence no include guard. |
8 | 8 |
9 #if defined(ENABLE_JAVA_BRIDGE) | 9 #if defined(ENABLE_JAVA_BRIDGE) |
10 | 10 |
11 #include "content/common/plugin_param_traits.h" | 11 #include "content/common_child/plugin_param_traits.h" |
12 #include "ipc/ipc_channel_handle.h" | 12 #include "ipc/ipc_channel_handle.h" |
13 #include "ipc/ipc_message_macros.h" | 13 #include "ipc/ipc_message_macros.h" |
14 | 14 |
15 #define IPC_MESSAGE_START JavaBridgeMsgStart | 15 #define IPC_MESSAGE_START JavaBridgeMsgStart |
16 | 16 |
17 // Messages for handling Java objects injected into JavaScript ----------------- | 17 // Messages for handling Java objects injected into JavaScript ----------------- |
18 | 18 |
19 // Sent from browser to renderer to initialize the Java Bridge. | 19 // Sent from browser to renderer to initialize the Java Bridge. |
20 IPC_MESSAGE_ROUTED0(JavaBridgeMsg_Init) | 20 IPC_MESSAGE_ROUTED0(JavaBridgeMsg_Init) |
21 | 21 |
22 // Sent from browser to renderer to add a Java object with the given name. | 22 // Sent from browser to renderer to add a Java object with the given name. |
23 IPC_MESSAGE_ROUTED2(JavaBridgeMsg_AddNamedObject, | 23 IPC_MESSAGE_ROUTED2(JavaBridgeMsg_AddNamedObject, |
24 string16 /* name */, | 24 string16 /* name */, |
25 content::NPVariant_Param) /* object */ | 25 content::NPVariant_Param) /* object */ |
26 | 26 |
27 // Sent from browser to renderer to remove a Java object with the given name. | 27 // Sent from browser to renderer to remove a Java object with the given name. |
28 IPC_MESSAGE_ROUTED1(JavaBridgeMsg_RemoveNamedObject, | 28 IPC_MESSAGE_ROUTED1(JavaBridgeMsg_RemoveNamedObject, |
29 string16 /* name */) | 29 string16 /* name */) |
30 | 30 |
31 // Sent from renderer to browser to request a route ID for a renderer-side (ie | 31 // Sent from renderer to browser to request a route ID for a renderer-side (ie |
32 // JavaScript) object. | 32 // JavaScript) object. |
33 IPC_SYNC_MESSAGE_CONTROL0_1(JavaBridgeMsg_GenerateRouteID, | 33 IPC_SYNC_MESSAGE_CONTROL0_1(JavaBridgeMsg_GenerateRouteID, |
34 int /* route_id */) | 34 int /* route_id */) |
35 | 35 |
36 // Sent from renderer to browser to get the channel handle for NP channel. | 36 // Sent from renderer to browser to get the channel handle for NP channel. |
37 IPC_SYNC_MESSAGE_ROUTED0_1(JavaBridgeHostMsg_GetChannelHandle, | 37 IPC_SYNC_MESSAGE_ROUTED0_1(JavaBridgeHostMsg_GetChannelHandle, |
38 IPC::ChannelHandle) /* channel handle */ | 38 IPC::ChannelHandle) /* channel handle */ |
39 | 39 |
40 #endif // defined(ENABLE_JAVA_BRIDGE) | 40 #endif // defined(ENABLE_JAVA_BRIDGE) |
OLD | NEW |