Rename GetIconID to GetIconId
[chromium-blink-merge.git] / chrome / browser / extensions / updater / extension_cache_delegate.h
bloba8b5110d7f731a71fb6f689af9e009b8b9db431a
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_
8 #include <stddef.h>
10 #include "base/macros.h"
11 #include "base/time/time.h"
13 namespace base {
15 class FilePath;
17 } // namespace base
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
23 // construction.
24 class ExtensionCacheDelegate {
25 public:
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;
34 private:
35 DISALLOW_ASSIGN(ExtensionCacheDelegate);
38 } // namespace extensions
40 #endif // CHROME_BROWSER_EXTENSIONS_UPDATER_EXTENSION_CACHE_DELEGATE_H_