| 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 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 228 IPC_MESSAGE_ROUTED3(BrowserPluginHostMsg_PluginAtPositionResponse, | 228 IPC_MESSAGE_ROUTED3(BrowserPluginHostMsg_PluginAtPositionResponse, |
| 229 int /* instance_id */, | 229 int /* instance_id */, |
| 230 int /* request_id */, | 230 int /* request_id */, |
| 231 gfx::Point /* position */) | 231 gfx::Point /* position */) |
| 232 | 232 |
| 233 // Sets the name of the guest window to the provided |name|. | 233 // Sets the name of the guest window to the provided |name|. |
| 234 IPC_MESSAGE_ROUTED2(BrowserPluginHostMsg_SetName, | 234 IPC_MESSAGE_ROUTED2(BrowserPluginHostMsg_SetName, |
| 235 int /* instance_id */, | 235 int /* instance_id */, |
| 236 std::string /* name */) | 236 std::string /* name */) |
| 237 | 237 |
| 238 // Tells the guest that its request for media permission has been allowed or |
| 239 // denied. |
| 240 // Note that |allow| = true does not readily mean that the guest will be granted |
| 241 // permission, since a security check in the embedder will follow. The guest |
| 242 // will be granted permission only if its embedder also has access to media. |
| 243 IPC_MESSAGE_ROUTED3(BrowserPluginHostMsg_AllowMediaAccess, |
| 244 int /* instance_id */, |
| 245 int /* request_id */, |
| 246 bool /* allow */) |
| 247 |
| 238 // ----------------------------------------------------------------------------- | 248 // ----------------------------------------------------------------------------- |
| 239 // These messages are from the guest renderer to the browser process | 249 // These messages are from the guest renderer to the browser process |
| 240 | 250 |
| 241 // A embedder sends this message to the browser when it wants | 251 // A embedder sends this message to the browser when it wants |
| 242 // to resize a guest plugin container so that the guest is relaid out | 252 // to resize a guest plugin container so that the guest is relaid out |
| 243 // according to the new size. | 253 // according to the new size. |
| 244 IPC_MESSAGE_ROUTED2(BrowserPluginHostMsg_ResizeGuest, | 254 IPC_MESSAGE_ROUTED2(BrowserPluginHostMsg_ResizeGuest, |
| 245 int /* instance_id*/, | 255 int /* instance_id*/, |
| 246 BrowserPluginHostMsg_ResizeGuest_Params) | 256 BrowserPluginHostMsg_ResizeGuest_Params) |
| 247 | 257 |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 355 // Guest renders into an FBO with textures provided by the embedder. | 365 // Guest renders into an FBO with textures provided by the embedder. |
| 356 // When HW accelerated buffers are swapped in the guest, the message | 366 // When HW accelerated buffers are swapped in the guest, the message |
| 357 // is forwarded to the embedder to notify it of a new texture | 367 // is forwarded to the embedder to notify it of a new texture |
| 358 // available for compositing. | 368 // available for compositing. |
| 359 IPC_MESSAGE_ROUTED5(BrowserPluginMsg_BuffersSwapped, | 369 IPC_MESSAGE_ROUTED5(BrowserPluginMsg_BuffersSwapped, |
| 360 int /* instance_id */, | 370 int /* instance_id */, |
| 361 gfx::Size /* size */, | 371 gfx::Size /* size */, |
| 362 std::string /* mailbox_name */, | 372 std::string /* mailbox_name */, |
| 363 int /* route_id */, | 373 int /* route_id */, |
| 364 int /* gpu_host_id */) | 374 int /* gpu_host_id */) |
| 375 |
| 376 // When the guest requests media access, the browser process forwards this |
| 377 // request to the embeddder through this message. |
| 378 IPC_MESSAGE_ROUTED3(BrowserPluginMsg_RequestMediaAccess, |
| 379 int /* instance_id */, |
| 380 int /* request_id */, |
| 381 GURL /* security_origin */) |
| OLD | NEW |