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

Side by Side Diff: content/public/browser/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_PUBLIC_BROWSER_POWER_PROFILER_OBSERVER_H_
6 #define CONTENT_PUBLIC_BROWSER_POWER_PROFILER_OBSERVER_H_
7
8 #include "base/basictypes.h"
9 #include "base/memory/ref_counted.h"
qsr 2014/01/28 13:44:15 You can remove this include.
Pan 2014/01/28 14:22:11 Done.
10 #include "content/common/content_export.h"
11 #include "content/public/browser/power_data_provider.h"
qsr 2014/01/28 13:44:15 You can also remove this include by just forward d
Pan 2014/01/28 14:22:11 Done.
12
13 namespace content {
14
15 // A class used to monitor the power usage and tell profiler the power data
16 class CONTENT_EXPORT PowerProfilerObserver {
17 public:
18 PowerProfilerObserver() {}
19 virtual ~PowerProfilerObserver() {}
20
21 // This method should be called on UI thread
22 virtual void OnPowerEvent(const PowerEvent&) = 0;
23
24 private:
25 DISALLOW_COPY_AND_ASSIGN(PowerProfilerObserver);
26 };
27
28 } // namespace content
29
30 #endif // CONTENT_PUBLIC_BROWSER_POWER_PROFILER_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698