Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(506)

Side by Side Diff: ppapi/proxy/ppapi_messages.h

Issue 11419131: Refactor FileIO to the new design (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 403 matching lines...) Expand 10 before | Expand all | Expand 10 after
414 // result codes. 414 // result codes.
415 // 415 //
416 // The handler of this message should always close all of the handles passed 416 // The handler of this message should always close all of the handles passed
417 // in, since some could be valid even in the error case. 417 // in, since some could be valid even in the error case.
418 IPC_MESSAGE_ROUTED4(PpapiMsg_PPBAudio_NotifyAudioStreamCreated, 418 IPC_MESSAGE_ROUTED4(PpapiMsg_PPBAudio_NotifyAudioStreamCreated,
419 ppapi::HostResource /* audio_id */, 419 ppapi::HostResource /* audio_id */,
420 int32_t /* result_code (will be != PP_OK on failure) */, 420 int32_t /* result_code (will be != PP_OK on failure) */,
421 ppapi::proxy::SerializedHandle /* socket_handle */, 421 ppapi::proxy::SerializedHandle /* socket_handle */,
422 ppapi::proxy::SerializedHandle /* handle */) 422 ppapi::proxy::SerializedHandle /* handle */)
423 423
424 // PPB_FileIO.
425 IPC_MESSAGE_ROUTED2(PpapiMsg_PPBFileIO_GeneralComplete,
426 ppapi::HostResource /* file_io */,
427 int32_t /* result */)
428 IPC_MESSAGE_ROUTED2(PpapiMsg_PPBFileIO_OpenFileComplete,
429 ppapi::HostResource /* file_io */,
430 int32_t /* result */)
431 IPC_MESSAGE_ROUTED3(PpapiMsg_PPBFileIO_QueryComplete,
432 ppapi::HostResource /* file_io */,
433 int32_t /* result */,
434 PP_FileInfo /* info */)
435 IPC_MESSAGE_ROUTED3(PpapiMsg_PPBFileIO_ReadComplete,
436 ppapi::HostResource /* file_io */,
437 int32_t /* result */,
438 std::string /* data */)
439
440 // PPB_FileRef. 424 // PPB_FileRef.
441 IPC_MESSAGE_ROUTED3( 425 IPC_MESSAGE_ROUTED3(
442 PpapiMsg_PPBFileRef_CallbackComplete, 426 PpapiMsg_PPBFileRef_CallbackComplete,
443 ppapi::HostResource /* resource */, 427 ppapi::HostResource /* resource */,
444 int /* callback_id */, 428 int /* callback_id */,
445 int32_t /* result */) 429 int32_t /* result */)
446 430
447 // PPB_FileSystem. 431 // PPB_FileSystem.
448 IPC_MESSAGE_ROUTED2( 432 IPC_MESSAGE_ROUTED2(
449 PpapiMsg_PPBFileSystem_OpenComplete, 433 PpapiMsg_PPBFileSystem_OpenComplete,
(...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after
811 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBAudio_StartOrStop, 795 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBAudio_StartOrStop,
812 ppapi::HostResource /* audio_id */, 796 ppapi::HostResource /* audio_id */,
813 bool /* play */) 797 bool /* play */)
814 798
815 // PPB_Core. 799 // PPB_Core.
816 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBCore_AddRefResource, 800 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBCore_AddRefResource,
817 ppapi::HostResource) 801 ppapi::HostResource)
818 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBCore_ReleaseResource, 802 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBCore_ReleaseResource,
819 ppapi::HostResource) 803 ppapi::HostResource)
820 804
821 // PPB_FileIO.
822 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBFileIO_Create,
823 PP_Instance /* instance */,
824 ppapi::HostResource /* result */)
825 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBFileIO_Open,
826 ppapi::HostResource /* host_resource */,
827 ppapi::HostResource /* file_ref_resource */,
828 int32_t /* open_flags */)
829 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBFileIO_Close,
830 ppapi::HostResource /* host_resource */)
831 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBFileIO_Query,
832 ppapi::HostResource /* host_resource */)
833 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBFileIO_Touch,
834 ppapi::HostResource /* host_resource */,
835 PP_Time /* last_access_time */,
836 PP_Time /* last_modified_time */)
837 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBFileIO_Read,
838 ppapi::HostResource /* host_resource */,
839 int64_t /* offset */,
840 int32_t /* bytes_to_read */)
841 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBFileIO_Write,
842 ppapi::HostResource /* host_resource */,
843 int64_t /* offset */,
844 std::string /* data */)
845 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBFileIO_SetLength,
846 ppapi::HostResource /* host_resource */,
847 int64_t /* length */)
848 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBFileIO_Flush,
849 ppapi::HostResource /* host_resource */)
850 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBFileIO_WillWrite,
851 ppapi::HostResource /* host_resource */,
852 int64_t /* offset */,
853 int32_t /* bytes_to_write */)
854 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBFileIO_WillSetLength,
855 ppapi::HostResource /* host_resource */,
856 int64_t /* length */)
857
858 // PPB_FileRef. 805 // PPB_FileRef.
859 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBFileRef_Create, 806 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBFileRef_Create,
860 ppapi::HostResource /* file_system */, 807 ppapi::HostResource /* file_system */,
861 std::string /* path */, 808 std::string /* path */,
862 ppapi::PPB_FileRef_CreateInfo /* result */) 809 ppapi::PPB_FileRef_CreateInfo /* result */)
863 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBFileRef_GetParent, 810 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBFileRef_GetParent,
864 ppapi::HostResource /* file_ref */, 811 ppapi::HostResource /* file_ref */,
865 ppapi::PPB_FileRef_CreateInfo /* result */) 812 ppapi::PPB_FileRef_CreateInfo /* result */)
866 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBFileRef_MakeDirectory, 813 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBFileRef_MakeDirectory,
867 ppapi::HostResource /* file_ref */, 814 ppapi::HostResource /* file_ref */,
(...skipping 627 matching lines...) Expand 10 before | Expand all | Expand 10 after
1495 // File chooser. 1442 // File chooser.
1496 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FileChooser_Create) 1443 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FileChooser_Create)
1497 IPC_MESSAGE_CONTROL4(PpapiHostMsg_FileChooser_Show, 1444 IPC_MESSAGE_CONTROL4(PpapiHostMsg_FileChooser_Show,
1498 bool /* save_as */, 1445 bool /* save_as */,
1499 bool /* open_multiple */, 1446 bool /* open_multiple */,
1500 std::string /* suggested_file_name */, 1447 std::string /* suggested_file_name */,
1501 std::vector<std::string> /* accept_mime_types */) 1448 std::vector<std::string> /* accept_mime_types */)
1502 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FileChooser_ShowReply, 1449 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FileChooser_ShowReply,
1503 std::vector<ppapi::PPB_FileRef_CreateInfo> /* files */) 1450 std::vector<ppapi::PPB_FileRef_CreateInfo> /* files */)
1504 1451
1452 // FileIO
1453 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FileIO_Create)
1454 IPC_MESSAGE_CONTROL2(PpapiHostMsg_FileIO_Open,
1455 PP_Resource /* file_ref_resource */,
1456 int32_t /* open_flags */)
1457 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_FileIO_OpenReply)
1458 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FileIO_Close)
1459 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FileIO_Query)
1460 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FileIO_QueryReply, PP_FileInfo /* info */)
1461 IPC_MESSAGE_CONTROL2(PpapiHostMsg_FileIO_Touch,
1462 PP_Time /* last_access_time */,
1463 PP_Time /* last_modified_time */)
1464 IPC_MESSAGE_CONTROL2(PpapiHostMsg_FileIO_Read,
1465 int64_t /* offset */,
1466 int32_t /* bytes_to_read */)
1467 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FileIO_ReadReply, std::string /* data */)
1468 IPC_MESSAGE_CONTROL2(PpapiHostMsg_FileIO_Write,
1469 int64_t /* offset */,
1470 std::string /* data */)
1471 IPC_MESSAGE_CONTROL1(PpapiHostMsg_FileIO_SetLength,
1472 int64_t /* length */)
1473 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FileIO_Flush)
1474 IPC_MESSAGE_CONTROL2(PpapiHostMsg_FileIO_WillWrite,
1475 int64_t /* offset */,
1476 int32_t /* bytes_to_write */)
1477 IPC_MESSAGE_CONTROL1(PpapiHostMsg_FileIO_WillSetLength,
1478 int64_t /* length */)
1479 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FileIO_GetOSFileDescriptor)
1480 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FileIO_GetOSFileDescriptorReply,
1481 int32_t /* file descriptor */)
1482 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_FileIO_GeneralReply)
1483
1505 // Flash device ID. 1484 // Flash device ID.
1506 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FlashDeviceID_Create) 1485 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FlashDeviceID_Create)
1507 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FlashDeviceID_GetDeviceID) 1486 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FlashDeviceID_GetDeviceID)
1508 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FlashDeviceID_GetDeviceIDReply, 1487 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FlashDeviceID_GetDeviceIDReply,
1509 std::string /* id */) 1488 std::string /* id */)
1510 1489
1511 // Gamepad. 1490 // Gamepad.
1512 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Gamepad_Create) 1491 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Gamepad_Create)
1513 1492
1514 // Requests that the gamepad host send the shared memory handle to the plugin 1493 // Requests that the gamepad host send the shared memory handle to the plugin
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
1691 std::vector<ppapi::HostResource> /* buffers */, 1670 std::vector<ppapi::HostResource> /* buffers */,
1692 uint32_t /* buffer_size */) 1671 uint32_t /* buffer_size */)
1693 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnStatus, 1672 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnStatus,
1694 uint32_t /* status */) 1673 uint32_t /* status */)
1695 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnError, 1674 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnError,
1696 uint32_t /* error */) 1675 uint32_t /* error */)
1697 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnBufferReady, 1676 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnBufferReady,
1698 uint32_t /* buffer */) 1677 uint32_t /* buffer */)
1699 1678
1700 #endif // !defined(OS_NACL) && !defined(NACL_WIN64) 1679 #endif // !defined(OS_NACL) && !defined(NACL_WIN64)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698