Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(136)

Side by Side Diff: extensions/browser/updater/null_extension_cache.h

Issue 664933004: Standardize usage of virtual/override/final in extensions/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 "extensions/browser/updater/extension_cache.h" 8 #include "extensions/browser/updater/extension_cache.h"
9 9
10 namespace extensions { 10 namespace extensions {
11 11
12 // Implements a pass-thru (i.e. do-nothing) ExtensionCache. 12 // Implements a pass-thru (i.e. do-nothing) ExtensionCache.
13 class NullExtensionCache : public ExtensionCache { 13 class NullExtensionCache : public ExtensionCache {
14 public: 14 public:
15 NullExtensionCache(); 15 NullExtensionCache();
16 virtual ~NullExtensionCache(); 16 ~NullExtensionCache() override;
17 17
18 // ExtensionCache implementation. 18 // ExtensionCache implementation.
19 virtual void Start(const base::Closure& callback) override; 19 void Start(const base::Closure& callback) override;
20 virtual void Shutdown(const base::Closure& callback) override; 20 void Shutdown(const base::Closure& callback) override;
21 virtual void AllowCaching(const std::string& id) override; 21 void AllowCaching(const std::string& id) override;
22 virtual bool GetExtension(const std::string& id, 22 bool GetExtension(const std::string& id,
23 base::FilePath* file_path, 23 base::FilePath* file_path,
24 std::string* version) override; 24 std::string* version) override;
25 virtual void PutExtension(const std::string& id, 25 void PutExtension(const std::string& id,
26 const base::FilePath& file_path, 26 const base::FilePath& file_path,
27 const std::string& version, 27 const std::string& version,
28 const PutExtensionCallback& callback) override; 28 const PutExtensionCallback& callback) override;
29 29
30 private: 30 private:
31 DISALLOW_COPY_AND_ASSIGN(NullExtensionCache); 31 DISALLOW_COPY_AND_ASSIGN(NullExtensionCache);
32 }; 32 };
33 33
34 } // namespace extensions 34 } // namespace extensions
35 35
36 #endif // EXTENSIONS_BROWSER_UPDATER_NULL_EXTENSION_CACHE_H_ 36 #endif // EXTENSIONS_BROWSER_UPDATER_NULL_EXTENSION_CACHE_H_
OLDNEW
« no previous file with comments | « extensions/browser/updater/extension_downloader.h ('k') | extensions/browser/updater/safe_manifest_parser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698