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

Side by Side Diff: webkit/appcache/appcache_storage_impl.cc

Issue 16010007: Move webkit/quota files to webkit/browser/quota or webkit/common/quota (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 6 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
« no previous file with comments | « webkit/appcache/appcache_storage.cc ('k') | webkit/appcache/appcache_storage_impl_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/appcache/appcache_storage_impl.h" 5 #include "webkit/appcache/appcache_storage_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <functional> 8 #include <functional>
9 #include <set> 9 #include <set>
10 #include <vector> 10 #include <vector>
(...skipping 10 matching lines...) Expand all
21 #include "sql/connection.h" 21 #include "sql/connection.h"
22 #include "sql/transaction.h" 22 #include "sql/transaction.h"
23 #include "webkit/appcache/appcache.h" 23 #include "webkit/appcache/appcache.h"
24 #include "webkit/appcache/appcache_database.h" 24 #include "webkit/appcache/appcache_database.h"
25 #include "webkit/appcache/appcache_entry.h" 25 #include "webkit/appcache/appcache_entry.h"
26 #include "webkit/appcache/appcache_group.h" 26 #include "webkit/appcache/appcache_group.h"
27 #include "webkit/appcache/appcache_histograms.h" 27 #include "webkit/appcache/appcache_histograms.h"
28 #include "webkit/appcache/appcache_quota_client.h" 28 #include "webkit/appcache/appcache_quota_client.h"
29 #include "webkit/appcache/appcache_response.h" 29 #include "webkit/appcache/appcache_response.h"
30 #include "webkit/appcache/appcache_service.h" 30 #include "webkit/appcache/appcache_service.h"
31 #include "webkit/quota/quota_client.h" 31 #include "webkit/browser/quota/quota_client.h"
32 #include "webkit/quota/quota_manager.h" 32 #include "webkit/browser/quota/quota_manager.h"
33 #include "webkit/quota/special_storage_policy.h" 33 #include "webkit/browser/quota/special_storage_policy.h"
34 34
35 namespace appcache { 35 namespace appcache {
36 36
37 // Hard coded default when not using quota management. 37 // Hard coded default when not using quota management.
38 static const int kDefaultQuota = 5 * 1024 * 1024; 38 static const int kDefaultQuota = 5 * 1024 * 1024;
39 39
40 static const int kMaxDiskCacheSize = 250 * 1024 * 1024; 40 static const int kMaxDiskCacheSize = 250 * 1024 * 1024;
41 static const int kMaxMemDiskCacheSize = 10 * 1024 * 1024; 41 static const int kMaxMemDiskCacheSize = 10 * 1024 * 1024;
42 static const base::FilePath::CharType kDiskCacheDirectoryName[] = 42 static const base::FilePath::CharType kDiskCacheDirectoryName[] =
43 FILE_PATH_LITERAL("Cache"); 43 FILE_PATH_LITERAL("Cache");
(...skipping 1763 matching lines...) Expand 10 before | Expand all | Expand 10 after
1807 if (!is_incognito_) { 1807 if (!is_incognito_) {
1808 VLOG(1) << "Deleting existing appcache data and starting over."; 1808 VLOG(1) << "Deleting existing appcache data and starting over.";
1809 db_thread_->PostTask( 1809 db_thread_->PostTask(
1810 FROM_HERE, base::Bind(base::IgnoreResult(&file_util::Delete), 1810 FROM_HERE, base::Bind(base::IgnoreResult(&file_util::Delete),
1811 cache_directory_, true)); 1811 cache_directory_, true));
1812 } 1812 }
1813 } 1813 }
1814 } 1814 }
1815 1815
1816 } // namespace appcache 1816 } // namespace appcache
OLDNEW
« no previous file with comments | « webkit/appcache/appcache_storage.cc ('k') | webkit/appcache/appcache_storage_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698