summaryrefslogtreecommitdiffstats
path: root/webkit/fileapi/file_system_operation_context.h
diff options
context:
space:
mode:
authordmikurube@chromium.org <dmikurube@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-05-10 11:20:56 +0000
committerdmikurube@chromium.org <dmikurube@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-05-10 11:20:56 +0000
commitb97b5d364f899cacf587606ec42eeaefb13b045a (patch)
tree2f2b60f0babbe82b96275e5605b4456357f7fd6e /webkit/fileapi/file_system_operation_context.h
parent7f891f7903443bdac4e3cb76518512f35d68ceaa (diff)
downloadchromium_src-b97b5d364f899cacf587606ec42eeaefb13b045a.zip
chromium_src-b97b5d364f899cacf587606ec42eeaefb13b045a.tar.gz
chromium_src-b97b5d364f899cacf587606ec42eeaefb13b045a.tar.bz2
Set allowed bytes growth in FileSystemOperation from QuotaManager.
It sets allowed bytes growth before copy(/move)/write/truncate. It includes : 1) rewriting FileSystemOperationTest with using FileSystemContext, PathManager and QuotaManager, and 2) switching the callee of LocalFileSystemFileUtil into QuotaFileUtil. BUG=74841 TEST=FileSystemOperationTest.*, FileSystemOperationWriteTest.* Review URL: http://codereview.chromium.org/6865008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@84776 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/fileapi/file_system_operation_context.h')
-rw-r--r--webkit/fileapi/file_system_operation_context.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/webkit/fileapi/file_system_operation_context.h b/webkit/fileapi/file_system_operation_context.h
index dedc30e0..5b009c2 100644
--- a/webkit/fileapi/file_system_operation_context.h
+++ b/webkit/fileapi/file_system_operation_context.h
@@ -45,6 +45,22 @@ class FileSystemOperationContext {
return dest_origin_url_;
}
+ void set_src_virtual_path(const FilePath& path) {
+ src_virtual_path_ = path;
+ }
+
+ const FilePath& src_virtual_path() const {
+ return src_virtual_path_;
+ }
+
+ void set_dest_virtual_path(const FilePath& path) {
+ dest_virtual_path_ = path;
+ }
+
+ const FilePath& dest_virtual_path() const {
+ return dest_virtual_path_;
+ }
+
FileSystemType src_type() const {
return src_type_;
}
@@ -78,6 +94,10 @@ class FileSystemOperationContext {
FileSystemType src_type_; // Also used for any single-path operation.
FileSystemType dest_type_;
int64 allowed_bytes_growth_;
+
+ // Used for delayed operation by quota.
+ FilePath src_virtual_path_; // Also used for any single-path operation.
+ FilePath dest_virtual_path_;
};
} // namespace fileapi