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

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

Issue 309803002: [PowerProfiler] Power Profiler service should detect the sampling rate from the data provider. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 6 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 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_PROFILER_SERVICE_H_ 5 #ifndef CONTENT_BROWSER_POWER_PROFILER_POWER_PROFILER_SERVICE_H_
6 #define CONTENT_BROWSER_POWER_PROFILER_POWER_PROFILER_SERVICE_H_ 6 #define CONTENT_BROWSER_POWER_PROFILER_POWER_PROFILER_SERVICE_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/singleton.h" 9 #include "base/memory/singleton.h"
10 #include "base/observer_list.h" 10 #include "base/observer_list.h"
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 57
58 // Executes on the UI thread. 58 // Executes on the UI thread.
59 void Notify(const PowerEventVector&); 59 void Notify(const PowerEventVector&);
60 60
61 base::RepeatingTimer<PowerProfilerService> query_power_timer_; 61 base::RepeatingTimer<PowerProfilerService> query_power_timer_;
62 scoped_refptr<base::TaskRunner> task_runner_; 62 scoped_refptr<base::TaskRunner> task_runner_;
63 63
64 Status status_; 64 Status status_;
65 65
66 // Sampling period of power data measurement. 66 // Sampling period of power data measurement.
67 const base::TimeDelta sample_period_; 67 base::TimeDelta sample_period_;
68 ObserverList<PowerProfilerObserver> observers_; 68 ObserverList<PowerProfilerObserver> observers_;
69 69
70 scoped_ptr<PowerDataProvider> data_provider_; 70 scoped_ptr<PowerDataProvider> data_provider_;
71 71
72 DISALLOW_COPY_AND_ASSIGN(PowerProfilerService); 72 DISALLOW_COPY_AND_ASSIGN(PowerProfilerService);
73 }; 73 };
74 74
75 } // namespace content 75 } // namespace content
76 76
77 #endif // CONTENT_BROWSER_POWER_PROFILER_POWER_PROFILER_SERVICE_H_ 77 #endif // CONTENT_BROWSER_POWER_PROFILER_POWER_PROFILER_SERVICE_H_
OLDNEW
« no previous file with comments | « content/browser/power_profiler/power_data_provider_ia_win.cc ('k') | content/browser/power_profiler/power_profiler_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698