OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 "base/bind.h" | 5 #include "base/bind.h" |
6 #include "base/run_loop.h" | 6 #include "base/run_loop.h" |
7 #include "testing/gtest/include/gtest/gtest.h" | 7 #include "testing/gtest/include/gtest/gtest.h" |
8 #include "webkit/browser/fileapi/async_file_test_helper.h" | 8 #include "webkit/browser/fileapi/async_file_test_helper.h" |
| 9 #include "webkit/browser/fileapi/file_system_backend.h" |
9 #include "webkit/browser/fileapi/file_system_context.h" | 10 #include "webkit/browser/fileapi/file_system_context.h" |
10 #include "webkit/browser/fileapi/file_system_mount_point_provider.h" | |
11 #include "webkit/browser/fileapi/file_system_operation_runner.h" | 11 #include "webkit/browser/fileapi/file_system_operation_runner.h" |
12 #include "webkit/browser/fileapi/file_system_url.h" | 12 #include "webkit/browser/fileapi/file_system_url.h" |
13 #include "webkit/browser/quota/quota_manager.h" | 13 #include "webkit/browser/quota/quota_manager.h" |
14 #include "webkit/common/fileapi/file_system_util.h" | 14 #include "webkit/common/fileapi/file_system_util.h" |
15 | 15 |
16 namespace fileapi { | 16 namespace fileapi { |
17 | 17 |
18 namespace { | 18 namespace { |
19 | 19 |
20 typedef FileSystemOperation::FileEntryList FileEntryList; | 20 typedef FileSystemOperation::FileEntryList FileEntryList; |
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
230 quota::QuotaStatusCode status = quota::kQuotaStatusUnknown; | 230 quota::QuotaStatusCode status = quota::kQuotaStatusUnknown; |
231 quota_manager->GetUsageAndQuota( | 231 quota_manager->GetUsageAndQuota( |
232 origin, | 232 origin, |
233 FileSystemTypeToQuotaStorageType(type), | 233 FileSystemTypeToQuotaStorageType(type), |
234 base::Bind(&DidGetUsageAndQuota, &status, usage, quota)); | 234 base::Bind(&DidGetUsageAndQuota, &status, usage, quota)); |
235 base::MessageLoop::current()->RunUntilIdle(); | 235 base::MessageLoop::current()->RunUntilIdle(); |
236 return status; | 236 return status; |
237 } | 237 } |
238 | 238 |
239 } // namespace fileapi | 239 } // namespace fileapi |
OLD | NEW |