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

Side by Side Diff: chrome/browser/extensions/api/spellcheck/spellcheck_api.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 (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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_API_SPELLCHECK_SPELLCHECK_API_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_SPELLCHECK_SPELLCHECK_API_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_SPELLCHECK_SPELLCHECK_API_H_ 6 #define CHROME_BROWSER_EXTENSIONS_API_SPELLCHECK_SPELLCHECK_API_H_
7 7
8 #include "base/scoped_observer.h" 8 #include "base/scoped_observer.h"
9 #include "extensions/browser/browser_context_keyed_api_factory.h" 9 #include "extensions/browser/browser_context_keyed_api_factory.h"
10 #include "extensions/browser/extension_registry_observer.h" 10 #include "extensions/browser/extension_registry_observer.h"
11 11
12 namespace extensions { 12 namespace extensions {
13 class ExtensionRegistry; 13 class ExtensionRegistry;
14 14
15 class SpellcheckAPI : public BrowserContextKeyedAPI, 15 class SpellcheckAPI : public BrowserContextKeyedAPI,
16 public ExtensionRegistryObserver { 16 public ExtensionRegistryObserver {
17 public: 17 public:
18 explicit SpellcheckAPI(content::BrowserContext* context); 18 explicit SpellcheckAPI(content::BrowserContext* context);
19 virtual ~SpellcheckAPI(); 19 virtual ~SpellcheckAPI();
20 20
21 // BrowserContextKeyedAPI implementation. 21 // BrowserContextKeyedAPI implementation.
22 static BrowserContextKeyedAPIFactory<SpellcheckAPI>* GetFactoryInstance(); 22 static BrowserContextKeyedAPIFactory<SpellcheckAPI>* GetFactoryInstance();
23 23
24 private: 24 private:
25 friend class BrowserContextKeyedAPIFactory<SpellcheckAPI>; 25 friend class BrowserContextKeyedAPIFactory<SpellcheckAPI>;
26 26
27 // ExtensionRegistryObserver implementation. 27 // ExtensionRegistryObserver implementation.
28 virtual void OnExtensionLoaded(content::BrowserContext* browser_context, 28 virtual void OnExtensionLoaded(content::BrowserContext* browser_context,
29 const Extension* extension) OVERRIDE; 29 const Extension* extension) override;
30 virtual void OnExtensionUnloaded( 30 virtual void OnExtensionUnloaded(
31 content::BrowserContext* browser_context, 31 content::BrowserContext* browser_context,
32 const Extension* extension, 32 const Extension* extension,
33 UnloadedExtensionInfo::Reason reason) OVERRIDE; 33 UnloadedExtensionInfo::Reason reason) override;
34 34
35 // BrowserContextKeyedAPI implementation. 35 // BrowserContextKeyedAPI implementation.
36 static const char* service_name() { 36 static const char* service_name() {
37 return "SpellcheckAPI"; 37 return "SpellcheckAPI";
38 } 38 }
39 39
40 // Listen to extension load, unloaded notifications. 40 // Listen to extension load, unloaded notifications.
41 ScopedObserver<ExtensionRegistry, ExtensionRegistryObserver> 41 ScopedObserver<ExtensionRegistry, ExtensionRegistryObserver>
42 extension_registry_observer_; 42 extension_registry_observer_;
43 43
44 DISALLOW_COPY_AND_ASSIGN(SpellcheckAPI); 44 DISALLOW_COPY_AND_ASSIGN(SpellcheckAPI);
45 }; 45 };
46 46
47 template <> 47 template <>
48 void BrowserContextKeyedAPIFactory<SpellcheckAPI>::DeclareFactoryDependencies(); 48 void BrowserContextKeyedAPIFactory<SpellcheckAPI>::DeclareFactoryDependencies();
49 49
50 } // namespace extensions 50 } // namespace extensions
51 51
52 #endif // CHROME_BROWSER_EXTENSIONS_API_SPELLCHECK_SPELLCHECK_API_H_ 52 #endif // CHROME_BROWSER_EXTENSIONS_API_SPELLCHECK_SPELLCHECK_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698