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/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 Loading... |
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 Loading... |
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 |
OLD | NEW |