| Index: webkit/plugins/ppapi/ppb_file_io_impl.h
|
| diff --git a/webkit/plugins/ppapi/ppb_file_io_impl.h b/webkit/plugins/ppapi/ppb_file_io_impl.h
|
| index 327f713c9c508241a6e5540ca394ed3fd2211276..fd88913b5e2e3e250fa97b653b2a425204caff9c 100644
|
| --- a/webkit/plugins/ppapi/ppb_file_io_impl.h
|
| +++ b/webkit/plugins/ppapi/ppb_file_io_impl.h
|
| @@ -29,6 +29,7 @@ namespace ppapi {
|
|
|
| class PluginModule;
|
| class PPB_FileRef_Impl;
|
| +class QuotaFileIO;
|
|
|
| class PPB_FileIO_Impl : public Resource,
|
| public ::ppapi::thunk::PPB_FileIO_API {
|
| @@ -74,6 +75,7 @@ class PPB_FileIO_Impl : public Resource,
|
| ~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 @@ class PPB_FileIO_Impl : public Resource,
|
| // |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);
|
| @@ -127,6 +128,9 @@ class PPB_FileIO_Impl : public Resource,
|
| 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 +138,10 @@ class PPB_FileIO_Impl : public Resource,
|
| // 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);
|
| };
|
|
|
|
|