| 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 "content/browser/indexed_db/indexed_db_quota_client.h" | 5 #include "content/browser/indexed_db/indexed_db_quota_client.h" |
| 6 | 6 |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "content/browser/indexed_db/indexed_db_context_impl.h" | 10 #include "content/browser/indexed_db/indexed_db_context_impl.h" |
| 11 #include "content/public/browser/browser_thread.h" | 11 #include "content/public/browser/browser_thread.h" |
| 12 #include "net/base/net_util.h" | 12 #include "net/base/net_util.h" |
| 13 #include "webkit/browser/database/database_util.h" | 13 #include "storage/browser/database/database_util.h" |
| 14 | 14 |
| 15 using quota::QuotaClient; | 15 using quota::QuotaClient; |
| 16 using webkit_database::DatabaseUtil; | 16 using webkit_database::DatabaseUtil; |
| 17 | 17 |
| 18 namespace content { | 18 namespace content { |
| 19 namespace { | 19 namespace { |
| 20 | 20 |
| 21 quota::QuotaStatusCode DeleteOriginDataOnIndexedDBThread( | 21 quota::QuotaStatusCode DeleteOriginDataOnIndexedDBThread( |
| 22 IndexedDBContextImpl* context, | 22 IndexedDBContextImpl* context, |
| 23 const GURL& origin) { | 23 const GURL& origin) { |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 173 base::Bind( | 173 base::Bind( |
| 174 &DeleteOriginDataOnIndexedDBThread, indexed_db_context_, origin), | 174 &DeleteOriginDataOnIndexedDBThread, indexed_db_context_, origin), |
| 175 callback); | 175 callback); |
| 176 } | 176 } |
| 177 | 177 |
| 178 bool IndexedDBQuotaClient::DoesSupport(quota::StorageType type) const { | 178 bool IndexedDBQuotaClient::DoesSupport(quota::StorageType type) const { |
| 179 return type == quota::kStorageTypeTemporary; | 179 return type == quota::kStorageTypeTemporary; |
| 180 } | 180 } |
| 181 | 181 |
| 182 } // namespace content | 182 } // namespace content |
| OLD | NEW |