| 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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 bool GetOriginsModifiedSince(StorageType type, | 84 bool GetOriginsModifiedSince(StorageType type, |
| 85 std::set<GURL>* origins, | 85 std::set<GURL>* origins, |
| 86 base::Time modified_since); | 86 base::Time modified_since); |
| 87 | 87 |
| 88 // Returns false if SetOriginDatabaseBootstrapped has never | 88 // Returns false if SetOriginDatabaseBootstrapped has never |
| 89 // been called before, which means existing origins may not have been | 89 // been called before, which means existing origins may not have been |
| 90 // registered. | 90 // registered. |
| 91 bool IsOriginDatabaseBootstrapped(); | 91 bool IsOriginDatabaseBootstrapped(); |
| 92 bool SetOriginDatabaseBootstrapped(bool bootstrap_flag); | 92 bool SetOriginDatabaseBootstrapped(bool bootstrap_flag); |
| 93 | 93 |
| 94 bool GetDurabilityForOrigin(const GURL& origin, bool* durable); |
| 95 |
| 94 private: | 96 private: |
| 95 struct STORAGE_EXPORT_PRIVATE QuotaTableEntry { | 97 struct STORAGE_EXPORT_PRIVATE QuotaTableEntry { |
| 96 QuotaTableEntry(); | 98 QuotaTableEntry(); |
| 97 QuotaTableEntry( | 99 QuotaTableEntry( |
| 98 const std::string& host, | 100 const std::string& host, |
| 99 StorageType type, | 101 StorageType type, |
| 100 int64 quota); | 102 int64 quota); |
| 101 std::string host; | 103 std::string host; |
| 102 StorageType type; | 104 StorageType type; |
| 103 int64 quota; | 105 int64 quota; |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 181 | 183 |
| 182 static const TableSchema kTables[]; | 184 static const TableSchema kTables[]; |
| 183 static const IndexSchema kIndexes[]; | 185 static const IndexSchema kIndexes[]; |
| 184 | 186 |
| 185 DISALLOW_COPY_AND_ASSIGN(QuotaDatabase); | 187 DISALLOW_COPY_AND_ASSIGN(QuotaDatabase); |
| 186 }; | 188 }; |
| 187 | 189 |
| 188 } // namespace storage | 190 } // namespace storage |
| 189 | 191 |
| 190 #endif // STORAGE_BROWSER_QUOTA_QUOTA_DATABASE_H_ | 192 #endif // STORAGE_BROWSER_QUOTA_QUOTA_DATABASE_H_ |
| OLD | NEW |