diff options
Diffstat (limited to 'ppapi/cpp/dev')
-rw-r--r-- | ppapi/cpp/dev/file_io_dev.cc | 28 | ||||
-rw-r--r-- | ppapi/cpp/dev/file_io_dev.h | 10 |
2 files changed, 1 insertions, 37 deletions
diff --git a/ppapi/cpp/dev/file_io_dev.cc b/ppapi/cpp/dev/file_io_dev.cc index e1197a1..bccfa99 100644 --- a/ppapi/cpp/dev/file_io_dev.cc +++ b/ppapi/cpp/dev/file_io_dev.cc @@ -14,10 +14,7 @@ namespace { -DeviceFuncs<PPB_FileIO_Dev> file_io_f( - PPB_FILEIO_DEV_INTERFACE); -DeviceFuncs<PPB_FileIOTrusted_Dev> file_io_trusted_f( - PPB_FILEIOTRUSTED_DEV_INTERFACE); +DeviceFuncs<PPB_FileIO_Dev> file_io_f(PPB_FILEIO_DEV_INTERFACE); } // namespace @@ -104,27 +101,4 @@ void FileIO_Dev::Close() { file_io_f->Close(pp_resource()); } -int32_t FileIO_Dev::GetOSFileDescriptor() { - if (!file_io_trusted_f) - return PP_ERROR_NOINTERFACE; - return file_io_trusted_f->GetOSFileDescriptor(pp_resource()); -} - -int32_t FileIO_Dev::WillWrite(int64_t offset, - int32_t bytes_to_write, - const CompletionCallback& cc) { - if (!file_io_trusted_f) - return PP_ERROR_NOINTERFACE; - return file_io_trusted_f->WillWrite(pp_resource(), offset, bytes_to_write, - cc.pp_completion_callback()); -} - -int32_t FileIO_Dev::WillSetLength(int64_t length, - const CompletionCallback& cc) { - if (!file_io_trusted_f) - return PP_ERROR_NOINTERFACE; - return file_io_trusted_f->WillSetLength(pp_resource(), length, - cc.pp_completion_callback()); -} - } // namespace pp diff --git a/ppapi/cpp/dev/file_io_dev.h b/ppapi/cpp/dev/file_io_dev.h index 957f9eb..1ec4d06 100644 --- a/ppapi/cpp/dev/file_io_dev.h +++ b/ppapi/cpp/dev/file_io_dev.h @@ -43,16 +43,6 @@ class FileIO_Dev : public Resource { const CompletionCallback& cc); int32_t Flush(const CompletionCallback& cc); void Close(); - - // PPB_FileIOTrusted methods: - // NOTE: These are only available to trusted plugins and will return - // PP_ERROR_NOINTERFACE if called from an untrusted plugin. - int32_t GetOSFileDescriptor(); - int32_t WillWrite(int64_t offset, - int32_t bytes_to_write, - const CompletionCallback& cc); - int32_t WillSetLength(int64_t length, - const CompletionCallback& cc); }; } // namespace pp |