Revert 268405 "Make sure that ScratchBuffer::Allocate() always r..."
[chromium-blink-merge.git] / content / browser / power_profiler / power_data_provider.h
blobf6c043811f016479cfacc53ff05150fe25e116ec
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.
5 #ifndef CONTENT_BROWSER_POWER_PROFILER_POWER_DATA_PROVIDER_H_
6 #define CONTENT_BROWSER_POWER_PROFILER_POWER_DATA_PROVIDER_H_
8 #include <vector>
10 #include "base/memory/scoped_ptr.h"
11 #include "content/browser/power_profiler/power_event.h"
13 namespace content {
15 typedef std::vector<PowerEvent> PowerEventVector;
17 // A class used to get power usage.
18 class PowerDataProvider {
19 public:
20 static scoped_ptr<PowerDataProvider> Create();
22 PowerDataProvider() {}
23 virtual ~PowerDataProvider() {}
25 // Returns a vector of power events, one per type, for the types it supports.
26 virtual PowerEventVector GetData() = 0;
29 } // namespace content
31 #endif // CONTENT_BROWSER_POWER_PROFILER_POWER_DATA_PROVIDER_H_