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

Unified Diff: ppapi/native_client/src/shared/ppapi_proxy/ppb_file_ref.srpc

Issue 7740013: Cloning a bunch of stuff from the native_client repository at r6528 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 4 months 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 side-by-side diff with in-line comments
Download patch
Index: ppapi/native_client/src/shared/ppapi_proxy/ppb_file_ref.srpc
===================================================================
--- ppapi/native_client/src/shared/ppapi_proxy/ppb_file_ref.srpc (revision 0)
+++ ppapi/native_client/src/shared/ppapi_proxy/ppb_file_ref.srpc (revision 0)
@@ -0,0 +1,82 @@
+# Copyright (c) 2011 The Native Client Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+# RPC methods used to implement PPB_FileIO calls from the plugin.
+# See ppapi/c/ppb_file_ref.h for interface details.
+
+{
+ 'name': 'PpbFileRefRpc',
+ 'rpcs': [
+ {'name': 'PPB_FileRef_Create',
+ 'inputs': [['file_system', 'PP_Resource'],
+ ['path', 'char[]'],
+ ],
+ 'outputs': [['resource', 'PP_Resource'],
+ ]
+ },
+ {'name': 'PPB_FileRef_IsFileRef',
+ 'inputs': [['resource', 'PP_Resource'],
+ ],
+ 'outputs': [['success', 'int32_t'], # PP_Bool
+ ]
+ },
+ {'name': 'PPB_FileRef_GetFileSystemType',
+ 'inputs': [['file_ref', 'PP_Resource'],
+ ],
+ 'outputs': [['file_system_type', 'int32_t'], # PP_FileSytemType
+ ]
+ },
+ {'name': 'PPB_FileRef_GetName',
+ 'inputs': [['file_ref', 'PP_Resource'],
+ ],
+ 'outputs': [['name', 'char[]'], # PP_Var
+ ]
+ },
+ {'name': 'PPB_FileRef_GetPath',
+ 'inputs': [['file_ref', 'PP_Resource'],
+ ],
+ 'outputs': [['path', 'char[]'], # PP_Var
+ ]
+ },
+ {'name': 'PPB_FileRef_GetParent',
+ 'inputs': [['file_ref', 'PP_Resource'],
+ ],
+ 'outputs': [['parent', 'PP_Resource'],
+ ]
+ },
+ {'name': 'PPB_FileRef_MakeDirectory',
+ 'inputs': [['directory_ref', 'PP_Resource'],
+ ['make_ancestors', 'int32_t'], # PP_Bool
+ ['callback_id', 'int32_t'],
+ ],
+ 'outputs': [['pp_error', 'int32_t'],
+ ]
+ },
+ {'name': 'PPB_FileRef_Touch',
+ 'inputs': [['file_ref', 'PP_Resource'],
+ ['last_access_time', 'double'], # PP_Time
+ ['last_modified_time', 'double'], # PP_Time
+ ['callback_id', 'int32_t'],
+ ],
+ 'outputs': [['pp_error', 'int32_t'],
+ ]
+ },
+ {'name': 'PPB_FileRef_Delete',
+ 'inputs': [['file_ref', 'PP_Resource'],
+ ['callback_id', 'int32_t'],
+ ],
+ 'outputs': [['pp_error', 'int32_t'],
+ ]
+ },
+ {'name': 'PPB_FileRef_Rename',
+ 'inputs': [['file_ref', 'PP_Resource'],
+ ['new_file_ref', 'PP_Resource'],
+ ['callback_id', 'int32_t'],
+ ],
+ 'outputs': [['pp_error', 'int32_t'],
+ ]
+ }
+ ]
+}
+

Powered by Google App Engine
This is Rietveld 408576698