| 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 #ifndef STORAGE_BROWSER_FILEAPI_FILE_SYSTEM_QUOTA_UTIL_H_ | 5 #ifndef STORAGE_BROWSER_FILEAPI_FILE_SYSTEM_QUOTA_UTIL_H_ |
| 6 #define STORAGE_BROWSER_FILEAPI_FILE_SYSTEM_QUOTA_UTIL_H_ | 6 #define STORAGE_BROWSER_FILEAPI_FILE_SYSTEM_QUOTA_UTIL_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <set> | 10 #include <set> |
| 11 #include <string> | 11 #include <string> |
| 12 | 12 |
| 13 #include "base/files/file.h" | 13 #include "base/files/file.h" |
| 14 #include "storage/browser/storage_browser_export.h" | 14 #include "storage/browser/storage_browser_export.h" |
| 15 #include "storage/common/fileapi/file_system_types.h" | 15 #include "storage/common/fileapi/file_system_types.h" |
| 16 #include "url/gurl.h" | 16 #include "url/gurl.h" |
| 17 | 17 |
| 18 namespace base { | |
| 19 class SequencedTaskRunner; | |
| 20 } | |
| 21 | |
| 22 namespace storage { | 18 namespace storage { |
| 23 class QuotaManagerProxy; | 19 class QuotaManagerProxy; |
| 24 } | 20 } |
| 25 | 21 |
| 26 namespace storage { | 22 namespace storage { |
| 27 | 23 |
| 28 class FileSystemContext; | 24 class FileSystemContext; |
| 29 class QuotaReservation; | 25 class QuotaReservation; |
| 30 | 26 |
| 31 // An abstract interface that provides common quota-related utility functions | 27 // An abstract interface that provides common quota-related utility functions |
| (...skipping 28 matching lines...) Expand all Loading... |
| 60 // Creates new reservation object for the origin and the type. | 56 // Creates new reservation object for the origin and the type. |
| 61 virtual scoped_refptr<QuotaReservation> | 57 virtual scoped_refptr<QuotaReservation> |
| 62 CreateQuotaReservationOnFileTaskRunner( | 58 CreateQuotaReservationOnFileTaskRunner( |
| 63 const GURL& origin_url, | 59 const GURL& origin_url, |
| 64 FileSystemType type) = 0; | 60 FileSystemType type) = 0; |
| 65 }; | 61 }; |
| 66 | 62 |
| 67 } // namespace storage | 63 } // namespace storage |
| 68 | 64 |
| 69 #endif // STORAGE_BROWSER_FILEAPI_FILE_SYSTEM_QUOTA_UTIL_H_ | 65 #endif // STORAGE_BROWSER_FILEAPI_FILE_SYSTEM_QUOTA_UTIL_H_ |
| OLD | NEW |