| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 #include "base/shared_memory.h" | 5 #include "base/shared_memory.h" |
| 6 #include "build/build_config.h" | 6 #include "build/build_config.h" |
| 7 #include "gfx/native_widget_types.h" | 7 #include "gfx/native_widget_types.h" |
| 8 #include "ipc/ipc_message_macros.h" | 8 #include "ipc/ipc_message_macros.h" |
| 9 #include "webkit/glue/webcursor.h" | 9 #include "webkit/glue/webcursor.h" |
| 10 | 10 |
| (...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 301 gfx::NativeViewId /* containing_window */) | 301 gfx::NativeViewId /* containing_window */) |
| 302 | 302 |
| 303 #if defined(OS_MACOSX) | 303 #if defined(OS_MACOSX) |
| 304 // This message, used only on 10.6 and later, transmits the "fake" | 304 // This message, used only on 10.6 and later, transmits the "fake" |
| 305 // window handle allocated by the browser on behalf of the renderer | 305 // window handle allocated by the browser on behalf of the renderer |
| 306 // to the GPU plugin. | 306 // to the GPU plugin. |
| 307 IPC_MESSAGE_ROUTED1(PluginMsg_SetFakeAcceleratedSurfaceWindowHandle, | 307 IPC_MESSAGE_ROUTED1(PluginMsg_SetFakeAcceleratedSurfaceWindowHandle, |
| 308 gfx::PluginWindowHandle /* window */) | 308 gfx::PluginWindowHandle /* window */) |
| 309 #endif | 309 #endif |
| 310 | 310 |
| 311 IPC_MESSAGE_CONTROL3(PluginMsg_ClearSiteData, |
| 312 uint64, /* flags */ |
| 313 std::string, /* domain */ |
| 314 base::Time /* begin_time */) |
| 315 |
| 311 IPC_END_MESSAGES(Plugin) | 316 IPC_END_MESSAGES(Plugin) |
| 312 | 317 |
| 313 | 318 |
| 314 //----------------------------------------------------------------------------- | 319 //----------------------------------------------------------------------------- |
| 315 // PluginHost messages | 320 // PluginHost messages |
| 316 // These are messages sent from the plugin process to the renderer process. | 321 // These are messages sent from the plugin process to the renderer process. |
| 317 // They all map to the corresponding WebPlugin methods. | 322 // They all map to the corresponding WebPlugin methods. |
| 318 IPC_BEGIN_MESSAGES(PluginHost) | 323 IPC_BEGIN_MESSAGES(PluginHost) |
| 319 // Sends the plugin window information to the renderer. | 324 // Sends the plugin window information to the renderer. |
| 320 // The window parameter is a handle to the window if the plugin is a windowed | 325 // The window parameter is a handle to the window if the plugin is a windowed |
| (...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 456 | 461 |
| 457 // This message notifies the renderer process (and from there the | 462 // This message notifies the renderer process (and from there the |
| 458 // browser process) that the plug-in swapped the buffers associated | 463 // browser process) that the plug-in swapped the buffers associated |
| 459 // with the given "window", which should cause the browser to redraw | 464 // with the given "window", which should cause the browser to redraw |
| 460 // the various plug-ins' contents. | 465 // the various plug-ins' contents. |
| 461 IPC_MESSAGE_ROUTED2(PluginHostMsg_AcceleratedSurfaceBuffersSwapped, | 466 IPC_MESSAGE_ROUTED2(PluginHostMsg_AcceleratedSurfaceBuffersSwapped, |
| 462 gfx::PluginWindowHandle /* window */, | 467 gfx::PluginWindowHandle /* window */, |
| 463 uint64 /* surface_id */) | 468 uint64 /* surface_id */) |
| 464 #endif | 469 #endif |
| 465 | 470 |
| 471 IPC_MESSAGE_CONTROL1(PluginHostMsg_ClearSiteDataResult, |
| 472 bool /* success */) |
| 473 |
| 466 IPC_END_MESSAGES(PluginHost) | 474 IPC_END_MESSAGES(PluginHost) |
| 467 | 475 |
| 468 //----------------------------------------------------------------------------- | 476 //----------------------------------------------------------------------------- |
| 469 // NPObject messages | 477 // NPObject messages |
| 470 // These are messages used to marshall NPObjects. They are sent both from the | 478 // These are messages used to marshall NPObjects. They are sent both from the |
| 471 // plugin to the renderer and from the renderer to the plugin. | 479 // plugin to the renderer and from the renderer to the plugin. |
| 472 IPC_BEGIN_MESSAGES(NPObject) | 480 IPC_BEGIN_MESSAGES(NPObject) |
| 473 IPC_SYNC_MESSAGE_ROUTED0_0(NPObjectMsg_Release) | 481 IPC_SYNC_MESSAGE_ROUTED0_0(NPObjectMsg_Release) |
| 474 | 482 |
| 475 IPC_SYNC_MESSAGE_ROUTED1_1(NPObjectMsg_HasMethod, | 483 IPC_SYNC_MESSAGE_ROUTED1_1(NPObjectMsg_HasMethod, |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 512 NPVariant_Param /* result_param */, | 520 NPVariant_Param /* result_param */, |
| 513 bool /* result */) | 521 bool /* result */) |
| 514 | 522 |
| 515 IPC_SYNC_MESSAGE_ROUTED2_2(NPObjectMsg_Evaluate, | 523 IPC_SYNC_MESSAGE_ROUTED2_2(NPObjectMsg_Evaluate, |
| 516 std::string /* script */, | 524 std::string /* script */, |
| 517 bool /* popups_allowed */, | 525 bool /* popups_allowed */, |
| 518 NPVariant_Param /* result_param */, | 526 NPVariant_Param /* result_param */, |
| 519 bool /* result */) | 527 bool /* result */) |
| 520 | 528 |
| 521 IPC_END_MESSAGES(NPObject) | 529 IPC_END_MESSAGES(NPObject) |
| OLD | NEW |