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

Unified Diff: webkit/fileapi/file_system_operation.h

Issue 7433006: Pepper quota support (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updated 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
Index: webkit/fileapi/file_system_operation.h
diff --git a/webkit/fileapi/file_system_operation.h b/webkit/fileapi/file_system_operation.h
index 7dbe61a0ac5b7f60a0ef3c51d5be10ed0088aae0..c244424db9c56c91582188a722d5ebc21acf89b7 100644
--- a/webkit/fileapi/file_system_operation.h
+++ b/webkit/fileapi/file_system_operation.h
@@ -50,10 +50,10 @@ class FileSystemOperation {
// |dispatcher| will be owned by this class.
// |file_system_file_util| is optional; if supplied, it will not be deleted by
// the class. It's expecting a pointer to a singleton.
- FileSystemOperation(FileSystemCallbackDispatcher* dispatcher,
- scoped_refptr<base::MessageLoopProxy> proxy,
- FileSystemContext* file_system_context,
- FileSystemFileUtil* file_system_file_util);
+ FileSystemOperation(FileSystemCallbackDispatcher* dispatcher,
+ scoped_refptr<base::MessageLoopProxy> proxy,
+ FileSystemContext* file_system_context,
+ FileSystemFileUtil* file_system_file_util);
virtual ~FileSystemOperation();
void OpenFileSystem(const GURL& origin_url,
@@ -108,6 +108,7 @@ class FileSystemOperation {
bool GetUsageAndQuotaThenCallback(
const GURL& origin_url,
+ FileSystemType type,
quota::QuotaManager::GetUsageAndQuotaCallback* callback);
void DelayedCopyForQuota(quota::QuotaStatusCode status,
@@ -155,13 +156,15 @@ class FileSystemOperation {
void DidOpenFile(
base::PlatformFileError rv,
base::PassPlatformFile file,
- bool created);
+ bool created,
+ int64 file_size);
// Helper for Write().
void OnFileOpenedForWrite(
base::PlatformFileError rv,
base::PassPlatformFile file,
- bool created);
+ bool created,
+ int64 file_size);
// Checks the validity of a given |path| for reading, cracks the path into
// root URL and virtual path components, and returns the correct
@@ -246,6 +249,9 @@ class FileSystemOperation {
// Length to be truncated.
int64 length_;
+ // Indicates whether this operation may modify the filesystem or not.
+ bool is_write_operation_;
+
DISALLOW_COPY_AND_ASSIGN(FileSystemOperation);
};

Powered by Google App Engine
This is Rietveld 408576698