| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 WEBKIT_DATABASE_QUOTA_TABLE_H_ | 5 #ifndef WEBKIT_DATABASE_QUOTA_TABLE_H_ |
| 6 #define WEBKIT_DATABASE_QUOTA_TABLE_H_ | 6 #define WEBKIT_DATABASE_QUOTA_TABLE_H_ |
| 7 | 7 |
| 8 #include <vector> | |
| 9 | |
| 10 #include "base/string16.h" | 8 #include "base/string16.h" |
| 11 | 9 |
| 12 namespace sql { | 10 namespace sql { |
| 13 class Connection; | 11 class Connection; |
| 14 } | 12 } |
| 15 | 13 |
| 16 namespace webkit_database { | 14 namespace webkit_database { |
| 17 | 15 |
| 18 class QuotaTable { | 16 class QuotaTable { |
| 19 public: | 17 public: |
| 20 explicit QuotaTable(sql::Connection* db) : db_(db) { } | 18 explicit QuotaTable(sql::Connection* db) : db_(db) { } |
| 21 | 19 |
| 22 bool Init(); | 20 bool Init(); |
| 23 int64 GetOriginQuota(const string16& origin_identifier); | 21 int64 GetOriginQuota(const string16& origin_identifier); |
| 24 bool SetOriginQuota(const string16& origin_identifier, int64 quota); | 22 bool SetOriginQuota(const string16& origin_identifier, int64 quota); |
| 25 bool ClearOriginQuota(const string16& origin_identifier); | 23 bool ClearOriginQuota(const string16& origin_identifier); |
| 26 | 24 |
| 27 private: | 25 private: |
| 28 sql::Connection* db_; | 26 sql::Connection* db_; |
| 29 }; | 27 }; |
| 30 | 28 |
| 31 } // namespace webkit_database | 29 } // namespace webkit_database |
| 32 | 30 |
| 33 #endif // WEBKIT_DATABASE_QUOTA_TABLE_H_ | 31 #endif // WEBKIT_DATABASE_QUOTA_TABLE_H_ |
| OLD | NEW |