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

Unified Diff: content/renderer/pepper/pepper_plugin_instance_metrics.h

Issue 849723002: Plugin Power Saver: Make PepperPluginInstanceThrottler interface public. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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/renderer/pepper/pepper_plugin_instance_metrics.h
diff --git a/content/renderer/pepper/pepper_plugin_instance_metrics.h b/content/renderer/pepper/pepper_plugin_instance_metrics.h
new file mode 100644
index 0000000000000000000000000000000000000000..02d92e06056bb95287773ee136337b3bdfd18002
--- /dev/null
+++ b/content/renderer/pepper/pepper_plugin_instance_metrics.h
@@ -0,0 +1,29 @@
+// Copyright 2015 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_RENDERER_PEPPER_PEPPER_PLUGIN_INSTANCE_METRICS_H_
+#define CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_INSTANCE_METRICS_H_
+
+#include <string>
+#include <vector>
+
+namespace ppapi {
+struct Preferences;
+}
+
+namespace content {
+
+// Record size metrics for all Flash instances.
+void RecordFlashSizeMetric(int width, int height);
+
+// Records size metrics for Flash instances that are clicked.
+void RecordFlashClickSizeMetric(int width, int height);
+
+void SetGPUHistogram(const ppapi::Preferences& prefs,
+ const std::vector<std::string>& arg_names,
+ const std::vector<std::string>& arg_values);
+
+} // namespace content
+
+#endif // CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_INSTANCE_METRICS_H_

Powered by Google App Engine
This is Rietveld 408576698