| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 EXTENSIONS_BROWSER_UPDATER_NULL_EXTENSION_CACHE_H_ | 5 #ifndef EXTENSIONS_BROWSER_UPDATER_NULL_EXTENSION_CACHE_H_ |
| 6 #define EXTENSIONS_BROWSER_UPDATER_NULL_EXTENSION_CACHE_H_ | 6 #define EXTENSIONS_BROWSER_UPDATER_NULL_EXTENSION_CACHE_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" |
| 8 #include "extensions/browser/updater/extension_cache.h" | 9 #include "extensions/browser/updater/extension_cache.h" |
| 9 | 10 |
| 10 namespace extensions { | 11 namespace extensions { |
| 11 | 12 |
| 12 // Implements a pass-thru (i.e. do-nothing) ExtensionCache. | 13 // Implements a pass-thru (i.e. do-nothing) ExtensionCache. |
| 13 class NullExtensionCache : public ExtensionCache { | 14 class NullExtensionCache : public ExtensionCache { |
| 14 public: | 15 public: |
| 15 NullExtensionCache(); | 16 NullExtensionCache(); |
| 16 ~NullExtensionCache() override; | 17 ~NullExtensionCache() override; |
| 17 | 18 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 29 const std::string& version, | 30 const std::string& version, |
| 30 const PutExtensionCallback& callback) override; | 31 const PutExtensionCallback& callback) override; |
| 31 | 32 |
| 32 private: | 33 private: |
| 33 DISALLOW_COPY_AND_ASSIGN(NullExtensionCache); | 34 DISALLOW_COPY_AND_ASSIGN(NullExtensionCache); |
| 34 }; | 35 }; |
| 35 | 36 |
| 36 } // namespace extensions | 37 } // namespace extensions |
| 37 | 38 |
| 38 #endif // EXTENSIONS_BROWSER_UPDATER_NULL_EXTENSION_CACHE_H_ | 39 #endif // EXTENSIONS_BROWSER_UPDATER_NULL_EXTENSION_CACHE_H_ |
| OLD | NEW |