| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/sandbox_file_system_backend_delegate.h" | 5 #include "webkit/browser/fileapi/sandbox_file_system_backend_delegate.h" |
| 6 | 6 |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/file_util.h" | 10 #include "base/file_util.h" |
| (...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 184 base::Bind(&GetTypeStringForURL), | 184 base::Bind(&GetTypeStringForURL), |
| 185 GetKnownTypeStrings(), | 185 GetKnownTypeStrings(), |
| 186 this))), | 186 this))), |
| 187 file_system_usage_cache_(new FileSystemUsageCache(file_task_runner)), | 187 file_system_usage_cache_(new FileSystemUsageCache(file_task_runner)), |
| 188 quota_observer_(new SandboxQuotaObserver(quota_manager_proxy, | 188 quota_observer_(new SandboxQuotaObserver(quota_manager_proxy, |
| 189 file_task_runner, | 189 file_task_runner, |
| 190 obfuscated_file_util(), | 190 obfuscated_file_util(), |
| 191 usage_cache())), | 191 usage_cache())), |
| 192 quota_reservation_manager_(new QuotaReservationManager( | 192 quota_reservation_manager_(new QuotaReservationManager( |
| 193 scoped_ptr<QuotaReservationManager::QuotaBackend>( | 193 scoped_ptr<QuotaReservationManager::QuotaBackend>( |
| 194 new QuotaBackendImpl(file_task_runner_, | 194 new QuotaBackendImpl(file_task_runner_.get(), |
| 195 obfuscated_file_util(), | 195 obfuscated_file_util(), |
| 196 usage_cache(), | 196 usage_cache(), |
| 197 quota_manager_proxy)))), | 197 quota_manager_proxy)))), |
| 198 special_storage_policy_(special_storage_policy), | 198 special_storage_policy_(special_storage_policy), |
| 199 file_system_options_(file_system_options), | 199 file_system_options_(file_system_options), |
| 200 is_filesystem_opened_(false), | 200 is_filesystem_opened_(false), |
| 201 weak_factory_(this) { | 201 weak_factory_(this) { |
| 202 // Prepopulate database only if it can run asynchronously (i.e. the current | 202 // Prepopulate database only if it can run asynchronously (i.e. the current |
| 203 // thread is not file_task_runner). Usually this is the case but may not | 203 // thread is not file_task_runner). Usually this is the case but may not |
| 204 // in test code. | 204 // in test code. |
| (...skipping 459 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 664 return new ObfuscatedFileUtil(special_storage_policy, | 664 return new ObfuscatedFileUtil(special_storage_policy, |
| 665 file_system_directory, | 665 file_system_directory, |
| 666 env_override, | 666 env_override, |
| 667 file_task_runner, | 667 file_task_runner, |
| 668 base::Bind(&GetTypeStringForURL), | 668 base::Bind(&GetTypeStringForURL), |
| 669 GetKnownTypeStrings(), | 669 GetKnownTypeStrings(), |
| 670 NULL); | 670 NULL); |
| 671 } | 671 } |
| 672 | 672 |
| 673 } // namespace storage | 673 } // namespace storage |
| OLD | NEW |