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

Side by Side Diff: extensions/browser/api/system_info/system_info_api.h

Issue 622343002: replace OVERRIDE and FINAL with override and 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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 EXTENSIONS_BROWSER_API_SYSTEM_INFO_SYSTEM_INFO_API_H_ 5 #ifndef EXTENSIONS_BROWSER_API_SYSTEM_INFO_SYSTEM_INFO_API_H_
6 #define EXTENSIONS_BROWSER_API_SYSTEM_INFO_SYSTEM_INFO_API_H_ 6 #define EXTENSIONS_BROWSER_API_SYSTEM_INFO_SYSTEM_INFO_API_H_
7 7
8 #include "extensions/browser/browser_context_keyed_api_factory.h" 8 #include "extensions/browser/browser_context_keyed_api_factory.h"
9 #include "extensions/browser/event_router.h" 9 #include "extensions/browser/event_router.h"
10 10
11 namespace extensions { 11 namespace extensions {
12 12
13 // A Profile-scoped object which is registered as an observer of EventRouter 13 // A Profile-scoped object which is registered as an observer of EventRouter
14 // to observe the systemInfo event listener arrival/removal. 14 // to observe the systemInfo event listener arrival/removal.
15 class SystemInfoAPI : public BrowserContextKeyedAPI, 15 class SystemInfoAPI : public BrowserContextKeyedAPI,
16 public EventRouter::Observer { 16 public EventRouter::Observer {
17 public: 17 public:
18 // BrowserContextKeyedAPI implementation. 18 // BrowserContextKeyedAPI implementation.
19 static BrowserContextKeyedAPIFactory<SystemInfoAPI>* GetFactoryInstance(); 19 static BrowserContextKeyedAPIFactory<SystemInfoAPI>* GetFactoryInstance();
20 20
21 explicit SystemInfoAPI(content::BrowserContext* context); 21 explicit SystemInfoAPI(content::BrowserContext* context);
22 virtual ~SystemInfoAPI(); 22 virtual ~SystemInfoAPI();
23 23
24 // KeyedService implementation. 24 // KeyedService implementation.
25 virtual void Shutdown() OVERRIDE; 25 virtual void Shutdown() override;
26 26
27 // EventRouter::Observer implementation. 27 // EventRouter::Observer implementation.
28 virtual void OnListenerAdded(const EventListenerInfo& details) OVERRIDE; 28 virtual void OnListenerAdded(const EventListenerInfo& details) override;
29 virtual void OnListenerRemoved(const EventListenerInfo& details) OVERRIDE; 29 virtual void OnListenerRemoved(const EventListenerInfo& details) override;
30 30
31 private: 31 private:
32 friend class BrowserContextKeyedAPIFactory<SystemInfoAPI>; 32 friend class BrowserContextKeyedAPIFactory<SystemInfoAPI>;
33 33
34 // BrowserContextKeyedAPI implementation. 34 // BrowserContextKeyedAPI implementation.
35 static const char* service_name() { return "SystemInfoAPI"; } 35 static const char* service_name() { return "SystemInfoAPI"; }
36 static const bool kServiceIsNULLWhileTesting = true; 36 static const bool kServiceIsNULLWhileTesting = true;
37 37
38 content::BrowserContext* browser_context_; 38 content::BrowserContext* browser_context_;
39 39
40 DISALLOW_COPY_AND_ASSIGN(SystemInfoAPI); 40 DISALLOW_COPY_AND_ASSIGN(SystemInfoAPI);
41 }; 41 };
42 42
43 } // namespace extensions 43 } // namespace extensions
44 44
45 #endif // EXTENSIONS_BROWSER_API_SYSTEM_INFO_SYSTEM_INFO_API_H_ 45 #endif // EXTENSIONS_BROWSER_API_SYSTEM_INFO_SYSTEM_INFO_API_H_
OLDNEW
« no previous file with comments | « extensions/browser/api/system_display/system_display_api.h ('k') | extensions/browser/api/system_info/system_info_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698