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

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

Issue 1355063004: Template methods on Timer classes instead of the classes themselves. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: timer: fixcaller Created 5 years, 3 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 | « remoting/protocol/pseudotcp_adapter.cc ('k') | storage/browser/quota/quota_manager.h » ('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 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 bool DumpQuotaTable(const QuotaTableCallback& callback); 167 bool DumpQuotaTable(const QuotaTableCallback& callback);
168 bool DumpOriginInfoTable(const OriginInfoTableCallback& callback); 168 bool DumpOriginInfoTable(const OriginInfoTableCallback& callback);
169 169
170 base::FilePath db_file_path_; 170 base::FilePath db_file_path_;
171 171
172 scoped_ptr<sql::Connection> db_; 172 scoped_ptr<sql::Connection> db_;
173 scoped_ptr<sql::MetaTable> meta_table_; 173 scoped_ptr<sql::MetaTable> meta_table_;
174 bool is_recreating_; 174 bool is_recreating_;
175 bool is_disabled_; 175 bool is_disabled_;
176 176
177 base::OneShotTimer<QuotaDatabase> timer_; 177 base::OneShotTimer timer_;
178 178
179 friend class content::QuotaDatabaseTest; 179 friend class content::QuotaDatabaseTest;
180 friend class QuotaManager; 180 friend class QuotaManager;
181 181
182 static const TableSchema kTables[]; 182 static const TableSchema kTables[];
183 static const IndexSchema kIndexes[]; 183 static const IndexSchema kIndexes[];
184 184
185 DISALLOW_COPY_AND_ASSIGN(QuotaDatabase); 185 DISALLOW_COPY_AND_ASSIGN(QuotaDatabase);
186 }; 186 };
187 187
188 } // namespace storage 188 } // namespace storage
189 189
190 #endif // STORAGE_BROWSER_QUOTA_QUOTA_DATABASE_H_ 190 #endif // STORAGE_BROWSER_QUOTA_QUOTA_DATABASE_H_
OLDNEW
« no previous file with comments | « remoting/protocol/pseudotcp_adapter.cc ('k') | storage/browser/quota/quota_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698