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

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

Issue 140583003: Chrome power profiler service (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 6 years, 10 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_BROWSER_POWER_PROFILER_POWER_PROFILER_OBSERVER_H_
6 #define CONTENT_BROWSER_POWER_PROFILER_POWER_PROFILER_OBSERVER_H_
7
8 #include <vector>
9
10 #include "base/basictypes.h"
11 #include "content/common/content_export.h"
12
13 namespace content {
14
15 struct PowerEvent;
16 typedef std::vector<PowerEvent> PowerEventVector;
17
18 // A class used to monitor the power usage and tell profiler the power data
jeremy 2014/02/16 14:09:19 nit: . at end of comment.
Pan 2014/02/17 03:17:15 Done.
19 class CONTENT_EXPORT PowerProfilerObserver {
20 public:
21 PowerProfilerObserver() {}
22 virtual ~PowerProfilerObserver() {}
23
24 // This method will be called on UI thread
jeremy 2014/02/16 14:09:19 nit: the UI thread.
Pan 2014/02/17 03:17:15 Done.
25 virtual void OnPowerEvent(const PowerEventVector&) = 0;
26
27 private:
28 DISALLOW_COPY_AND_ASSIGN(PowerProfilerObserver);
29 };
30
31 } // namespace content
32
33 #endif // CONTENT_BROWSER_POWER_PROFILER_POWER_PROFILER_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698