| 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" |
| 11 #include "base/shared_memory.h" | 11 #include "base/shared_memory.h" |
| 12 #include "base/values.h" |
| 12 #include "content/common/content_export.h" | 13 #include "content/common/content_export.h" |
| 13 #include "content/common/content_param_traits.h" | 14 #include "content/common/content_param_traits.h" |
| 14 #include "content/public/common/common_param_traits.h" | 15 #include "content/public/common/common_param_traits.h" |
| 15 #include "ipc/ipc_channel_handle.h" | 16 #include "ipc/ipc_channel_handle.h" |
| 16 #include "ipc/ipc_message_macros.h" | 17 #include "ipc/ipc_message_macros.h" |
| 17 #include "ipc/ipc_message_utils.h" | 18 #include "ipc/ipc_message_utils.h" |
| 18 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDragOperation.h" | 19 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDragOperation.h" |
| 19 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDragStatus.h" | 20 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDragStatus.h" |
| 20 #include "ui/gfx/point.h" | 21 #include "ui/gfx/point.h" |
| 21 #include "ui/gfx/rect.h" | 22 #include "ui/gfx/rect.h" |
| (...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 229 IPC_MESSAGE_ROUTED3(BrowserPluginHostMsg_PluginAtPositionResponse, | 230 IPC_MESSAGE_ROUTED3(BrowserPluginHostMsg_PluginAtPositionResponse, |
| 230 int /* instance_id */, | 231 int /* instance_id */, |
| 231 int /* request_id */, | 232 int /* request_id */, |
| 232 gfx::Point /* position */) | 233 gfx::Point /* position */) |
| 233 | 234 |
| 234 // Sets the name of the guest window to the provided |name|. | 235 // Sets the name of the guest window to the provided |name|. |
| 235 IPC_MESSAGE_ROUTED2(BrowserPluginHostMsg_SetName, | 236 IPC_MESSAGE_ROUTED2(BrowserPluginHostMsg_SetName, |
| 236 int /* instance_id */, | 237 int /* instance_id */, |
| 237 std::string /* name */) | 238 std::string /* name */) |
| 238 | 239 |
| 240 // Tells the guest that its request for an API permission has been allowed or |
| 241 // denied. |
| 242 // Note that |allow| = true does not readily mean that the guest will be granted |
| 243 // permission, since a security check in the embedder might follow. For example |
| 244 // for media access permission, the guest will be granted permission only if its |
| 245 // embedder also has access. |
| 246 IPC_MESSAGE_ROUTED4(BrowserPluginHostMsg_AllowPermission, |
| 247 int /* instance_id */, |
| 248 std::string /* permission_type */, |
| 249 int /* request_id */, |
| 250 bool /* allow */) |
| 251 |
| 239 // ----------------------------------------------------------------------------- | 252 // ----------------------------------------------------------------------------- |
| 240 // These messages are from the guest renderer to the browser process | 253 // These messages are from the guest renderer to the browser process |
| 241 | 254 |
| 242 // A embedder sends this message to the browser when it wants | 255 // A embedder sends this message to the browser when it wants |
| 243 // to resize a guest plugin container so that the guest is relaid out | 256 // to resize a guest plugin container so that the guest is relaid out |
| 244 // according to the new size. | 257 // according to the new size. |
| 245 IPC_MESSAGE_ROUTED2(BrowserPluginHostMsg_ResizeGuest, | 258 IPC_MESSAGE_ROUTED2(BrowserPluginHostMsg_ResizeGuest, |
| 246 int /* instance_id*/, | 259 int /* instance_id*/, |
| 247 BrowserPluginHostMsg_ResizeGuest_Params) | 260 BrowserPluginHostMsg_ResizeGuest_Params) |
| 248 | 261 |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 356 // Guest renders into an FBO with textures provided by the embedder. | 369 // Guest renders into an FBO with textures provided by the embedder. |
| 357 // When HW accelerated buffers are swapped in the guest, the message | 370 // When HW accelerated buffers are swapped in the guest, the message |
| 358 // is forwarded to the embedder to notify it of a new texture | 371 // is forwarded to the embedder to notify it of a new texture |
| 359 // available for compositing. | 372 // available for compositing. |
| 360 IPC_MESSAGE_ROUTED5(BrowserPluginMsg_BuffersSwapped, | 373 IPC_MESSAGE_ROUTED5(BrowserPluginMsg_BuffersSwapped, |
| 361 int /* instance_id */, | 374 int /* instance_id */, |
| 362 gfx::Size /* size */, | 375 gfx::Size /* size */, |
| 363 std::string /* mailbox_name */, | 376 std::string /* mailbox_name */, |
| 364 int /* route_id */, | 377 int /* route_id */, |
| 365 int /* gpu_host_id */) | 378 int /* gpu_host_id */) |
| 379 |
| 380 // When the guest requests permission, the browser process forwards this |
| 381 // request to the embeddder through this message. |
| 382 IPC_MESSAGE_ROUTED4(BrowserPluginMsg_RequestPermission, |
| 383 int /* instance_id */, |
| 384 std::string /* permission_type */, |
| 385 int /* request_id */, |
| 386 DictionaryValue /* request_info */) |
| OLD | NEW |