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 #ifndef WEBKIT_BROWSER_FILEAPI_QUOTA_QUOTA_BACKEND_IMPL_H_ | 5 #ifndef WEBKIT_BROWSER_FILEAPI_QUOTA_QUOTA_BACKEND_IMPL_H_ |
6 #define WEBKIT_BROWSER_FILEAPI_QUOTA_QUOTA_BACKEND_IMPL_H_ | 6 #define WEBKIT_BROWSER_FILEAPI_QUOTA_QUOTA_BACKEND_IMPL_H_ |
7 | 7 |
8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
10 #include "webkit/browser/fileapi/quota/quota_reservation_manager.h" | 10 #include "webkit/browser/fileapi/quota/quota_reservation_manager.h" |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 | 73 |
74 void DidGetUsageAndQuotaForReserveQuota( | 74 void DidGetUsageAndQuotaForReserveQuota( |
75 const QuotaReservationInfo& info, | 75 const QuotaReservationInfo& info, |
76 const ReserveQuotaCallback& callback, | 76 const ReserveQuotaCallback& callback, |
77 quota::QuotaStatusCode status, | 77 quota::QuotaStatusCode status, |
78 int64 usage, | 78 int64 usage, |
79 int64 quota); | 79 int64 quota); |
80 | 80 |
81 void ReserveQuotaInternal( | 81 void ReserveQuotaInternal( |
82 const QuotaReservationInfo& info); | 82 const QuotaReservationInfo& info); |
83 base::PlatformFileError GetUsageCachePath( | 83 base::File::Error GetUsageCachePath( |
84 const GURL& origin, | 84 const GURL& origin, |
85 FileSystemType type, | 85 FileSystemType type, |
86 base::FilePath* usage_file_path); | 86 base::FilePath* usage_file_path); |
87 | 87 |
88 scoped_refptr<base::SequencedTaskRunner> file_task_runner_; | 88 scoped_refptr<base::SequencedTaskRunner> file_task_runner_; |
89 | 89 |
90 // Owned by SandboxFileSystemBackendDelegate. | 90 // Owned by SandboxFileSystemBackendDelegate. |
91 ObfuscatedFileUtil* obfuscated_file_util_; | 91 ObfuscatedFileUtil* obfuscated_file_util_; |
92 FileSystemUsageCache* file_system_usage_cache_; | 92 FileSystemUsageCache* file_system_usage_cache_; |
93 | 93 |
94 scoped_refptr<quota::QuotaManagerProxy> quota_manager_proxy_; | 94 scoped_refptr<quota::QuotaManagerProxy> quota_manager_proxy_; |
95 | 95 |
96 base::WeakPtrFactory<QuotaBackendImpl> weak_ptr_factory_; | 96 base::WeakPtrFactory<QuotaBackendImpl> weak_ptr_factory_; |
97 | 97 |
98 DISALLOW_COPY_AND_ASSIGN(QuotaBackendImpl); | 98 DISALLOW_COPY_AND_ASSIGN(QuotaBackendImpl); |
99 }; | 99 }; |
100 | 100 |
101 } // namespace fileapi | 101 } // namespace fileapi |
102 | 102 |
103 #endif // WEBKIT_BROWSER_FILEAPI_QUOTA_QUOTA_BACKEND_IMPL_H_ | 103 #endif // WEBKIT_BROWSER_FILEAPI_QUOTA_QUOTA_BACKEND_IMPL_H_ |
OLD | NEW |