| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 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 #ifndef CHROME_BROWSER_EXTENSIONS_UPDATER_CHROMEOS_EXTENSION_CACHE_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_UPDATER_CHROMEOS_EXTENSION_CACHE_DELEGATE_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_UPDATER_CHROMEOS_EXTENSION_CACHE_DELEGATE_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_UPDATER_CHROMEOS_EXTENSION_CACHE_DELEGATE_H_ |
| 7 | 7 |
| 8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
| 9 #include "base/macros.h" | 9 #include "base/macros.h" |
| 10 #include "chrome/browser/extensions/updater/extension_cache_delegate.h" | 10 #include "chrome/browser/extensions/updater/extension_cache_delegate.h" |
| 11 | 11 |
| 12 namespace extensions { | 12 namespace extensions { |
| 13 | 13 |
| 14 // Chrome OS-specific implementation, which has a pre-defined extension cache | 14 // Chrome OS-specific implementation, which has a pre-defined extension cache |
| 15 // path and a policy-configurable maximum cache size. | 15 // path and a policy-configurable maximum cache size. |
| 16 class ChromeOSExtensionCacheDelegate : public ExtensionCacheDelegate { | 16 class ChromeOSExtensionCacheDelegate : public ExtensionCacheDelegate { |
| 17 public: | 17 public: |
| 18 ChromeOSExtensionCacheDelegate(); | 18 ChromeOSExtensionCacheDelegate(); |
| 19 explicit ChromeOSExtensionCacheDelegate(const base::FilePath& cache_dir); | 19 explicit ChromeOSExtensionCacheDelegate(const base::FilePath& cache_dir); |
| 20 | 20 |
| 21 const base::FilePath& GetCacheDir() const override; | 21 const base::FilePath& GetCacheDir() const override; |
| 22 size_t GetMaximumCacheSize() const override; | 22 size_t GetMaximumCacheSize() const override; |
| 23 | 23 |
| 24 private: | 24 private: |
| 25 const base::FilePath cache_dir_; | 25 base::FilePath cache_dir_; |
| 26 | 26 |
| 27 DISALLOW_COPY_AND_ASSIGN(ChromeOSExtensionCacheDelegate); | 27 DISALLOW_COPY_AND_ASSIGN(ChromeOSExtensionCacheDelegate); |
| 28 }; | 28 }; |
| 29 | 29 |
| 30 } // namespace extensions | 30 } // namespace extensions |
| 31 | 31 |
| 32 #endif // CHROME_BROWSER_EXTENSIONS_UPDATER_CHROMEOS_EXTENSION_CACHE_DELEGATE_H
_ | 32 #endif // CHROME_BROWSER_EXTENSIONS_UPDATER_CHROMEOS_EXTENSION_CACHE_DELEGATE_H
_ |
| OLD | NEW |