diff options
Diffstat (limited to 'webkit/fileapi/file_system_quota_manager.h')
-rw-r--r-- | webkit/fileapi/file_system_quota_manager.h | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/webkit/fileapi/file_system_quota_manager.h b/webkit/fileapi/file_system_quota_manager.h index f1c94e1..b7d4d04 100644 --- a/webkit/fileapi/file_system_quota_manager.h +++ b/webkit/fileapi/file_system_quota_manager.h @@ -8,8 +8,13 @@ #include <set> #include "base/basictypes.h" +#include "base/ref_counted.h" #include "googleurl/src/gurl.h" +namespace quota { +class SpecialStoragePolicy; +} + namespace fileapi { // A quota manager for FileSystem. For now it has little implementation @@ -23,7 +28,8 @@ class FileSystemQuotaManager { // If |unlimited_quota| is true, unlimited access is granted for every // origin. This flag must be used only for testing. FileSystemQuotaManager(bool allow_file_access_from_files, - bool unlimited_quota); + bool unlimited_quota, + quota::SpecialStoragePolicy* special_storage_policy); ~FileSystemQuotaManager(); // Checks if the origin can grow its usage by |growth| bytes. @@ -32,17 +38,13 @@ class FileSystemQuotaManager { // that are not in the in-memory unlimited_quota_origins map. bool CheckOriginQuota(const GURL& origin, int64 growth); - // Maintains origins in memory that are allowed to have unlimited quota. - void SetOriginQuotaUnlimited(const GURL& origin); - void ResetOriginQuotaUnlimited(const GURL& origin); - bool CheckIfOriginGrantedUnlimitedQuota(const GURL& origin); - private: // For some extensions/apps we allow unlimited quota. std::set<GURL> unlimited_quota_origins_; const bool allow_file_access_from_files_; const bool unlimited_quota_; + scoped_refptr<quota::SpecialStoragePolicy> special_storage_policy_; DISALLOW_COPY_AND_ASSIGN(FileSystemQuotaManager); }; |