| 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/browser/fileapi/file_system_quota_client.h" | 5 #include "webkit/browser/fileapi/file_system_quota_client.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <set> | 8 #include <set> |
| 9 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| (...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 base::PostTaskAndReplyWithResult( | 190 base::PostTaskAndReplyWithResult( |
| 191 file_task_runner(), | 191 file_task_runner(), |
| 192 FROM_HERE, | 192 FROM_HERE, |
| 193 base::Bind(&DeleteOriginOnFileThread, | 193 base::Bind(&DeleteOriginOnFileThread, |
| 194 file_system_context_, | 194 file_system_context_, |
| 195 origin, | 195 origin, |
| 196 fs_type), | 196 fs_type), |
| 197 callback); | 197 callback); |
| 198 } | 198 } |
| 199 | 199 |
| 200 bool FileSystemQuotaClient::DoesSupport(quota::StorageType storage_type) const { |
| 201 FileSystemType type = QuotaStorageTypeToFileSystemType(storage_type); |
| 202 DCHECK(type != kFileSystemTypeUnknown); |
| 203 return file_system_context_->IsSandboxFileSystem(type); |
| 204 } |
| 205 |
| 200 base::SequencedTaskRunner* FileSystemQuotaClient::file_task_runner() const { | 206 base::SequencedTaskRunner* FileSystemQuotaClient::file_task_runner() const { |
| 201 return file_system_context_->default_file_task_runner(); | 207 return file_system_context_->default_file_task_runner(); |
| 202 } | 208 } |
| 203 | 209 |
| 204 } // namespace fileapi | 210 } // namespace fileapi |
| OLD | NEW |