OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "webkit/fileapi/file_system_operation.h" | 5 #include "webkit/fileapi/file_system_operation.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/time.h" | 8 #include "base/time.h" |
9 #include "base/utf_string_conversions.h" | 9 #include "base/utf_string_conversions.h" |
10 #include "net/base/escape.h" | 10 #include "net/base/escape.h" |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 } | 64 } |
65 } | 65 } |
66 | 66 |
67 FileSystemOperation::ScopedQuotaNotifier::~ScopedQuotaNotifier() { | 67 FileSystemOperation::ScopedQuotaNotifier::~ScopedQuotaNotifier() { |
68 if (quota_util_) { | 68 if (quota_util_) { |
69 DCHECK(quota_util_->proxy()); | 69 DCHECK(quota_util_->proxy()); |
70 quota_util_->proxy()->EndUpdateOrigin(origin_url_, type_); | 70 quota_util_->proxy()->EndUpdateOrigin(origin_url_, type_); |
71 } | 71 } |
72 } | 72 } |
73 | 73 |
74 FileSystemOperation::TaskParamsForDidGetQuota::TaskParamsForDidGetQuota() {} | 74 FileSystemOperation::TaskParamsForDidGetQuota::TaskParamsForDidGetQuota() |
| 75 : type(kFileSystemTypeUnknown) { |
| 76 } |
| 77 |
75 FileSystemOperation::TaskParamsForDidGetQuota::~TaskParamsForDidGetQuota() {} | 78 FileSystemOperation::TaskParamsForDidGetQuota::~TaskParamsForDidGetQuota() {} |
76 | 79 |
77 FileSystemOperation::~FileSystemOperation() { | 80 FileSystemOperation::~FileSystemOperation() { |
78 if (file_writer_delegate_.get()) { | 81 if (file_writer_delegate_.get()) { |
79 FileSystemOperationContext* c = | 82 FileSystemOperationContext* c = |
80 new FileSystemOperationContext(operation_context_); | 83 new FileSystemOperationContext(operation_context_); |
81 base::FileUtilProxy::RelayClose( | 84 base::FileUtilProxy::RelayClose( |
82 proxy_, | 85 proxy_, |
83 base::Bind(&FileSystemFileUtil::Close, | 86 base::Bind(&FileSystemFileUtil::Close, |
84 base::Unretained(src_util_), | 87 base::Unretained(src_util_), |
(...skipping 647 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
732 } | 735 } |
733 | 736 |
734 bool FileSystemOperation::SetPendingOperationType(OperationType type) { | 737 bool FileSystemOperation::SetPendingOperationType(OperationType type) { |
735 if (pending_operation_ != kOperationNone) | 738 if (pending_operation_ != kOperationNone) |
736 return false; | 739 return false; |
737 pending_operation_ = type; | 740 pending_operation_ = type; |
738 return true; | 741 return true; |
739 } | 742 } |
740 | 743 |
741 } // namespace fileapi | 744 } // namespace fileapi |
OLD | NEW |