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

Side by Side Diff: content/browser/indexed_db/indexed_db_quota_client.cc

Issue 442383002: Move storage-related files from webkit/ to new top-level directory storage/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 4 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 | Annotate | Revision Log
OLDNEW
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
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
OLDNEW
« no previous file with comments | « content/browser/indexed_db/indexed_db_quota_client.h ('k') | content/browser/indexed_db/indexed_db_quota_client_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698