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

Unified Diff: content/browser/power_profiler/power_data_provider_factory.h

Issue 140583003: Chrome power profiler service (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: patch for landing 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/power_profiler/power_data_provider_factory.h
diff --git a/content/browser/power_profiler/power_data_provider_factory.h b/content/browser/power_profiler/power_data_provider_factory.h
new file mode 100644
index 0000000000000000000000000000000000000000..a8322e17f64e11567fdd01fdf7af6b828237f6f5
--- /dev/null
+++ b/content/browser/power_profiler/power_data_provider_factory.h
@@ -0,0 +1,25 @@
+// 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_FACTORY_H_
+#define CONTENT_BROWSER_POWER_PROFILER_POWER_DATA_PROVIDER_FACTORY_H_
+
+#include "base/memory/scoped_ptr.h"
+#include "content/browser/power_profiler/power_data_provider.h"
+
+namespace content {
+
+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
+ public:
+ // Create a provider, and transfer the ownership to PowerProfilerService.
+ static scoped_ptr<PowerDataProvider> Create();
+
+ private:
+ PowerDataProviderFactory() {}
+ DISALLOW_COPY_AND_ASSIGN(PowerDataProviderFactory);
+};
+
+} // namespace content
+
+#endif // CONTENT_BROWSER_POWER_PROFILER_POWER_DATA_PROVIDER_FACTORY_H_

Powered by Google App Engine
This is Rietveld 408576698