Rename GetIconID to GetIconId
[chromium-blink-merge.git] / chrome / browser / extensions / updater / chromeos_extension_cache_delegate.h
blob5c6199ce361292156a0bd3123787405156c9f95f
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_CHROMEOS_EXTENSION_CACHE_DELEGATE_H_
6 #define CHROME_BROWSER_EXTENSIONS_UPDATER_CHROMEOS_EXTENSION_CACHE_DELEGATE_H_
8 #include "base/files/file_path.h"
9 #include "base/macros.h"
10 #include "chrome/browser/extensions/updater/extension_cache_delegate.h"
12 namespace extensions {
14 // Chrome OS-specific implementation, which has a pre-defined extension cache
15 // path and a policy-configurable maximum cache size.
16 class ChromeOSExtensionCacheDelegate : public ExtensionCacheDelegate {
17 public:
18 ChromeOSExtensionCacheDelegate();
19 explicit ChromeOSExtensionCacheDelegate(const base::FilePath& cache_dir);
21 const base::FilePath& GetCacheDir() const override;
22 size_t GetMaximumCacheSize() const override;
24 private:
25 const base::FilePath cache_dir_;
27 DISALLOW_COPY_AND_ASSIGN(ChromeOSExtensionCacheDelegate);
30 } // namespace extensions
32 #endif // CHROME_BROWSER_EXTENSIONS_UPDATER_CHROMEOS_EXTENSION_CACHE_DELEGATE_H_