Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / content / renderer / pepper / pepper_plugin_instance_metrics.h
blob02d92e06056bb95287773ee136337b3bdfd18002
1 // Copyright 2015 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_RENDERER_PEPPER_PEPPER_PLUGIN_INSTANCE_METRICS_H_
6 #define CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_INSTANCE_METRICS_H_
8 #include <string>
9 #include <vector>
11 namespace ppapi {
12 struct Preferences;
15 namespace content {
17 // Record size metrics for all Flash instances.
18 void RecordFlashSizeMetric(int width, int height);
20 // Records size metrics for Flash instances that are clicked.
21 void RecordFlashClickSizeMetric(int width, int height);
23 void SetGPUHistogram(const ppapi::Preferences& prefs,
24 const std::vector<std::string>& arg_names,
25 const std::vector<std::string>& arg_values);
27 } // namespace content
29 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_INSTANCE_METRICS_H_