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 #ifndef CHROME_BROWSER_EXTENSIONS_UPDATER_EXTENSION_CACHE_DELEGATE_H_
6 #define CHROME_BROWSER_EXTENSIONS_UPDATER_EXTENSION_CACHE_DELEGATE_H_
10 #include "base/macros.h"
11 #include "base/time/time.h"
19 namespace extensions
{
21 // This class is used to pass ExtensionCacheImpl's initialization parameters.
22 // Every function of this class is called only once during ExtensionCacheImpl
24 class ExtensionCacheDelegate
{
26 virtual ~ExtensionCacheDelegate();
28 virtual const base::FilePath
& GetCacheDir() const = 0;
30 virtual size_t GetMinimumCacheSize() const;
31 virtual size_t GetMaximumCacheSize() const;
32 virtual base::TimeDelta
GetMaximumCacheAge() const;
35 DISALLOW_ASSIGN(ExtensionCacheDelegate
);
38 } // namespace extensions
40 #endif // CHROME_BROWSER_EXTENSIONS_UPDATER_EXTENSION_CACHE_DELEGATE_H_