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/appcache/appcache_storage_impl.h" | 5 #include "content/browser/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 11 matching lines...) Expand all Loading... |
22 #include "content/browser/appcache/appcache_entry.h" | 22 #include "content/browser/appcache/appcache_entry.h" |
23 #include "content/browser/appcache/appcache_group.h" | 23 #include "content/browser/appcache/appcache_group.h" |
24 #include "content/browser/appcache/appcache_histograms.h" | 24 #include "content/browser/appcache/appcache_histograms.h" |
25 #include "content/browser/appcache/appcache_quota_client.h" | 25 #include "content/browser/appcache/appcache_quota_client.h" |
26 #include "content/browser/appcache/appcache_response.h" | 26 #include "content/browser/appcache/appcache_response.h" |
27 #include "content/browser/appcache/appcache_service_impl.h" | 27 #include "content/browser/appcache/appcache_service_impl.h" |
28 #include "net/base/cache_type.h" | 28 #include "net/base/cache_type.h" |
29 #include "net/base/net_errors.h" | 29 #include "net/base/net_errors.h" |
30 #include "sql/connection.h" | 30 #include "sql/connection.h" |
31 #include "sql/transaction.h" | 31 #include "sql/transaction.h" |
32 #include "webkit/browser/quota/quota_client.h" | 32 #include "storage/browser/quota/quota_client.h" |
33 #include "webkit/browser/quota/quota_manager.h" | 33 #include "storage/browser/quota/quota_manager.h" |
34 #include "webkit/browser/quota/quota_manager_proxy.h" | 34 #include "storage/browser/quota/quota_manager_proxy.h" |
35 #include "webkit/browser/quota/special_storage_policy.h" | 35 #include "storage/browser/quota/special_storage_policy.h" |
36 | 36 |
37 namespace content { | 37 namespace content { |
38 | 38 |
39 // Hard coded default when not using quota management. | 39 // Hard coded default when not using quota management. |
40 static const int kDefaultQuota = 5 * 1024 * 1024; | 40 static const int kDefaultQuota = 5 * 1024 * 1024; |
41 | 41 |
42 static const int kMaxDiskCacheSize = 250 * 1024 * 1024; | 42 static const int kMaxDiskCacheSize = 250 * 1024 * 1024; |
43 static const int kMaxMemDiskCacheSize = 10 * 1024 * 1024; | 43 static const int kMaxMemDiskCacheSize = 10 * 1024 * 1024; |
44 static const base::FilePath::CharType kDiskCacheDirectoryName[] = | 44 static const base::FilePath::CharType kDiskCacheDirectoryName[] = |
45 FILE_PATH_LITERAL("Cache"); | 45 FILE_PATH_LITERAL("Cache"); |
(...skipping 1811 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1857 base::Bind(&AppCacheStorageImpl::CallScheduleReinitialize, | 1857 base::Bind(&AppCacheStorageImpl::CallScheduleReinitialize, |
1858 weak_factory_.GetWeakPtr())); | 1858 weak_factory_.GetWeakPtr())); |
1859 } | 1859 } |
1860 | 1860 |
1861 void AppCacheStorageImpl::CallScheduleReinitialize() { | 1861 void AppCacheStorageImpl::CallScheduleReinitialize() { |
1862 service_->ScheduleReinitialize(); | 1862 service_->ScheduleReinitialize(); |
1863 // note: 'this' may be deleted at this point. | 1863 // note: 'this' may be deleted at this point. |
1864 } | 1864 } |
1865 | 1865 |
1866 } // namespace content | 1866 } // namespace content |
OLD | NEW |