Chromium Code Reviews| Index: content/browser/power_profiler/power_data_provider.h |
| diff --git a/content/browser/power_profiler/power_data_provider.h b/content/browser/power_profiler/power_data_provider.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..8ac1fb58e05601503396c417efe386c7825c19ab |
| --- /dev/null |
| +++ b/content/browser/power_profiler/power_data_provider.h |
| @@ -0,0 +1,32 @@ |
| +// Copyright 2014 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef CONTENT_BROWSER_POWER_PROFILER_POWER_DATA_PROVIDER_H_ |
| +#define CONTENT_BROWSER_POWER_PROFILER_POWER_DATA_PROVIDER_H_ |
| + |
| +#include "base/memory/scoped_ptr.h" |
| +#include "content/browser/power_profiler/power_event.h" |
| + |
| +namespace content { |
| + |
| +typedef std::vector<PowerEvent> PowerEventVector; |
| + |
| +// A class used to get power usage. |
| +class PowerDataProvider { |
| + public: |
| + static scoped_ptr<PowerDataProvider> Create(); |
| + |
| + PowerDataProvider() {} |
| + virtual ~PowerDataProvider() {} |
| + |
| + // Returns a vector of power events, one per type, for the types it supports. |
| + virtual PowerEventVector GetData() = 0; |
| + |
| + private: |
| + DISALLOW_COPY_AND_ASSIGN(PowerDataProvider); |
|
jam
2014/02/27 21:55:04
nit: this isn't needed because an abstract class i
Pan
2014/02/27 22:21:10
thanks, done!
|
| +}; |
| + |
| +} // namespace content |
| + |
| +#endif // CONTENT_BROWSER_POWER_PROFILER_POWER_DATA_PROVIDER_H_ |