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

Side by Side Diff: content/common/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: Removed an extra semicolon. 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.
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 #define IPC_MESSAGE_START BrowserPluginMsgStart
19
20 // Browser plugin messages
21
22 // -----------------------------------------------------------------------------
23 // These messages are from the host renderer to the browser process
24
25 // A renderer sends this to the browser process when it wants to
26 // create a browser plugin. The browser will create a guest renderer process
27 // if necessary.
28 IPC_MESSAGE_ROUTED4(BrowserPluginHostMsg_OpenChannel,
29 int /* plugin instance id*/,
30 long long /* frame id */,
31 std::string /* src */,
32 gfx::Size /* size */)
33
34 // -----------------------------------------------------------------------------
35 // These messages are from the browser process to the guest renderer.
36
37 // Creates a channel to talk to a renderer. The guest renderer will respond
38 // with BrowserPluginHostMsg_ChannelCreated.
39 IPC_MESSAGE_CONTROL2(BrowserPluginMsg_CreateChannel,
40 base::ProcessHandle /* host_renderer_process_handle */,
41 int /* host_renderer_id */)
42
43 // -----------------------------------------------------------------------------
44 // These messages are from the guest renderer to the browser process
45
46 // Reply to BrowserPluginMsg_CreateChannel. The handle will be NULL if the
47 // channel could not be established. This could be because the IPC could not be
48 // created for some weird reason, but more likely that the renderer failed to
49 // initialize properly.
50 IPC_MESSAGE_CONTROL1(BrowserPluginHostMsg_ChannelCreated,
51 IPC::ChannelHandle /* handle */)
52
53 // Indicates the guest renderer is ready in response to a ViewMsg_New
54 IPC_MESSAGE_ROUTED0(BrowserPluginHostMsg_GuestReady)
55
56 // A host renderer sends this message to the browser when it wants
57 // to resize a guest plugin container so that the guest is relaid out
58 // according to the new size.
59 IPC_MESSAGE_ROUTED2(BrowserPluginHostMsg_ResizeGuest,
60 int32, /* width */
61 int32 /* height */)
62
63 // -----------------------------------------------------------------------------
64 // These messages are from the browser process to the host renderer.
65
66 // A guest instance is ready to be placed.
67 IPC_MESSAGE_ROUTED3(BrowserPluginMsg_GuestReady_ACK,
68 int /* instance id */,
69 base::ProcessHandle /* plugin_process_handle */,
70 IPC::ChannelHandle /* handle to channel */)
71
72
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