| 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 STORAGE_BROWSER_QUOTA_QUOTA_DATABASE_H_ | 5 #ifndef STORAGE_BROWSER_QUOTA_QUOTA_DATABASE_H_ |
| 6 #define STORAGE_BROWSER_QUOTA_QUOTA_DATABASE_H_ | 6 #define STORAGE_BROWSER_QUOTA_QUOTA_DATABASE_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 bool DeleteHostQuota(const std::string& host, StorageType type); | 51 bool DeleteHostQuota(const std::string& host, StorageType type); |
| 52 | 52 |
| 53 bool SetOriginLastAccessTime(const GURL& origin, | 53 bool SetOriginLastAccessTime(const GURL& origin, |
| 54 StorageType type, | 54 StorageType type, |
| 55 base::Time last_access_time); | 55 base::Time last_access_time); |
| 56 | 56 |
| 57 bool SetOriginLastModifiedTime(const GURL& origin, | 57 bool SetOriginLastModifiedTime(const GURL& origin, |
| 58 StorageType type, | 58 StorageType type, |
| 59 base::Time last_modified_time); | 59 base::Time last_modified_time); |
| 60 | 60 |
| 61 bool GetOriginLastEvictionTime(const GURL& origin, |
| 62 StorageType type, |
| 63 base::Time* last_eviction_time); |
| 64 bool SetOriginLastEvictionTime(const GURL& origin, |
| 65 StorageType type, |
| 66 base::Time last_eviction_time); |
| 67 bool DeleteOriginLastEvictionTime(const GURL& origin, StorageType type); |
| 68 |
| 61 // Register initial |origins| info |type| to the database. | 69 // Register initial |origins| info |type| to the database. |
| 62 // This method is assumed to be called only after the installation or | 70 // This method is assumed to be called only after the installation or |
| 63 // the database schema reset. | 71 // the database schema reset. |
| 64 bool RegisterInitialOriginInfo( | 72 bool RegisterInitialOriginInfo( |
| 65 const std::set<GURL>& origins, StorageType type); | 73 const std::set<GURL>& origins, StorageType type); |
| 66 | 74 |
| 67 bool DeleteOriginInfo(const GURL& origin, StorageType type); | 75 bool DeleteOriginInfo(const GURL& origin, StorageType type); |
| 68 | 76 |
| 69 bool GetQuotaConfigValue(const char* key, int64* value); | 77 bool GetQuotaConfigValue(const char* key, int64* value); |
| 70 bool SetQuotaConfigValue(const char* key, int64 value); | 78 bool SetQuotaConfigValue(const char* key, int64 value); |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 180 | 188 |
| 181 static const TableSchema kTables[]; | 189 static const TableSchema kTables[]; |
| 182 static const IndexSchema kIndexes[]; | 190 static const IndexSchema kIndexes[]; |
| 183 | 191 |
| 184 DISALLOW_COPY_AND_ASSIGN(QuotaDatabase); | 192 DISALLOW_COPY_AND_ASSIGN(QuotaDatabase); |
| 185 }; | 193 }; |
| 186 | 194 |
| 187 } // namespace storage | 195 } // namespace storage |
| 188 | 196 |
| 189 #endif // STORAGE_BROWSER_QUOTA_QUOTA_DATABASE_H_ | 197 #endif // STORAGE_BROWSER_QUOTA_QUOTA_DATABASE_H_ |
| OLD | NEW |