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_CPU_CPU_INFO_PROVIDER_H_ | 5 #ifndef EXTENSIONS_BROWSER_API_SYSTEM_CPU_CPU_INFO_PROVIDER_H_ |
6 #define EXTENSIONS_BROWSER_API_SYSTEM_CPU_CPU_INFO_PROVIDER_H_ | 6 #define EXTENSIONS_BROWSER_API_SYSTEM_CPU_CPU_INFO_PROVIDER_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/cpu.h" | 10 #include "base/cpu.h" |
11 #include "base/lazy_instance.h" | 11 #include "base/lazy_instance.h" |
| 12 #include "base/macros.h" |
12 #include "extensions/browser/api/system_info/system_info_provider.h" | 13 #include "extensions/browser/api/system_info/system_info_provider.h" |
13 #include "extensions/common/api/system_cpu.h" | 14 #include "extensions/common/api/system_cpu.h" |
14 | 15 |
15 namespace extensions { | 16 namespace extensions { |
16 | 17 |
17 class CpuInfoProvider : public SystemInfoProvider { | 18 class CpuInfoProvider : public SystemInfoProvider { |
18 public: | 19 public: |
19 // Return the single shared instance of CpuInfoProvider. | 20 // Return the single shared instance of CpuInfoProvider. |
20 static CpuInfoProvider* Get(); | 21 static CpuInfoProvider* Get(); |
21 | 22 |
(...skipping 29 matching lines...) Expand all Loading... |
51 | 52 |
52 static base::LazyInstance<scoped_refptr<CpuInfoProvider> > provider_; | 53 static base::LazyInstance<scoped_refptr<CpuInfoProvider> > provider_; |
53 base::CPU cpu_; | 54 base::CPU cpu_; |
54 | 55 |
55 DISALLOW_COPY_AND_ASSIGN(CpuInfoProvider); | 56 DISALLOW_COPY_AND_ASSIGN(CpuInfoProvider); |
56 }; | 57 }; |
57 | 58 |
58 } // namespace extensions | 59 } // namespace extensions |
59 | 60 |
60 #endif // EXTENSIONS_BROWSER_API_SYSTEM_CPU_CPU_INFO_PROVIDER_H_ | 61 #endif // EXTENSIONS_BROWSER_API_SYSTEM_CPU_CPU_INFO_PROVIDER_H_ |
OLD | NEW |