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

Side by Side Diff: chrome/browser/extensions/api/system_info_cpu/cpu_info_provider.h

Issue 10876041: Polish the SystemInfoProvider template code and refactor StorageInfoProvider based on it (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 3 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef CHROME_BROWSER_EXTENSIONS_API_SYSTEM_INFO_CPU_CPU_INFO_PROVIDER_H_ 4 #ifndef CHROME_BROWSER_EXTENSIONS_API_SYSTEM_INFO_CPU_CPU_INFO_PROVIDER_H_
5 #define CHROME_BROWSER_EXTENSIONS_API_SYSTEM_INFO_CPU_CPU_INFO_PROVIDER_H_ 5 #define CHROME_BROWSER_EXTENSIONS_API_SYSTEM_INFO_CPU_CPU_INFO_PROVIDER_H_
6 6
7 #include "chrome/browser/extensions/system_info_provider.h" 7 #include "chrome/browser/extensions/system_info_provider.h"
8 #include "chrome/common/extensions/api/experimental_system_info_cpu.h" 8 #include "chrome/common/extensions/api/experimental_system_info_cpu.h"
9 9
10 namespace extensions { 10 namespace extensions {
11 11
12 typedef SystemInfoProvider<api::experimental_system_info_cpu::CpuInfo> 12 class CpuInfoProvider
13 CpuInfoProvider; 13 : public SystemInfoProvider<api::experimental_system_info_cpu::CpuInfo> {
14 public:
15 virtual ~CpuInfoProvider() {}
Mihai Parparita -not on Chrome 2012/08/24 00:57:29 Body of this class declaration is indented too muc
16
17 // Return the single shared instance of CpuInfoProvider.
18 static CpuInfoProvider* Get();
19 };
14 20
15 } // namespace extensions 21 } // namespace extensions
16 22
17 #endif // CHROME_BROWSER_EXTENSIONS_API_SYSTEM_INFO_CPU_CPU_INFO_PROVIDER_H_ 23 #endif // CHROME_BROWSER_EXTENSIONS_API_SYSTEM_INFO_CPU_CPU_INFO_PROVIDER_H_
18 24
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698