| 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" |
| 11 #include "webkit/browser/fileapi/sandbox_file_system_backend_delegate.h" | 11 #include "webkit/browser/fileapi/sandbox_file_system_backend_delegate.h" |
| 12 #include "webkit/browser/webkit_storage_browser_export.h" | 12 #include "webkit/browser/webkit_storage_browser_export.h" |
| 13 #include "webkit/common/quota/quota_status_code.h" | 13 #include "webkit/common/quota/quota_status_code.h" |
| 14 | 14 |
| 15 namespace base { | 15 namespace base { |
| 16 class SequencedTaskRunner; | 16 class SequencedTaskRunner; |
| 17 } | 17 } |
| 18 | 18 |
| 19 namespace content { |
| 20 class QuotaBackendImplTest; |
| 21 } |
| 22 |
| 19 namespace quota { | 23 namespace quota { |
| 20 class QuotaManagerProxy; | 24 class QuotaManagerProxy; |
| 21 } | 25 } |
| 22 | 26 |
| 23 namespace fileapi { | 27 namespace fileapi { |
| 24 | 28 |
| 25 class FileSystemUsageCache; | 29 class FileSystemUsageCache; |
| 26 class ObfuscatedFileUtil; | 30 class ObfuscatedFileUtil; |
| 27 | 31 |
| 28 // An instance of this class is owned by QuotaReservationManager. | 32 // An instance of this class is owned by QuotaReservationManager. |
| (...skipping 24 matching lines...) Expand all Loading... |
| 53 FileSystemType type, | 57 FileSystemType type, |
| 54 int64 delta) OVERRIDE; | 58 int64 delta) OVERRIDE; |
| 55 virtual void IncrementDirtyCount( | 59 virtual void IncrementDirtyCount( |
| 56 const GURL& origin, | 60 const GURL& origin, |
| 57 FileSystemType type) OVERRIDE; | 61 FileSystemType type) OVERRIDE; |
| 58 virtual void DecrementDirtyCount( | 62 virtual void DecrementDirtyCount( |
| 59 const GURL& origin, | 63 const GURL& origin, |
| 60 FileSystemType type) OVERRIDE; | 64 FileSystemType type) OVERRIDE; |
| 61 | 65 |
| 62 private: | 66 private: |
| 63 friend class QuotaBackendImplTest; | 67 friend class content::QuotaBackendImplTest; |
| 64 | 68 |
| 65 struct QuotaReservationInfo { | 69 struct QuotaReservationInfo { |
| 66 QuotaReservationInfo(const GURL& origin, FileSystemType type, int64 delta); | 70 QuotaReservationInfo(const GURL& origin, FileSystemType type, int64 delta); |
| 67 ~QuotaReservationInfo(); | 71 ~QuotaReservationInfo(); |
| 68 | 72 |
| 69 GURL origin; | 73 GURL origin; |
| 70 FileSystemType type; | 74 FileSystemType type; |
| 71 int64 delta; | 75 int64 delta; |
| 72 }; | 76 }; |
| 73 | 77 |
| (...skipping 20 matching lines...) Expand all Loading... |
| 94 scoped_refptr<quota::QuotaManagerProxy> quota_manager_proxy_; | 98 scoped_refptr<quota::QuotaManagerProxy> quota_manager_proxy_; |
| 95 | 99 |
| 96 base::WeakPtrFactory<QuotaBackendImpl> weak_ptr_factory_; | 100 base::WeakPtrFactory<QuotaBackendImpl> weak_ptr_factory_; |
| 97 | 101 |
| 98 DISALLOW_COPY_AND_ASSIGN(QuotaBackendImpl); | 102 DISALLOW_COPY_AND_ASSIGN(QuotaBackendImpl); |
| 99 }; | 103 }; |
| 100 | 104 |
| 101 } // namespace fileapi | 105 } // namespace fileapi |
| 102 | 106 |
| 103 #endif // WEBKIT_BROWSER_FILEAPI_QUOTA_QUOTA_BACKEND_IMPL_H_ | 107 #endif // WEBKIT_BROWSER_FILEAPI_QUOTA_QUOTA_BACKEND_IMPL_H_ |
| OLD | NEW |