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

Side by Side Diff: content/common/browser_plugin/browser_plugin_messages.h

Issue 9924026: Browser side implementation of browser plugin (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Fixed comments in browser_plugin_messages.h Created 8 years, 8 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
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
jam 2012/04/05 21:03:08 please just keep this in content/common without a
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 // Multiply-included message header, no traditional include guard.
6
7 #include <string>
8
9 #include "base/basictypes.h"
10 #include "base/process.h"
11 #include "content/common/content_export.h"
12 #include "content/public/common/common_param_traits.h"
13 #include "ipc/ipc_channel_handle.h"
14 #include "ipc/ipc_message_macros.h"
15 #include "ipc/ipc_message_utils.h"
16 #include "ui/gfx/size.h"
17
18 #undef IPC_MESSAGE_EXPORT
19 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT
jam 2012/04/05 21:03:08 nit: i believe you only need these two lines if yo
20
21 #define IPC_MESSAGE_START BrowserPluginMsgStart
22
23 // Browser plugin messages
24
25 // -----------------------------------------------------------------------------
26 // These messages are from the host renderer to the browser process
27
28 // A renderer sends this to the browser process when it wants to
29 // create a browser plugin. The browser will create a guest renderer process
30 // if necessary.
31 IPC_MESSAGE_ROUTED4(BrowserPluginHostMsg_OpenChannel,
32 int /* plugin instance id*/,
33 long long /* frame id */,
34 std::string /* src */,
35 gfx::Size /* size */)
36
37 // -----------------------------------------------------------------------------
38 // These messages are from the browser process to the guest renderer.
39
40 // Creates a channel to talk to a renderer. The guest renderer will respond
41 // with BrowserPluginHostMsg_ChannelCreated.
42 IPC_MESSAGE_CONTROL2(BrowserPluginMsg_CreateChannel,
43 base::ProcessHandle /* host_renderer_process_handle */,
44 int /* host_renderer_id */)
45
46 // -----------------------------------------------------------------------------
47 // These messages are from the guest renderer to the browser process
48
49 // Reply to BrowserPluginMsg_CreateChannel. The handle will be NULL if the
50 // channel could not be established. This could be because the IPC could not be
51 // created for some weird reason, but more likely that the renderer failed to
52 // initialize properly.
53 IPC_MESSAGE_CONTROL1(BrowserPluginHostMsg_ChannelCreated,
54 IPC::ChannelHandle /* handle */)
55
56 // Indicates the guest renderer is ready in response to a ViewMsg_New
57 IPC_MESSAGE_ROUTED0(BrowserPluginHostMsg_GuestReady)
58
59 // A host renderer sends this message to the browser when it wants
60 // to resize a guest plugin container so that the guest is relaid out
61 // according to the new size.
62 IPC_MESSAGE_ROUTED2(BrowserPluginHostMsg_ResizeGuest,
63 int32, /* width */
64 int32 /* height */);
65
66 // -----------------------------------------------------------------------------
67 // These messages are from the browser process to the host renderer.
68
69 // A guest instance is ready to be placed.
70 IPC_MESSAGE_ROUTED3(BrowserPluginMsg_GuestReady_ACK,
71 int /* instance id */,
72 base::ProcessHandle /* plugin_process_handle */,
73 IPC::ChannelHandle /* handle to channel */)
74
75
OLDNEW
« no previous file with comments | « content/browser/tab_contents/tab_contents.cc ('k') | content/common/content_message_generator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698