| 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 #include <string> | 6 #include <string> |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/file_path.h" | 10 #include "base/file_path.h" |
| (...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 288 IPC_STRUCT_TRAITS_MEMBER(resource) | 288 IPC_STRUCT_TRAITS_MEMBER(resource) |
| 289 IPC_STRUCT_TRAITS_MEMBER(handle) | 289 IPC_STRUCT_TRAITS_MEMBER(handle) |
| 290 IPC_STRUCT_TRAITS_MEMBER(size) | 290 IPC_STRUCT_TRAITS_MEMBER(size) |
| 291 IPC_STRUCT_TRAITS_END() | 291 IPC_STRUCT_TRAITS_END() |
| 292 | 292 |
| 293 #endif // !defined(OS_NACL) && !defined(NACL_WIN64) | 293 #endif // !defined(OS_NACL) && !defined(NACL_WIN64) |
| 294 | 294 |
| 295 // These are from the browser to the plugin. | 295 // These are from the browser to the plugin. |
| 296 // Loads the given plugin. | 296 // Loads the given plugin. |
| 297 IPC_MESSAGE_CONTROL2(PpapiMsg_LoadPlugin, | 297 IPC_MESSAGE_CONTROL2(PpapiMsg_LoadPlugin, |
| 298 FilePath /* path */, | 298 base::FilePath /* path */, |
| 299 ppapi::PpapiPermissions /* permissions */) | 299 ppapi::PpapiPermissions /* permissions */) |
| 300 | 300 |
| 301 // Creates a channel to talk to a renderer. The plugin will respond with | 301 // Creates a channel to talk to a renderer. The plugin will respond with |
| 302 // PpapiHostMsg_ChannelCreated. | 302 // PpapiHostMsg_ChannelCreated. |
| 303 IPC_MESSAGE_CONTROL3(PpapiMsg_CreateChannel, | 303 IPC_MESSAGE_CONTROL3(PpapiMsg_CreateChannel, |
| 304 base::ProcessId /* renderer_pid */, | 304 base::ProcessId /* renderer_pid */, |
| 305 int /* renderer_child_id */, | 305 int /* renderer_child_id */, |
| 306 bool /* incognito */) | 306 bool /* incognito */) |
| 307 | 307 |
| 308 // Creates a channel to talk to a renderer. This message is only used by the | 308 // Creates a channel to talk to a renderer. This message is only used by the |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 352 // Network state notification from the browser for implementing | 352 // Network state notification from the browser for implementing |
| 353 // PPP_NetworkState_Dev. | 353 // PPP_NetworkState_Dev. |
| 354 IPC_MESSAGE_CONTROL1(PpapiMsg_SetNetworkState, | 354 IPC_MESSAGE_CONTROL1(PpapiMsg_SetNetworkState, |
| 355 bool /* online */) | 355 bool /* online */) |
| 356 | 356 |
| 357 // Requests a list of sites that have data stored from the plugin. The plugin | 357 // Requests a list of sites that have data stored from the plugin. The plugin |
| 358 // process will respond with PpapiHostMsg_GetSitesWithDataResult. This is used | 358 // process will respond with PpapiHostMsg_GetSitesWithDataResult. This is used |
| 359 // for Flash. | 359 // for Flash. |
| 360 IPC_MESSAGE_CONTROL2(PpapiMsg_GetSitesWithData, | 360 IPC_MESSAGE_CONTROL2(PpapiMsg_GetSitesWithData, |
| 361 uint32 /* request_id */, | 361 uint32 /* request_id */, |
| 362 FilePath /* plugin_data_path */) | 362 base::FilePath /* plugin_data_path */) |
| 363 IPC_MESSAGE_CONTROL2(PpapiHostMsg_GetSitesWithDataResult, | 363 IPC_MESSAGE_CONTROL2(PpapiHostMsg_GetSitesWithDataResult, |
| 364 uint32 /* request_id */, | 364 uint32 /* request_id */, |
| 365 std::vector<std::string> /* sites */) | 365 std::vector<std::string> /* sites */) |
| 366 | 366 |
| 367 // Instructs the plugin to clear data for the given site & time. The plugin | 367 // Instructs the plugin to clear data for the given site & time. The plugin |
| 368 // process will respond with PpapiHostMsg_ClearSiteDataResult. This is used | 368 // process will respond with PpapiHostMsg_ClearSiteDataResult. This is used |
| 369 // for Flash. | 369 // for Flash. |
| 370 IPC_MESSAGE_CONTROL5(PpapiMsg_ClearSiteData, | 370 IPC_MESSAGE_CONTROL5(PpapiMsg_ClearSiteData, |
| 371 uint32 /* request_id */, | 371 uint32 /* request_id */, |
| 372 FilePath /* plugin_data_path */, | 372 base::FilePath /* plugin_data_path */, |
| 373 std::string /* site */, | 373 std::string /* site */, |
| 374 uint64 /* flags */, | 374 uint64 /* flags */, |
| 375 uint64 /* max_age */) | 375 uint64 /* max_age */) |
| 376 IPC_MESSAGE_CONTROL2(PpapiHostMsg_ClearSiteDataResult, | 376 IPC_MESSAGE_CONTROL2(PpapiHostMsg_ClearSiteDataResult, |
| 377 uint32 /* request_id */, | 377 uint32 /* request_id */, |
| 378 bool /* success */) | 378 bool /* success */) |
| 379 | 379 |
| 380 IPC_MESSAGE_CONTROL2(PpapiMsg_DeauthorizeContentLicenses, | 380 IPC_MESSAGE_CONTROL2(PpapiMsg_DeauthorizeContentLicenses, |
| 381 uint32 /* request_id */, | 381 uint32 /* request_id */, |
| 382 FilePath /* plugin_data_path */) | 382 base::FilePath /* plugin_data_path */) |
| 383 IPC_MESSAGE_CONTROL2(PpapiHostMsg_DeauthorizeContentLicensesResult, | 383 IPC_MESSAGE_CONTROL2(PpapiHostMsg_DeauthorizeContentLicensesResult, |
| 384 uint32 /* request_id */, | 384 uint32 /* request_id */, |
| 385 bool /* success */) | 385 bool /* success */) |
| 386 | 386 |
| 387 IPC_MESSAGE_CONTROL3(PpapiMsg_GetPermissionSettings, | 387 IPC_MESSAGE_CONTROL3(PpapiMsg_GetPermissionSettings, |
| 388 uint32 /* request_id */, | 388 uint32 /* request_id */, |
| 389 FilePath /* plugin_data_path */, | 389 base::FilePath /* plugin_data_path */, |
| 390 PP_Flash_BrowserOperations_SettingType /* setting_type */) | 390 PP_Flash_BrowserOperations_SettingType /* setting_type */) |
| 391 IPC_MESSAGE_CONTROL4( | 391 IPC_MESSAGE_CONTROL4( |
| 392 PpapiHostMsg_GetPermissionSettingsResult, | 392 PpapiHostMsg_GetPermissionSettingsResult, |
| 393 uint32 /* request_id */, | 393 uint32 /* request_id */, |
| 394 bool /* success */, | 394 bool /* success */, |
| 395 PP_Flash_BrowserOperations_Permission /* default_permission */, | 395 PP_Flash_BrowserOperations_Permission /* default_permission */, |
| 396 ppapi::FlashSiteSettings /* sites */) | 396 ppapi::FlashSiteSettings /* sites */) |
| 397 | 397 |
| 398 IPC_MESSAGE_CONTROL5(PpapiMsg_SetDefaultPermission, | 398 IPC_MESSAGE_CONTROL5(PpapiMsg_SetDefaultPermission, |
| 399 uint32 /* request_id */, | 399 uint32 /* request_id */, |
| 400 FilePath /* plugin_data_path */, | 400 base::FilePath /* plugin_data_path */, |
| 401 PP_Flash_BrowserOperations_SettingType /* setting_type */, | 401 PP_Flash_BrowserOperations_SettingType /* setting_type */, |
| 402 PP_Flash_BrowserOperations_Permission /* permission */, | 402 PP_Flash_BrowserOperations_Permission /* permission */, |
| 403 bool /* clear_site_specific */) | 403 bool /* clear_site_specific */) |
| 404 IPC_MESSAGE_CONTROL2(PpapiHostMsg_SetDefaultPermissionResult, | 404 IPC_MESSAGE_CONTROL2(PpapiHostMsg_SetDefaultPermissionResult, |
| 405 uint32 /* request_id */, | 405 uint32 /* request_id */, |
| 406 bool /* success */) | 406 bool /* success */) |
| 407 | 407 |
| 408 IPC_MESSAGE_CONTROL4(PpapiMsg_SetSitePermission, | 408 IPC_MESSAGE_CONTROL4(PpapiMsg_SetSitePermission, |
| 409 uint32 /* request_id */, | 409 uint32 /* request_id */, |
| 410 FilePath /* plugin_data_path */, | 410 base::FilePath /* plugin_data_path */, |
| 411 PP_Flash_BrowserOperations_SettingType /* setting_type */, | 411 PP_Flash_BrowserOperations_SettingType /* setting_type */, |
| 412 ppapi::FlashSiteSettings /* sites */) | 412 ppapi::FlashSiteSettings /* sites */) |
| 413 IPC_MESSAGE_CONTROL2(PpapiHostMsg_SetSitePermissionResult, | 413 IPC_MESSAGE_CONTROL2(PpapiHostMsg_SetSitePermissionResult, |
| 414 uint32 /* request_id */, | 414 uint32 /* request_id */, |
| 415 bool /* success */) | 415 bool /* success */) |
| 416 | 416 |
| 417 // Broker Process. | 417 // Broker Process. |
| 418 IPC_SYNC_MESSAGE_CONTROL2_1(PpapiMsg_ConnectToPlugin, | 418 IPC_SYNC_MESSAGE_CONTROL2_1(PpapiMsg_ConnectToPlugin, |
| 419 PP_Instance /* instance */, | 419 PP_Instance /* instance */, |
| 420 IPC::PlatformFileForTransit /* handle */, | 420 IPC::PlatformFileForTransit /* handle */, |
| (...skipping 1278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1699 std::vector<ppapi::HostResource> /* buffers */, | 1699 std::vector<ppapi::HostResource> /* buffers */, |
| 1700 uint32_t /* buffer_size */) | 1700 uint32_t /* buffer_size */) |
| 1701 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnStatus, | 1701 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnStatus, |
| 1702 uint32_t /* status */) | 1702 uint32_t /* status */) |
| 1703 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnError, | 1703 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnError, |
| 1704 uint32_t /* error */) | 1704 uint32_t /* error */) |
| 1705 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnBufferReady, | 1705 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnBufferReady, |
| 1706 uint32_t /* buffer */) | 1706 uint32_t /* buffer */) |
| 1707 | 1707 |
| 1708 #endif // !defined(OS_NACL) && !defined(NACL_WIN64) | 1708 #endif // !defined(OS_NACL) && !defined(NACL_WIN64) |
| OLD | NEW |