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

Side by Side Diff: chrome/browser/extensions/updater/extension_cache_fake.h

Issue 624153002: replace OVERRIDE and FINAL with override and final in chrome/browser/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 CHROME_BROWSER_EXTENSIONS_UPDATER_EXTENSION_CACHE_FAKE_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_UPDATER_EXTENSION_CACHE_FAKE_H_
6 #define CHROME_BROWSER_EXTENSIONS_UPDATER_EXTENSION_CACHE_FAKE_H_ 6 #define CHROME_BROWSER_EXTENSIONS_UPDATER_EXTENSION_CACHE_FAKE_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
11 11
12 #include "chrome/browser/extensions/updater/extension_cache.h" 12 #include "chrome/browser/extensions/updater/extension_cache.h"
13 13
14 namespace extensions { 14 namespace extensions {
15 15
16 // Fake implementation of extensions ExtensionCache that can be used in tests. 16 // Fake implementation of extensions ExtensionCache that can be used in tests.
17 class ExtensionCacheFake : public ExtensionCache { 17 class ExtensionCacheFake : public ExtensionCache {
18 public: 18 public:
19 ExtensionCacheFake(); 19 ExtensionCacheFake();
20 virtual ~ExtensionCacheFake(); 20 virtual ~ExtensionCacheFake();
21 21
22 // Implementation of ExtensionCache. 22 // Implementation of ExtensionCache.
23 virtual void Start(const base::Closure& callback) OVERRIDE; 23 virtual void Start(const base::Closure& callback) override;
24 virtual void Shutdown(const base::Closure& callback) OVERRIDE; 24 virtual void Shutdown(const base::Closure& callback) override;
25 virtual void AllowCaching(const std::string& id) OVERRIDE; 25 virtual void AllowCaching(const std::string& id) override;
26 virtual bool GetExtension(const std::string& id, 26 virtual bool GetExtension(const std::string& id,
27 base::FilePath* file_path, 27 base::FilePath* file_path,
28 std::string* version) OVERRIDE; 28 std::string* version) override;
29 virtual void PutExtension(const std::string& id, 29 virtual void PutExtension(const std::string& id,
30 const base::FilePath& file_path, 30 const base::FilePath& file_path,
31 const std::string& version, 31 const std::string& version,
32 const PutExtensionCallback& callback) OVERRIDE; 32 const PutExtensionCallback& callback) override;
33 33
34 private: 34 private:
35 typedef std::map<std::string, std::pair<std::string, base::FilePath> > Map; 35 typedef std::map<std::string, std::pair<std::string, base::FilePath> > Map;
36 // Set of extensions that can be cached. 36 // Set of extensions that can be cached.
37 std::set<std::string> allowed_extensions_; 37 std::set<std::string> allowed_extensions_;
38 38
39 // Map of know extensions. 39 // Map of know extensions.
40 Map cache_; 40 Map cache_;
41 41
42 DISALLOW_COPY_AND_ASSIGN(ExtensionCacheFake); 42 DISALLOW_COPY_AND_ASSIGN(ExtensionCacheFake);
43 }; 43 };
44 44
45 } // namespace extensions 45 } // namespace extensions
46 46
47 #endif // CHROME_BROWSER_EXTENSIONS_UPDATER_EXTENSION_CACHE_FAKE_H_ 47 #endif // CHROME_BROWSER_EXTENSIONS_UPDATER_EXTENSION_CACHE_FAKE_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/updater/extension_cache.cc ('k') | chrome/browser/extensions/updater/extension_cache_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698