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

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

Issue 11956022: Browser Plugin: Allocate Instance IDs in BrowserPluginEmbedder instead of BrowserPluginManager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed creis' comments Created 7 years, 11 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 // Multiply-included message header, no traditional include guard. 5 // Multiply-included message header, no traditional include guard.
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/process.h" 10 #include "base/process.h"
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 // Indicates the scale factor of the embedder WebView. 49 // Indicates the scale factor of the embedder WebView.
50 IPC_STRUCT_MEMBER(float, scale_factor) 50 IPC_STRUCT_MEMBER(float, scale_factor)
51 IPC_STRUCT_END() 51 IPC_STRUCT_END()
52 52
53 IPC_STRUCT_BEGIN(BrowserPluginHostMsg_CreateGuest_Params) 53 IPC_STRUCT_BEGIN(BrowserPluginHostMsg_CreateGuest_Params)
54 IPC_STRUCT_MEMBER(std::string, storage_partition_id) 54 IPC_STRUCT_MEMBER(std::string, storage_partition_id)
55 IPC_STRUCT_MEMBER(bool, persist_storage) 55 IPC_STRUCT_MEMBER(bool, persist_storage)
56 IPC_STRUCT_MEMBER(bool, focused) 56 IPC_STRUCT_MEMBER(bool, focused)
57 IPC_STRUCT_MEMBER(bool, visible) 57 IPC_STRUCT_MEMBER(bool, visible)
58 IPC_STRUCT_MEMBER(std::string, name) 58 IPC_STRUCT_MEMBER(std::string, name)
59 IPC_STRUCT_MEMBER(std::string, src)
59 IPC_STRUCT_MEMBER(BrowserPluginHostMsg_AutoSize_Params, auto_size_params) 60 IPC_STRUCT_MEMBER(BrowserPluginHostMsg_AutoSize_Params, auto_size_params)
60 IPC_STRUCT_MEMBER(BrowserPluginHostMsg_ResizeGuest_Params, 61 IPC_STRUCT_MEMBER(BrowserPluginHostMsg_ResizeGuest_Params,
61 resize_guest_params) 62 resize_guest_params)
62 IPC_STRUCT_END() 63 IPC_STRUCT_END()
63 64
64 IPC_STRUCT_BEGIN(BrowserPluginMsg_LoadCommit_Params) 65 IPC_STRUCT_BEGIN(BrowserPluginMsg_LoadCommit_Params)
65 // The current URL of the guest. 66 // The current URL of the guest.
66 IPC_STRUCT_MEMBER(GURL, url) 67 IPC_STRUCT_MEMBER(GURL, url)
67 // Indicates whether the navigation was on the top-level frame. 68 // Indicates whether the navigation was on the top-level frame.
68 IPC_STRUCT_MEMBER(bool, is_top_level) 69 IPC_STRUCT_MEMBER(bool, is_top_level)
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 // Used in HW accelerated case to switch between sending an UpdateRect_ACK 115 // Used in HW accelerated case to switch between sending an UpdateRect_ACK
115 // with the new size or just resizing. 116 // with the new size or just resizing.
116 IPC_STRUCT_MEMBER(bool, needs_ack) 117 IPC_STRUCT_MEMBER(bool, needs_ack)
117 IPC_STRUCT_END() 118 IPC_STRUCT_END()
118 119
119 // Browser plugin messages 120 // Browser plugin messages
120 121
121 // ----------------------------------------------------------------------------- 122 // -----------------------------------------------------------------------------
122 // These messages are from the embedder to the browser process. 123 // These messages are from the embedder to the browser process.
123 124
125 // This message is sent to the browser process to request an instance ID.
126 // |request_id| is used by BrowserPluginEmbedder to route the response back
127 // to its origin.
128 IPC_MESSAGE_ROUTED1(BrowserPluginHostMsg_AllocateInstanceID,
129 int /* request_id */)
130
124 // This message is sent to the browser process to enable or disable autosize 131 // This message is sent to the browser process to enable or disable autosize
125 // mode. 132 // mode.
126 IPC_MESSAGE_ROUTED3( 133 IPC_MESSAGE_ROUTED3(
127 BrowserPluginHostMsg_SetAutoSize, 134 BrowserPluginHostMsg_SetAutoSize,
128 int /* instance_id */, 135 int /* instance_id */,
129 BrowserPluginHostMsg_AutoSize_Params /* auto_size_params */, 136 BrowserPluginHostMsg_AutoSize_Params /* auto_size_params */,
130 BrowserPluginHostMsg_ResizeGuest_Params /* resize_guest_params */) 137 BrowserPluginHostMsg_ResizeGuest_Params /* resize_guest_params */)
131 138
132 139
133 // This message is sent to the browser process to create the browser plugin 140 // This message is sent to the browser process to create the browser plugin
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 // A embedder sends this message to the browser when it wants 237 // A embedder sends this message to the browser when it wants
231 // to resize a guest plugin container so that the guest is relaid out 238 // to resize a guest plugin container so that the guest is relaid out
232 // according to the new size. 239 // according to the new size.
233 IPC_MESSAGE_ROUTED2(BrowserPluginHostMsg_ResizeGuest, 240 IPC_MESSAGE_ROUTED2(BrowserPluginHostMsg_ResizeGuest,
234 int /* instance_id*/, 241 int /* instance_id*/,
235 BrowserPluginHostMsg_ResizeGuest_Params) 242 BrowserPluginHostMsg_ResizeGuest_Params)
236 243
237 // ----------------------------------------------------------------------------- 244 // -----------------------------------------------------------------------------
238 // These messages are from the browser process to the embedder. 245 // These messages are from the browser process to the embedder.
239 246
247 // This message is sent from the browser process to the embedder render process
248 // in response to a request to allocate an instance ID. The |request_id| is used
249 // to route the response to the requestor.
250 IPC_MESSAGE_ROUTED2(BrowserPluginMsg_AllocateInstanceID_ACK,
251 int /* request_id */,
252 int /* instance_id */)
253
240 // Once the swapped out guest RenderView has been created in the embedder render 254 // Once the swapped out guest RenderView has been created in the embedder render
241 // process, the browser process informs the embedder of its routing ID. 255 // process, the browser process informs the embedder of its routing ID.
242 IPC_MESSAGE_ROUTED2(BrowserPluginMsg_GuestContentWindowReady, 256 IPC_MESSAGE_ROUTED2(BrowserPluginMsg_GuestContentWindowReady,
243 int /* instance_id */, 257 int /* instance_id */,
244 int /* source_routing_id */) 258 int /* source_routing_id */)
245 259
246 // When the guest begins to load a page, the browser process informs the 260 // When the guest begins to load a page, the browser process informs the
247 // embedder through the BrowserPluginMsg_LoadStart message. 261 // embedder through the BrowserPluginMsg_LoadStart message.
248 IPC_MESSAGE_ROUTED3(BrowserPluginMsg_LoadStart, 262 IPC_MESSAGE_ROUTED3(BrowserPluginMsg_LoadStart,
249 int /* instance_id */, 263 int /* instance_id */,
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
337 // Guest renders into an FBO with textures provided by the embedder. 351 // Guest renders into an FBO with textures provided by the embedder.
338 // When HW accelerated buffers are swapped in the guest, the message 352 // When HW accelerated buffers are swapped in the guest, the message
339 // is forwarded to the embedder to notify it of a new texture 353 // is forwarded to the embedder to notify it of a new texture
340 // available for compositing. 354 // available for compositing.
341 IPC_MESSAGE_ROUTED5(BrowserPluginMsg_BuffersSwapped, 355 IPC_MESSAGE_ROUTED5(BrowserPluginMsg_BuffersSwapped,
342 int /* instance_id */, 356 int /* instance_id */,
343 gfx::Size /* size */, 357 gfx::Size /* size */,
344 std::string /* mailbox_name */, 358 std::string /* mailbox_name */,
345 int /* route_id */, 359 int /* route_id */,
346 int /* gpu_host_id */) 360 int /* gpu_host_id */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698