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

Side by Side Diff: chrome/browser/extensions/updater/extension_cache_impl.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_IMPL_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_UPDATER_EXTENSION_CACHE_IMPL_H_
6 #define CHROME_BROWSER_EXTENSIONS_UPDATER_EXTENSION_CACHE_IMPL_H_ 6 #define CHROME_BROWSER_EXTENSIONS_UPDATER_EXTENSION_CACHE_IMPL_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 13 matching lines...) Expand all
24 class LocalExtensionCache; 24 class LocalExtensionCache;
25 25
26 // Singleton call that caches extensions .crx files to share them between 26 // Singleton call that caches extensions .crx files to share them between
27 // multiple users and profiles on the machine. 27 // multiple users and profiles on the machine.
28 class ExtensionCacheImpl : public ExtensionCache, 28 class ExtensionCacheImpl : public ExtensionCache,
29 public content::NotificationObserver { 29 public content::NotificationObserver {
30 public: 30 public:
31 static ExtensionCacheImpl* GetInstance(); 31 static ExtensionCacheImpl* GetInstance();
32 32
33 // Implementation of ExtensionCache. 33 // Implementation of ExtensionCache.
34 virtual void Start(const base::Closure& callback) OVERRIDE; 34 virtual void Start(const base::Closure& callback) override;
35 virtual void Shutdown(const base::Closure& callback) OVERRIDE; 35 virtual void Shutdown(const base::Closure& callback) override;
36 virtual void AllowCaching(const std::string& id) OVERRIDE; 36 virtual void AllowCaching(const std::string& id) override;
37 virtual bool GetExtension(const std::string& id, 37 virtual bool GetExtension(const std::string& id,
38 base::FilePath* file_path, 38 base::FilePath* file_path,
39 std::string* version) OVERRIDE; 39 std::string* version) override;
40 virtual void PutExtension(const std::string& id, 40 virtual void PutExtension(const std::string& id,
41 const base::FilePath& file_path, 41 const base::FilePath& file_path,
42 const std::string& version, 42 const std::string& version,
43 const PutExtensionCallback& callback) OVERRIDE; 43 const PutExtensionCallback& callback) override;
44 44
45 // Implementation of content::NotificationObserver: 45 // Implementation of content::NotificationObserver:
46 virtual void Observe(int type, 46 virtual void Observe(int type,
47 const content::NotificationSource& source, 47 const content::NotificationSource& source,
48 const content::NotificationDetails& details) OVERRIDE; 48 const content::NotificationDetails& details) override;
49 49
50 private: 50 private:
51 friend struct DefaultSingletonTraits<ExtensionCacheImpl>; 51 friend struct DefaultSingletonTraits<ExtensionCacheImpl>;
52 52
53 ExtensionCacheImpl(); 53 ExtensionCacheImpl();
54 virtual ~ExtensionCacheImpl(); 54 virtual ~ExtensionCacheImpl();
55 55
56 // Callback that is called when local cache is ready. 56 // Callback that is called when local cache is ready.
57 void OnCacheInitialized(); 57 void OnCacheInitialized();
58 58
(...skipping 11 matching lines...) Expand all
70 70
71 // Weak factory for callbacks. 71 // Weak factory for callbacks.
72 base::WeakPtrFactory<ExtensionCacheImpl> weak_ptr_factory_; 72 base::WeakPtrFactory<ExtensionCacheImpl> weak_ptr_factory_;
73 73
74 DISALLOW_COPY_AND_ASSIGN(ExtensionCacheImpl); 74 DISALLOW_COPY_AND_ASSIGN(ExtensionCacheImpl);
75 }; 75 };
76 76
77 } // namespace extensions 77 } // namespace extensions
78 78
79 #endif // CHROME_BROWSER_EXTENSIONS_UPDATER_EXTENSION_CACHE_IMPL_H_ 79 #endif // CHROME_BROWSER_EXTENSIONS_UPDATER_EXTENSION_CACHE_IMPL_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/updater/extension_cache_fake.h ('k') | chrome/browser/extensions/updater/extension_downloader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698