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

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

Issue 622343002: replace OVERRIDE and FINAL with override and final in extensions/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 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"
(...skipping 17 matching lines...) Expand all
28 28
29 CpuInfoProvider(); 29 CpuInfoProvider();
30 virtual ~CpuInfoProvider(); 30 virtual ~CpuInfoProvider();
31 31
32 // Platform specific implementation for querying the CPU time information 32 // Platform specific implementation for querying the CPU time information
33 // for each processor. 33 // for each processor.
34 virtual bool QueryCpuTimePerProcessor( 34 virtual bool QueryCpuTimePerProcessor(
35 std::vector<linked_ptr<core_api::system_cpu::ProcessorInfo> >* infos); 35 std::vector<linked_ptr<core_api::system_cpu::ProcessorInfo> >* infos);
36 36
37 // Overriden from SystemInfoProvider. 37 // Overriden from SystemInfoProvider.
38 virtual bool QueryInfo() OVERRIDE; 38 virtual bool QueryInfo() override;
39 39
40 // Creates a list of codenames for currently active features. 40 // Creates a list of codenames for currently active features.
41 std::vector<std::string> GetFeatures() const; 41 std::vector<std::string> GetFeatures() const;
42 42
43 // The last information filled up by QueryInfo and is accessed on multiple 43 // The last information filled up by QueryInfo and is accessed on multiple
44 // threads, but the whole class is being guarded by SystemInfoProvider base 44 // threads, but the whole class is being guarded by SystemInfoProvider base
45 // class. 45 // class.
46 // 46 //
47 // |info_| is accessed on the UI thread while |is_waiting_for_completion_| is 47 // |info_| is accessed on the UI thread while |is_waiting_for_completion_| is
48 // false and on the sequenced worker pool while |is_waiting_for_completion_| 48 // false and on the sequenced worker pool while |is_waiting_for_completion_|
49 // is true. 49 // is true.
50 core_api::system_cpu::CpuInfo info_; 50 core_api::system_cpu::CpuInfo info_;
51 51
52 static base::LazyInstance<scoped_refptr<CpuInfoProvider> > provider_; 52 static base::LazyInstance<scoped_refptr<CpuInfoProvider> > provider_;
53 base::CPU cpu_; 53 base::CPU cpu_;
54 54
55 DISALLOW_COPY_AND_ASSIGN(CpuInfoProvider); 55 DISALLOW_COPY_AND_ASSIGN(CpuInfoProvider);
56 }; 56 };
57 57
58 } // namespace extensions 58 } // namespace extensions
59 59
60 #endif // EXTENSIONS_BROWSER_API_SYSTEM_CPU_CPU_INFO_PROVIDER_H_ 60 #endif // EXTENSIONS_BROWSER_API_SYSTEM_CPU_CPU_INFO_PROVIDER_H_
OLDNEW
« no previous file with comments | « extensions/browser/api/storage/weak_unlimited_settings_storage.h ('k') | extensions/browser/api/system_cpu/system_cpu_api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698