| Index: webkit/plugins/ppapi/ppb_file_io_impl.h
|
| ===================================================================
|
| --- webkit/plugins/ppapi/ppb_file_io_impl.h (revision 96768)
|
| +++ webkit/plugins/ppapi/ppb_file_io_impl.h (working copy)
|
| @@ -29,6 +29,7 @@
|
|
|
| class PluginModule;
|
| class PPB_FileRef_Impl;
|
| +class QuotaFileIO;
|
|
|
| class PPB_FileIO_Impl : public Resource,
|
| public ::ppapi::thunk::PPB_FileIO_API {
|
| @@ -74,6 +75,7 @@
|
| ~CallbackEntry();
|
|
|
| scoped_refptr<TrackedCompletionCallback> callback;
|
| +
|
| // Pointer back to the caller's read buffer; only used by |Read()|.
|
| // Not owned.
|
| char* read_buffer;
|
| @@ -109,8 +111,7 @@
|
| // |read_buffer| is only used by read operations.
|
| void RegisterCallback(OperationType op,
|
| PP_CompletionCallback callback,
|
| - char* rend_buffer);
|
| -
|
| + char* read_buffer);
|
| void RunAndRemoveFirstPendingCallback(int32_t result);
|
|
|
| void StatusCallback(base::PlatformFileError error_code);
|
| @@ -121,12 +122,16 @@
|
| void ReadCallback(base::PlatformFileError error_code,
|
| const char* data, int bytes_read);
|
| void WriteCallback(base::PlatformFileError error_code, int bytes_written);
|
| + void WillWriteCallback(base::PlatformFileError error_code, int bytes_written);
|
|
|
| base::ScopedCallbackFactory<PPB_FileIO_Impl> callback_factory_;
|
|
|
| base::PlatformFile file_;
|
| PP_FileSystemType file_system_type_;
|
|
|
| + // Valid only for PP_FILESYSTEMTYPE_LOCAL{PERSISTENT,TEMPORARY}.
|
| + GURL file_system_url_;
|
| +
|
| std::queue<CallbackEntry> callbacks_;
|
| OperationType pending_op_;
|
|
|
| @@ -134,6 +139,10 @@
|
| // pending for it.
|
| PP_FileInfo* info_;
|
|
|
| + // Pointer to a QuotaFileIO instance, which is valid only while a file
|
| + // of type PP_FILESYSTEMTYPE_LOCAL{PERSISTENT,TEMPORARY} is opened.
|
| + scoped_ptr<QuotaFileIO> quota_file_io_;
|
| +
|
| DISALLOW_COPY_AND_ASSIGN(PPB_FileIO_Impl);
|
| };
|
|
|
|
|