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

Side by Side Diff: storage/browser/database/database_quota_client.cc

Issue 539143002: Migrate webkit/browser/ to storage/browser/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix android build Created 6 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
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 "webkit/browser/database/database_quota_client.h" 5 #include "storage/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"
11 #include "base/location.h" 11 #include "base/location.h"
12 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 #include "base/message_loop/message_loop_proxy.h" 13 #include "base/message_loop/message_loop_proxy.h"
14 #include "base/task_runner_util.h" 14 #include "base/task_runner_util.h"
15 #include "net/base/net_errors.h" 15 #include "net/base/net_errors.h"
16 #include "net/base/net_util.h" 16 #include "net/base/net_util.h"
17 #include "webkit/browser/database/database_tracker.h" 17 #include "storage/browser/database/database_tracker.h"
18 #include "webkit/browser/database/database_util.h" 18 #include "storage/browser/database/database_util.h"
19 #include "webkit/common/database/database_identifier.h" 19 #include "storage/common/database/database_identifier.h"
20 20
21 using storage::QuotaClient; 21 using storage::QuotaClient;
22 22
23 namespace storage { 23 namespace storage {
24 24
25 namespace { 25 namespace {
26 26
27 int64 GetOriginUsageOnDBThread( 27 int64 GetOriginUsageOnDBThread(
28 DatabaseTracker* db_tracker, 28 DatabaseTracker* db_tracker,
29 const GURL& origin_url) { 29 const GURL& origin_url) {
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 storage::GetIdentifierFromOrigin(origin), 211 storage::GetIdentifierFromOrigin(origin),
212 delete_callback), 212 delete_callback),
213 delete_callback); 213 delete_callback);
214 } 214 }
215 215
216 bool DatabaseQuotaClient::DoesSupport(storage::StorageType type) const { 216 bool DatabaseQuotaClient::DoesSupport(storage::StorageType type) const {
217 return type == storage::kStorageTypeTemporary; 217 return type == storage::kStorageTypeTemporary;
218 } 218 }
219 219
220 } // namespace storage 220 } // namespace storage
OLDNEW
« no previous file with comments | « storage/browser/database/database_quota_client.h ('k') | storage/browser/database/database_tracker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698