Chromium Code Reviews| OLD | NEW |
|---|---|
| (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_DATA_PROVIDER_FACTORY_H_ | |
| 6 #define CONTENT_BROWSER_POWER_PROFILER_POWER_DATA_PROVIDER_FACTORY_H_ | |
| 7 | |
| 8 #include "base/memory/scoped_ptr.h" | |
| 9 #include "content/browser/power_profiler/power_data_provider.h" | |
| 10 | |
| 11 namespace content { | |
| 12 | |
| 13 class PowerDataProviderFactory { | |
|
jam
2014/02/24 21:53:46
what is the point of this factory?
Pan
2014/02/25 01:20:39
to create power data provider for specific platfor
jam
2014/02/25 19:27:25
you don't need a separate class factory for that.
Pan
2014/02/26 00:17:05
thanks, not only OS, but also hardware platform. f
jam
2014/02/26 17:40:42
I still don't understand why this makes things cle
| |
| 14 public: | |
| 15 // Create a provider, and transfer the ownership to PowerProfilerService. | |
| 16 static scoped_ptr<PowerDataProvider> Create(); | |
| 17 | |
| 18 private: | |
| 19 PowerDataProviderFactory() {} | |
| 20 DISALLOW_COPY_AND_ASSIGN(PowerDataProviderFactory); | |
| 21 }; | |
| 22 | |
| 23 } // namespace content | |
| 24 | |
| 25 #endif // CONTENT_BROWSER_POWER_PROFILER_POWER_DATA_PROVIDER_FACTORY_H_ | |
| OLD | NEW |