OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #include "webkit/browser/database/database_quota_client.h" | 5 #include "webkit/browser/database/database_quota_client.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
208 PostTaskAndReplyWithResult( | 208 PostTaskAndReplyWithResult( |
209 db_tracker_thread_.get(), | 209 db_tracker_thread_.get(), |
210 FROM_HERE, | 210 FROM_HERE, |
211 base::Bind(&DatabaseTracker::DeleteDataForOrigin, | 211 base::Bind(&DatabaseTracker::DeleteDataForOrigin, |
212 db_tracker_, | 212 db_tracker_, |
213 webkit_database::GetIdentifierFromOrigin(origin), | 213 webkit_database::GetIdentifierFromOrigin(origin), |
214 delete_callback), | 214 delete_callback), |
215 delete_callback); | 215 delete_callback); |
216 } | 216 } |
217 | 217 |
| 218 bool DatabaseQuotaClient::DoesSupport(quota::StorageType type) const { |
| 219 return type == quota::kStorageTypeTemporary; |
| 220 } |
| 221 |
218 } // namespace webkit_database | 222 } // namespace webkit_database |
OLD | NEW |