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

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

Issue 6682033: Move plugin messages to content. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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
« no previous file with comments | « content/common/content_message_generator.h ('k') | content/content_common.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 //
5 // Multiply-included message file, hence no include guard.
4 6
5 #include "base/shared_memory.h" 7 #include "base/shared_memory.h"
6 #include "build/build_config.h" 8 #include "build/build_config.h"
9 #include "content/common/common_param_traits.h"
10 #include "ipc/ipc_channel_handle.h"
7 #include "ipc/ipc_message_macros.h" 11 #include "ipc/ipc_message_macros.h"
8 #include "ui/gfx/native_widget_types.h" 12 #include "ui/gfx/native_widget_types.h"
13 #include "ui/gfx/rect.h"
9 #include "webkit/glue/webcursor.h" 14 #include "webkit/glue/webcursor.h"
10 15
11 #if defined(OS_POSIX) 16 #if defined(OS_POSIX)
12 #include "base/file_descriptor_posix.h" 17 #include "base/file_descriptor_posix.h"
13 #endif 18 #endif
14 19
15 #define IPC_MESSAGE_START PluginMsgStart 20 #define IPC_MESSAGE_START PluginMsgStart
16 21
22 IPC_STRUCT_BEGIN(PluginMsg_Init_Params)
23 IPC_STRUCT_MEMBER(gfx::NativeViewId, containing_window)
24 IPC_STRUCT_MEMBER(GURL, url)
25 IPC_STRUCT_MEMBER(GURL, page_url)
26 IPC_STRUCT_MEMBER(std::vector<std::string>, arg_names)
27 IPC_STRUCT_MEMBER(std::vector<std::string>, arg_values)
28 IPC_STRUCT_MEMBER(bool, load_manually)
29 IPC_STRUCT_MEMBER(int, host_render_view_routing_id)
30 IPC_STRUCT_END()
31
32 IPC_STRUCT_BEGIN(PluginHostMsg_URLRequest_Params)
33 IPC_STRUCT_MEMBER(std::string, url)
34 IPC_STRUCT_MEMBER(std::string, method)
35 IPC_STRUCT_MEMBER(std::string, target)
36 IPC_STRUCT_MEMBER(std::vector<char>, buffer)
37 IPC_STRUCT_MEMBER(int, notify_id)
38 IPC_STRUCT_MEMBER(bool, popups_allowed)
39 IPC_STRUCT_MEMBER(bool, notify_redirects)
40 IPC_STRUCT_END()
41
42 IPC_STRUCT_BEGIN(PluginMsg_DidReceiveResponseParams)
43 IPC_STRUCT_MEMBER(unsigned long, id)
44 IPC_STRUCT_MEMBER(std::string, mime_type)
45 IPC_STRUCT_MEMBER(std::string, headers)
46 IPC_STRUCT_MEMBER(uint32, expected_length)
47 IPC_STRUCT_MEMBER(uint32, last_modified)
48 IPC_STRUCT_MEMBER(bool, request_is_seekable)
49 IPC_STRUCT_END()
50
51 IPC_STRUCT_BEGIN(PluginMsg_UpdateGeometry_Param)
52 IPC_STRUCT_MEMBER(gfx::Rect, window_rect)
53 IPC_STRUCT_MEMBER(gfx::Rect, clip_rect)
54 IPC_STRUCT_MEMBER(bool, transparent)
55 IPC_STRUCT_MEMBER(TransportDIB::Handle, windowless_buffer)
56 IPC_STRUCT_MEMBER(TransportDIB::Handle, background_buffer)
57
58 #if defined(OS_MACOSX)
59 // This field contains a key that the plug-in process is expected to return
60 // to the renderer in its ACK message, unless the value is -1, in which case
61 // no ACK message is required. Other than the special -1 value, the values
62 // used in ack_key are opaque to the plug-in process.
63 IPC_STRUCT_MEMBER(int, ack_key)
64 #endif
65 IPC_STRUCT_END()
66
17 //----------------------------------------------------------------------------- 67 //-----------------------------------------------------------------------------
18 // PluginProcess messages 68 // PluginProcess messages
19 // These are messages sent from the browser to the plugin process. 69 // These are messages sent from the browser to the plugin process.
20 // Tells the plugin process to create a new channel for communication with a 70 // Tells the plugin process to create a new channel for communication with a
21 // given renderer. The channel name is returned in a 71 // given renderer. The channel name is returned in a
22 // PluginProcessHostMsg_ChannelCreated message. The renderer ID is passed so 72 // PluginProcessHostMsg_ChannelCreated message. The renderer ID is passed so
23 // that the plugin process reuses an existing channel to that process if it 73 // that the plugin process reuses an existing channel to that process if it
24 // exists. This ID is a unique opaque identifier generated by the browser 74 // exists. This ID is a unique opaque identifier generated by the browser
25 // process. 75 // process.
26 IPC_MESSAGE_CONTROL2(PluginProcessMsg_CreateChannel, 76 IPC_MESSAGE_CONTROL2(PluginProcessMsg_CreateChannel,
(...skipping 408 matching lines...) Expand 10 before | Expand all | Expand 10 after
435 IPC_SYNC_MESSAGE_ROUTED1_2(NPObjectMsg_Construct, 485 IPC_SYNC_MESSAGE_ROUTED1_2(NPObjectMsg_Construct,
436 std::vector<NPVariant_Param> /* args */, 486 std::vector<NPVariant_Param> /* args */,
437 NPVariant_Param /* result_param */, 487 NPVariant_Param /* result_param */,
438 bool /* result */) 488 bool /* result */)
439 489
440 IPC_SYNC_MESSAGE_ROUTED2_2(NPObjectMsg_Evaluate, 490 IPC_SYNC_MESSAGE_ROUTED2_2(NPObjectMsg_Evaluate,
441 std::string /* script */, 491 std::string /* script */,
442 bool /* popups_allowed */, 492 bool /* popups_allowed */,
443 NPVariant_Param /* result_param */, 493 NPVariant_Param /* result_param */,
444 bool /* result */) 494 bool /* result */)
OLDNEW
« no previous file with comments | « content/common/content_message_generator.h ('k') | content/content_common.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698