Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4)

Side by Side Diff: storage/browser/quota/quota_database.h

Issue 1102353009: WIP Durable storage, chrome side (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ToT Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « storage/browser/quota/quota_callbacks.h ('k') | storage/browser/quota/quota_database.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « storage/browser/quota/quota_callbacks.h ('k') | storage/browser/quota/quota_database.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698