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

Unified Diff: webkit/fileapi/file_system_operation_context.cc

Issue 7608011: Simplify directory path accounting. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rolled in CR feedback. 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 | « webkit/fileapi/file_system_operation_context.h ('k') | webkit/fileapi/file_system_quota_client_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/fileapi/file_system_operation_context.cc
diff --git a/webkit/fileapi/file_system_operation_context.cc b/webkit/fileapi/file_system_operation_context.cc
index bfd50554b080efb20cb06357b18a5c77c8e30091..698e45337a35bf1ee2312e6605034c8166ff6d2a 100644
--- a/webkit/fileapi/file_system_operation_context.cc
+++ b/webkit/fileapi/file_system_operation_context.cc
@@ -17,8 +17,7 @@ FileSystemOperationContext::FileSystemOperationContext(
dest_file_system_file_util_(file_system_file_util),
src_type_(kFileSystemTypeUnknown),
dest_type_(kFileSystemTypeUnknown),
- allowed_bytes_growth_(0),
- do_not_write_actually_(false) {
+ allowed_bytes_growth_(0) {
}
FileSystemOperationContext::~FileSystemOperationContext() {
@@ -31,24 +30,8 @@ FileSystemOperationContext::CreateInheritedContextForDest() const {
context->set_src_origin_url(dest_origin_url_);
context->set_src_type(dest_type_);
context->set_allowed_bytes_growth(allowed_bytes_growth_);
- context->set_do_not_write_actually(do_not_write_actually_);
context->set_src_virtual_path(dest_virtual_path_);
return context;
}
-FileSystemOperationContext*
-FileSystemOperationContext::CreateInheritedContextWithNewVirtualPaths(
- const FilePath& new_src_virtual_path,
- const FilePath& new_dest_virtual_path) const {
- FileSystemOperationContext* context = new FileSystemOperationContext(*this);
- context->set_src_virtual_path(new_src_virtual_path);
- context->set_dest_virtual_path(new_dest_virtual_path);
- return context;
-}
-
-void FileSystemOperationContext::ImportAllowedBytesGrowth(
- const FileSystemOperationContext& other) {
- allowed_bytes_growth_ = other.allowed_bytes_growth();
-}
-
} // namespace fileapi
« no previous file with comments | « webkit/fileapi/file_system_operation_context.h ('k') | webkit/fileapi/file_system_quota_client_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698