1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "chrome/browser/extensions/updater/extension_cache_delegate.h"
10 // Default maximum size of local cache on disk, in bytes.
11 const size_t kDefaultCacheSizeLimit
= 256 * 1024 * 1024;
13 // Default minimum size of local cache on disk, in bytes.
14 const int kDefaultMinimumCacheSize
= 1024 * 1024;
16 // Maximum age of unused extensions in the cache.
17 const int kMaxCacheAgeInDays
= 30;
21 ExtensionCacheDelegate::~ExtensionCacheDelegate() {
24 size_t ExtensionCacheDelegate::GetMinimumCacheSize() const {
25 return kDefaultMinimumCacheSize
;
28 size_t ExtensionCacheDelegate::GetMaximumCacheSize() const {
29 return kDefaultCacheSizeLimit
;
32 base::TimeDelta
ExtensionCacheDelegate::GetMaximumCacheAge() const {
33 return base::TimeDelta::FromDays(kMaxCacheAgeInDays
);
36 } // namespace extensions