Pin Chrome's shortcut to the Win10 Start menu on install and OS upgrade.
[chromium-blink-merge.git] / extensions / browser / updater / null_extension_cache.h
blob1a2161a48b976b4ed7ac8efcdb1e90d8ed9938c5
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
3 // found in the LICENSE file.
5 #ifndef EXTENSIONS_BROWSER_UPDATER_NULL_EXTENSION_CACHE_H_
6 #define EXTENSIONS_BROWSER_UPDATER_NULL_EXTENSION_CACHE_H_
8 #include "extensions/browser/updater/extension_cache.h"
10 namespace extensions {
12 // Implements a pass-thru (i.e. do-nothing) ExtensionCache.
13 class NullExtensionCache : public ExtensionCache {
14 public:
15 NullExtensionCache();
16 ~NullExtensionCache() override;
18 // ExtensionCache implementation.
19 void Start(const base::Closure& callback) override;
20 void Shutdown(const base::Closure& callback) override;
21 void AllowCaching(const std::string& id) override;
22 bool GetExtension(const std::string& id,
23 const std::string& expected_hash,
24 base::FilePath* file_path,
25 std::string* version) override;
26 void PutExtension(const std::string& id,
27 const std::string& expected_hash,
28 const base::FilePath& file_path,
29 const std::string& version,
30 const PutExtensionCallback& callback) override;
32 private:
33 DISALLOW_COPY_AND_ASSIGN(NullExtensionCache);
36 } // namespace extensions
38 #endif // EXTENSIONS_BROWSER_UPDATER_NULL_EXTENSION_CACHE_H_