| 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/file_system_mount_point_provider.h" |  | 
| 9 #include "webkit/fileapi/async_file_test_helper.h" | 8 #include "webkit/fileapi/async_file_test_helper.h" | 
| 10 #include "webkit/fileapi/file_system_context.h" | 9 #include "webkit/fileapi/file_system_context.h" | 
|  | 10 #include "webkit/fileapi/file_system_mount_point_provider.h" | 
| 11 #include "webkit/fileapi/file_system_url.h" | 11 #include "webkit/fileapi/file_system_url.h" | 
| 12 #include "webkit/fileapi/file_system_util.h" | 12 #include "webkit/fileapi/file_system_util.h" | 
| 13 #include "webkit/quota/quota_manager.h" | 13 #include "webkit/quota/quota_manager.h" | 
| 14 | 14 | 
| 15 namespace fileapi { | 15 namespace fileapi { | 
| 16 | 16 | 
| 17 namespace { | 17 namespace { | 
| 18 | 18 | 
| 19 typedef FileSystemOperation::FileEntryList FileEntryList; | 19 typedef FileSystemOperation::FileEntryList FileEntryList; | 
| 20 | 20 | 
| (...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 226   quota::QuotaStatusCode status = quota::kQuotaStatusUnknown; | 226   quota::QuotaStatusCode status = quota::kQuotaStatusUnknown; | 
| 227   quota_manager->GetUsageAndQuota( | 227   quota_manager->GetUsageAndQuota( | 
| 228       origin, | 228       origin, | 
| 229       FileSystemTypeToQuotaStorageType(type), | 229       FileSystemTypeToQuotaStorageType(type), | 
| 230       base::Bind(&DidGetUsageAndQuota, &status, usage, quota)); | 230       base::Bind(&DidGetUsageAndQuota, &status, usage, quota)); | 
| 231   base::MessageLoop::current()->RunUntilIdle(); | 231   base::MessageLoop::current()->RunUntilIdle(); | 
| 232   return status; | 232   return status; | 
| 233 } | 233 } | 
| 234 | 234 | 
| 235 }  // namespace fileapi | 235 }  // namespace fileapi | 
| OLD | NEW | 
|---|