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

Side by Side Diff: content/browser/power_profiler/power_data_provider_ia_win.h

Issue 628163002: Replacing the OVERRIDE with override and FINAL with final in content/browser/power_profiler (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
« no previous file with comments | « no previous file | content/browser/power_profiler/power_profiler_service_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 CONTENT_BROWSER_POWER_PROFILER_POWER_DATA_PROVIDER_IA_WIN_H_ 5 #ifndef CONTENT_BROWSER_POWER_PROFILER_POWER_DATA_PROVIDER_IA_WIN_H_
6 #define CONTENT_BROWSER_POWER_PROFILER_POWER_DATA_PROVIDER_IA_WIN_H_ 6 #define CONTENT_BROWSER_POWER_PROFILER_POWER_DATA_PROVIDER_IA_WIN_H_
7 7
8 #include "content/browser/power_profiler/power_data_provider.h" 8 #include "content/browser/power_profiler/power_data_provider.h"
9 #include "third_party/power_gadget/PowerGadgetLib.h" 9 #include "third_party/power_gadget/PowerGadgetLib.h"
10 10
11 namespace content { 11 namespace content {
12 12
13 // A class used to get power usage via Power Gadget API. 13 // A class used to get power usage via Power Gadget API.
14 class PowerDataProviderIA : public PowerDataProvider { 14 class PowerDataProviderIA : public PowerDataProvider {
15 public: 15 public:
16 PowerDataProviderIA(); 16 PowerDataProviderIA();
17 17
18 virtual ~PowerDataProviderIA(); 18 virtual ~PowerDataProviderIA();
19 19
20 bool Initialize(); 20 bool Initialize();
21 virtual PowerEventVector GetData() OVERRIDE; 21 virtual PowerEventVector GetData() override;
22 virtual base::TimeDelta GetSamplingRate() OVERRIDE; 22 virtual base::TimeDelta GetSamplingRate() override;
23 virtual AccuracyLevel GetAccuracyLevel() OVERRIDE { return High; } 23 virtual AccuracyLevel GetAccuracyLevel() override { return High; }
24 24
25 private: 25 private:
26 CIntelPowerGadgetLib energy_lib_; 26 CIntelPowerGadgetLib energy_lib_;
27 27
28 int sockets_number_; 28 int sockets_number_;
29 int power_msr_ids_[PowerEvent::ID_COUNT]; 29 int power_msr_ids_[PowerEvent::ID_COUNT];
30 bool is_open_; 30 bool is_open_;
31 DISALLOW_COPY_AND_ASSIGN(PowerDataProviderIA); 31 DISALLOW_COPY_AND_ASSIGN(PowerDataProviderIA);
32 }; 32 };
33 33
34 } // namespace content 34 } // namespace content
35 35
36 #endif // CONTENT_BROWSER_POWER_PROFILER_POWER_DATA_PROVIDER_IA_WIN_H_ 36 #endif // CONTENT_BROWSER_POWER_PROFILER_POWER_DATA_PROVIDER_IA_WIN_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/power_profiler/power_profiler_service_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698