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

Unified Diff: webkit/fileapi/file_system_operation.h

Issue 7671039: Count-up/down the dirty count in the usage cache at FileSystemOperation, not at QuotaFU. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Reflected the comments. Created 9 years, 4 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 | « no previous file | webkit/fileapi/file_system_operation.cc » ('j') | webkit/fileapi/file_system_operation.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/fileapi/file_system_operation.h
diff --git a/webkit/fileapi/file_system_operation.h b/webkit/fileapi/file_system_operation.h
index faa14d5877f926ef7ab638d7728caa1b14673667..a03868e494571600f594a346cd7ed0fc6923a212 100644
--- a/webkit/fileapi/file_system_operation.h
+++ b/webkit/fileapi/file_system_operation.h
@@ -17,8 +17,8 @@
#include "base/platform_file.h"
#include "base/process.h"
#include "googleurl/src/gurl.h"
-#include "webkit/fileapi/file_system_types.h"
#include "webkit/fileapi/file_system_operation_context.h"
+#include "webkit/fileapi/file_system_types.h"
#include "webkit/quota/quota_manager.h"
namespace base {
@@ -38,6 +38,7 @@ class FileSystemCallbackDispatcher;
class FileSystemContext;
class FileWriterDelegate;
class FileSystemOperationTest;
+class FileSystemQuotaUtil;
// This class is designed to serve one-time file system operation per instance.
// Only one method(CreateFile, CreateDirectory, Copy, Move, DirectoryExists,
@@ -92,6 +93,8 @@ class FileSystemOperation {
void Cancel(FileSystemOperation* cancel_operation);
private:
+ class ScopedQuotaUtilHelper;
+
FileSystemContext* file_system_context() const {
return file_system_operation_context_.file_system_context();
}
@@ -239,6 +242,8 @@ class FileSystemOperation {
base::ScopedCallbackFactory<FileSystemOperation> callback_factory_;
+ scoped_ptr<ScopedQuotaUtilHelper> quota_util_helper_;
+
// These are all used only by Write().
friend class FileWriterDelegate;
scoped_ptr<FileWriterDelegate> file_writer_delegate_;
« no previous file with comments | « no previous file | webkit/fileapi/file_system_operation.cc » ('j') | webkit/fileapi/file_system_operation.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698