diff options
Diffstat (limited to 'ppapi/c')
-rw-r--r-- | ppapi/c/dev/ppb_file_io_dev.h | 15 | ||||
-rw-r--r-- | ppapi/c/dev/ppb_file_io_trusted_dev.h | 47 | ||||
-rw-r--r-- | ppapi/c/dev/ppb_file_ref_dev.h | 15 | ||||
-rw-r--r-- | ppapi/c/dev/ppb_file_system_dev.h | 15 |
4 files changed, 0 insertions, 92 deletions
diff --git a/ppapi/c/dev/ppb_file_io_dev.h b/ppapi/c/dev/ppb_file_io_dev.h deleted file mode 100644 index 3700968..0000000 --- a/ppapi/c/dev/ppb_file_io_dev.h +++ /dev/null @@ -1,15 +0,0 @@ -/* Copyright (c) 2011 The Chromium Authors. All rights reserved. - * Use of this source code is governed by a BSD-style license that can be - * found in the LICENSE file. - */ -#ifndef PPAPI_C_DEV_PPB_FILE_IO_DEV_H_ -#define PPAPI_C_DEV_PPB_FILE_IO_DEV_H_ - -#include "ppapi/c/ppb_file_io.h" - -#define PPB_FILEIO_DEV_INTERFACE_0_4 "PPB_FileIO(Dev);0.4" -#define PPB_FILEIO_DEV_INTERFACE PPB_FILEIO_DEV_INTERFACE_0_4 - -typedef struct PPB_FileIO PPB_FileIO_Dev; - -#endif /* PPAPI_C_DEV_PPB_FILE_IO_DEV_H_ */ diff --git a/ppapi/c/dev/ppb_file_io_trusted_dev.h b/ppapi/c/dev/ppb_file_io_trusted_dev.h deleted file mode 100644 index ed73a6c..0000000 --- a/ppapi/c/dev/ppb_file_io_trusted_dev.h +++ /dev/null @@ -1,47 +0,0 @@ -/* Copyright (c) 2011 The Chromium Authors. All rights reserved. - * Use of this source code is governed by a BSD-style license that can be - * found in the LICENSE file. - */ -#ifndef PPAPI_C_DEV_PPB_FILE_IO_TRUSTED_DEV_H_ -#define PPAPI_C_DEV_PPB_FILE_IO_TRUSTED_DEV_H_ - -#include "ppapi/c/pp_resource.h" -#include "ppapi/c/pp_stdint.h" - -struct PP_CompletionCallback; - -#define PPB_FILEIOTRUSTED_DEV_INTERFACE_0_3 "PPB_FileIOTrusted(Dev);0.3" -#define PPB_FILEIOTRUSTED_DEV_INTERFACE PPB_FILEIOTRUSTED_DEV_INTERFACE_0_3 - -// Available only to trusted implementations. -struct PPB_FileIOTrusted_Dev { - // Returns a file descriptor corresponding to the given FileIO object. On - // Windows, returns a HANDLE; on all other platforms, returns a POSIX file - // descriptor. The FileIO object must have been opened with a successful - // call to FileIO::Open. The file descriptor will be closed automatically - // when the FileIO object is closed or destroyed. - int32_t (*GetOSFileDescriptor)(PP_Resource file_io); - - // Notifies the browser that underlying file will be modified. This gives - // the browser the opportunity to apply quota restrictions and possibly - // return an error to indicate that the write is not allowed. - int32_t (*WillWrite)(PP_Resource file_io, - int64_t offset, - int32_t bytes_to_write, - struct PP_CompletionCallback callback); - - // Notifies the browser that underlying file will be modified. This gives - // the browser the opportunity to apply quota restrictions and possibly - // return an error to indicate that the write is not allowed. - int32_t (*WillSetLength)(PP_Resource file_io, - int64_t length, - struct PP_CompletionCallback callback); - - // TODO(darin): Maybe unify the above into a single WillChangeFileSize - // method? The above methods have the advantage of mapping to PPB_FileIO - // Write and SetLength calls. WillChangeFileSize would require the caller to - // compute the file size resulting from a Write call, which may be - // undesirable. -}; - -#endif /* PPAPI_C_DEV_PPB_FILE_IO_TRUSTED_DEV_H_ */ diff --git a/ppapi/c/dev/ppb_file_ref_dev.h b/ppapi/c/dev/ppb_file_ref_dev.h deleted file mode 100644 index 31c7327..0000000 --- a/ppapi/c/dev/ppb_file_ref_dev.h +++ /dev/null @@ -1,15 +0,0 @@ -/* Copyright (c) 2011 The Chromium Authors. All rights reserved. - * Use of this source code is governed by a BSD-style license that can be - * found in the LICENSE file. - */ -#ifndef PPAPI_C_DEV_PPB_FILE_REF_DEV_H_ -#define PPAPI_C_DEV_PPB_FILE_REF_DEV_H_ - -#include "ppapi/c/ppb_file_ref.h" - -#define PPB_FILEREF_DEV_INTERFACE_0_8 "PPB_FileRef(Dev);0.8" -#define PPB_FILEREF_DEV_INTERFACE PPB_FILEREF_DEV_INTERFACE_0_8 - -typedef struct PPB_FileRef PPB_FileRef_Dev; - -#endif /* PPAPI_C_DEV_PPB_FILE_REF_DEV_H_ */ diff --git a/ppapi/c/dev/ppb_file_system_dev.h b/ppapi/c/dev/ppb_file_system_dev.h deleted file mode 100644 index 32ce3fc..0000000 --- a/ppapi/c/dev/ppb_file_system_dev.h +++ /dev/null @@ -1,15 +0,0 @@ -/* Copyright (c) 2011 The Chromium Authors. All rights reserved. - * Use of this source code is governed by a BSD-style license that can be - * found in the LICENSE file. - */ -#ifndef PPAPI_C_DEV_PPB_FILE_SYSTEM_DEV_H_ -#define PPAPI_C_DEV_PPB_FILE_SYSTEM_DEV_H_ - -#include "ppapi/c/ppb_file_system.h" - -#define PPB_FILESYSTEM_DEV_INTERFACE_0_6 "PPB_FileSystem(Dev);0.6" -#define PPB_FILESYSTEM_DEV_INTERFACE PPB_FILESYSTEM_DEV_INTERFACE_0_6 - -typedef struct PPB_FileSystem PPB_FileSystem_Dev; - -#endif /* PPAPI_C_DEV_PPB_FILE_SYSTEM_DEV_H_ */ |