Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 125 | 125 |
| 126 // ----------------------------------------------------------------------------- | 126 // ----------------------------------------------------------------------------- |
| 127 // These messages are from the embedder to the browser process. | 127 // These messages are from the embedder to the browser process. |
| 128 | 128 |
| 129 // This message is sent to the browser process to request an instance ID. | 129 // This message is sent to the browser process to request an instance ID. |
| 130 // |request_id| is used by BrowserPluginEmbedder to route the response back | 130 // |request_id| is used by BrowserPluginEmbedder to route the response back |
| 131 // to its origin. | 131 // to its origin. |
| 132 IPC_MESSAGE_ROUTED1(BrowserPluginHostMsg_AllocateInstanceID, | 132 IPC_MESSAGE_ROUTED1(BrowserPluginHostMsg_AllocateInstanceID, |
| 133 int /* request_id */) | 133 int /* request_id */) |
| 134 | 134 |
| 135 // Used by the embedder process to forward messages to | |
| 136 // BrowserPluginGuestObservers. | |
|
Charlie Reis
2013/02/28 02:12:03
I'm not sure if this is ok from a security perspec
Fady Samuel
2013/02/28 22:56:21
See https://chromiumcodereview.appspot.com/1232616
| |
| 137 IPC_MESSAGE_ROUTED2(BrowserPluginHostMsg_ForwardMessage, | |
| 138 int /* instance_id */, | |
| 139 IPC::Message /* message */) | |
| 140 | |
| 135 // This message is sent to the browser process to enable or disable autosize | 141 // This message is sent to the browser process to enable or disable autosize |
| 136 // mode. | 142 // mode. |
| 137 IPC_MESSAGE_ROUTED3( | 143 IPC_MESSAGE_ROUTED3( |
| 138 BrowserPluginHostMsg_SetAutoSize, | 144 BrowserPluginHostMsg_SetAutoSize, |
| 139 int /* instance_id */, | 145 int /* instance_id */, |
| 140 BrowserPluginHostMsg_AutoSize_Params /* auto_size_params */, | 146 BrowserPluginHostMsg_AutoSize_Params /* auto_size_params */, |
| 141 BrowserPluginHostMsg_ResizeGuest_Params /* resize_guest_params */) | 147 BrowserPluginHostMsg_ResizeGuest_Params /* resize_guest_params */) |
| 142 | 148 |
| 143 | 149 |
| 144 // This message is sent to the browser process to create the browser plugin | 150 // This message is sent to the browser process to create the browser plugin |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 249 // ----------------------------------------------------------------------------- | 255 // ----------------------------------------------------------------------------- |
| 250 // These messages are from the browser process to the embedder. | 256 // These messages are from the browser process to the embedder. |
| 251 | 257 |
| 252 // This message is sent from the browser process to the embedder render process | 258 // This message is sent from the browser process to the embedder render process |
| 253 // in response to a request to allocate an instance ID. The |request_id| is used | 259 // in response to a request to allocate an instance ID. The |request_id| is used |
| 254 // to route the response to the requestor. | 260 // to route the response to the requestor. |
| 255 IPC_MESSAGE_ROUTED2(BrowserPluginMsg_AllocateInstanceID_ACK, | 261 IPC_MESSAGE_ROUTED2(BrowserPluginMsg_AllocateInstanceID_ACK, |
| 256 int /* request_id */, | 262 int /* request_id */, |
| 257 int /* instance_id */) | 263 int /* instance_id */) |
| 258 | 264 |
| 265 // Used by the browser process to forward messages to BrowserPluginObservers. | |
| 266 IPC_MESSAGE_ROUTED2(BrowserPluginMsg_ForwardMessage, | |
| 267 int /* instance_id */, | |
| 268 IPC::Message /* message */) | |
| 269 | |
| 259 // Once the swapped out guest RenderView has been created in the embedder render | 270 // Once the swapped out guest RenderView has been created in the embedder render |
| 260 // process, the browser process informs the embedder of its routing ID. | 271 // process, the browser process informs the embedder of its routing ID. |
| 261 IPC_MESSAGE_ROUTED2(BrowserPluginMsg_GuestContentWindowReady, | 272 IPC_MESSAGE_ROUTED2(BrowserPluginMsg_GuestContentWindowReady, |
| 262 int /* instance_id */, | 273 int /* instance_id */, |
| 263 int /* source_routing_id */) | 274 int /* source_routing_id */) |
| 264 | 275 |
| 265 // When the guest begins to load a page, the browser process informs the | 276 // When the guest begins to load a page, the browser process informs the |
| 266 // embedder through the BrowserPluginMsg_LoadStart message. | 277 // embedder through the BrowserPluginMsg_LoadStart message. |
| 267 IPC_MESSAGE_ROUTED3(BrowserPluginMsg_LoadStart, | 278 IPC_MESSAGE_ROUTED3(BrowserPluginMsg_LoadStart, |
| 268 int /* instance_id */, | 279 int /* instance_id */, |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 356 // Guest renders into an FBO with textures provided by the embedder. | 367 // Guest renders into an FBO with textures provided by the embedder. |
| 357 // When HW accelerated buffers are swapped in the guest, the message | 368 // When HW accelerated buffers are swapped in the guest, the message |
| 358 // is forwarded to the embedder to notify it of a new texture | 369 // is forwarded to the embedder to notify it of a new texture |
| 359 // available for compositing. | 370 // available for compositing. |
| 360 IPC_MESSAGE_ROUTED5(BrowserPluginMsg_BuffersSwapped, | 371 IPC_MESSAGE_ROUTED5(BrowserPluginMsg_BuffersSwapped, |
| 361 int /* instance_id */, | 372 int /* instance_id */, |
| 362 gfx::Size /* size */, | 373 gfx::Size /* size */, |
| 363 std::string /* mailbox_name */, | 374 std::string /* mailbox_name */, |
| 364 int /* route_id */, | 375 int /* route_id */, |
| 365 int /* gpu_host_id */) | 376 int /* gpu_host_id */) |
| OLD | NEW |