OLD | NEW |
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 "base/macros.h" |
8 #include "extensions/browser/browser_context_keyed_api_factory.h" | 9 #include "extensions/browser/browser_context_keyed_api_factory.h" |
9 #include "extensions/browser/event_router.h" | 10 #include "extensions/browser/event_router.h" |
10 | 11 |
11 namespace extensions { | 12 namespace extensions { |
12 | 13 |
13 // A Profile-scoped object which is registered as an observer of EventRouter | 14 // A Profile-scoped object which is registered as an observer of EventRouter |
14 // to observe the systemInfo event listener arrival/removal. | 15 // to observe the systemInfo event listener arrival/removal. |
15 class SystemInfoAPI : public BrowserContextKeyedAPI, | 16 class SystemInfoAPI : public BrowserContextKeyedAPI, |
16 public EventRouter::Observer { | 17 public EventRouter::Observer { |
17 public: | 18 public: |
(...skipping 18 matching lines...) Expand all Loading... |
36 static const bool kServiceIsNULLWhileTesting = true; | 37 static const bool kServiceIsNULLWhileTesting = true; |
37 | 38 |
38 content::BrowserContext* browser_context_; | 39 content::BrowserContext* browser_context_; |
39 | 40 |
40 DISALLOW_COPY_AND_ASSIGN(SystemInfoAPI); | 41 DISALLOW_COPY_AND_ASSIGN(SystemInfoAPI); |
41 }; | 42 }; |
42 | 43 |
43 } // namespace extensions | 44 } // namespace extensions |
44 | 45 |
45 #endif // EXTENSIONS_BROWSER_API_SYSTEM_INFO_SYSTEM_INFO_API_H_ | 46 #endif // EXTENSIONS_BROWSER_API_SYSTEM_INFO_SYSTEM_INFO_API_H_ |
OLD | NEW |