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

Unified Diff: webkit/plugins/ppapi/ppb_file_io_impl.h

Issue 7433006: Pepper quota support (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: '' Created 9 years, 5 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
« no previous file with comments | « webkit/plugins/ppapi/ppapi_unittest.cc ('k') | webkit/plugins/ppapi/ppb_file_io_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..4b9045124612f38c51bf89496aac98770a773009 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);
@@ -121,12 +122,16 @@ class PPB_FileIO_Impl : public Resource,
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 @@ 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);
};
« no previous file with comments | « webkit/plugins/ppapi/ppapi_unittest.cc ('k') | webkit/plugins/ppapi/ppb_file_io_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698