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

Side by Side Diff: extensions/browser/api/system_cpu/cpu_info_provider.h

Issue 1549643002: Switch to standard integer types in extensions/browser/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@clean
Patch Set: Created 5 years 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_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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698