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

Side by Side Diff: chrome/browser/extensions/api/system_info_cpu/cpu_info_provider_mac.cc

Issue 10914060: Refine systemInfo.cpu API defintions and provide systemInfo.cpu.get impl for Windows and Linux (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
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 | Annotate | Revision Log
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 4
5 #include "chrome/browser/extensions/api/system_info_cpu/cpu_info_provider.h" 5 #include "chrome/browser/extensions/api/system_info_cpu/cpu_info_provider.h"
6 6
7 namespace extensions { 7 namespace extensions {
8 8
9 namespace { 9 bool CpuInfoProvider::QueryCpuTimePerProcessor(std::vector<CpuTime>* times) {
10 10 // TODO(hongbo): Query the cpu time.
11 using api::experimental_system_info_cpu::CpuInfo;
12
13 // CpuInfoProvider implementation on Mac OS.
14 class CpuInfoProviderMac : public CpuInfoProvider {
15 public:
16 CpuInfoProviderMac() {}
17 virtual ~CpuInfoProviderMac() {}
18 virtual bool QueryInfo(CpuInfo* info) OVERRIDE;
19 };
20
21 bool CpuInfoProviderMac::QueryInfo(CpuInfo* info) {
22 // TODO(hmin): not implemented yet.
23 return false; 11 return false;
24 } 12 }
25 13
26 } // namespace
27
28 // static
29 CpuInfoProvider* CpuInfoProvider::Get() {
30 return CpuInfoProvider::GetInstance<CpuInfoProviderMac>();
31 }
32
33 } // namespace extensions 14 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698