| 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/browser/appcache/appcache_storage_impl.h" | 5 #include "webkit/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 12 matching lines...) Expand all Loading... |
| 23 #include "webkit/browser/appcache/appcache.h" | 23 #include "webkit/browser/appcache/appcache.h" |
| 24 #include "webkit/browser/appcache/appcache_database.h" | 24 #include "webkit/browser/appcache/appcache_database.h" |
| 25 #include "webkit/browser/appcache/appcache_entry.h" | 25 #include "webkit/browser/appcache/appcache_entry.h" |
| 26 #include "webkit/browser/appcache/appcache_group.h" | 26 #include "webkit/browser/appcache/appcache_group.h" |
| 27 #include "webkit/browser/appcache/appcache_histograms.h" | 27 #include "webkit/browser/appcache/appcache_histograms.h" |
| 28 #include "webkit/browser/appcache/appcache_quota_client.h" | 28 #include "webkit/browser/appcache/appcache_quota_client.h" |
| 29 #include "webkit/browser/appcache/appcache_response.h" | 29 #include "webkit/browser/appcache/appcache_response.h" |
| 30 #include "webkit/browser/appcache/appcache_service.h" | 30 #include "webkit/browser/appcache/appcache_service.h" |
| 31 #include "webkit/browser/quota/quota_client.h" | 31 #include "webkit/browser/quota/quota_client.h" |
| 32 #include "webkit/browser/quota/quota_manager.h" | 32 #include "webkit/browser/quota/quota_manager.h" |
| 33 #include "webkit/browser/quota/quota_manager_proxy.h" |
| 33 #include "webkit/browser/quota/special_storage_policy.h" | 34 #include "webkit/browser/quota/special_storage_policy.h" |
| 34 | 35 |
| 35 namespace appcache { | 36 namespace appcache { |
| 36 | 37 |
| 37 // Hard coded default when not using quota management. | 38 // Hard coded default when not using quota management. |
| 38 static const int kDefaultQuota = 5 * 1024 * 1024; | 39 static const int kDefaultQuota = 5 * 1024 * 1024; |
| 39 | 40 |
| 40 static const int kMaxDiskCacheSize = 250 * 1024 * 1024; | 41 static const int kMaxDiskCacheSize = 250 * 1024 * 1024; |
| 41 static const int kMaxMemDiskCacheSize = 10 * 1024 * 1024; | 42 static const int kMaxMemDiskCacheSize = 10 * 1024 * 1024; |
| 42 static const base::FilePath::CharType kDiskCacheDirectoryName[] = | 43 static const base::FilePath::CharType kDiskCacheDirectoryName[] = |
| (...skipping 1778 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1821 } | 1822 } |
| 1822 } | 1823 } |
| 1823 } | 1824 } |
| 1824 | 1825 |
| 1825 void AppCacheStorageImpl::CallReinitialize() { | 1826 void AppCacheStorageImpl::CallReinitialize() { |
| 1826 service_->Reinitialize(); | 1827 service_->Reinitialize(); |
| 1827 // note: 'this' may be deleted during reinit. | 1828 // note: 'this' may be deleted during reinit. |
| 1828 } | 1829 } |
| 1829 | 1830 |
| 1830 } // namespace appcache | 1831 } // namespace appcache |
| OLD | NEW |