Index: chrome/browser/metrics/gpu_metrics_provider.h |
diff --git a/chrome/browser/metrics/gpu_metrics_provider.h b/chrome/browser/metrics/gpu_metrics_provider.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..3ba2479e683b53868d9639167bb7c62ac96337ab |
--- /dev/null |
+++ b/chrome/browser/metrics/gpu_metrics_provider.h |
@@ -0,0 +1,37 @@ |
+// 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 CHROME_BROWSER_METRICS_GPU_METRICS_PROVIDER_H_ |
+#define CHROME_BROWSER_METRICS_GPU_METRICS_PROVIDER_H_ |
+ |
+#include "base/basictypes.h" |
+#include "components/metrics/metrics_data_provider.h" |
+#include "ui/gfx/size.h" |
+ |
+// GPUMetricsProvider provides GPU-related metrics. |
+class GPUMetricsProvider : public metrics::MetricsDataProvider { |
+ public: |
+ GPUMetricsProvider(); |
+ virtual ~GPUMetricsProvider(); |
+ |
+ // metrics::MetricsDataProvider: |
+ virtual void ProvideSystemProfileMetrics( |
+ metrics::SystemProfileProto* system_profile_proto) OVERRIDE; |
+ |
+ protected: |
+ // Exposed for the sake of mocking in test code. |
+ |
+ // Returns the screen size for the primary monitor. |
+ virtual gfx::Size GetScreenSize() const; |
+ |
+ // Returns the device scale factor for the primary monitor. |
+ virtual float GetScreenDeviceScaleFactor() const; |
+ |
+ // Returns the number of monitors the user is using. |
+ virtual int GetScreenCount() const; |
+ |
+ DISALLOW_COPY_AND_ASSIGN(GPUMetricsProvider); |
Alexei Svitkine (slow)
2014/05/20 14:16:37
This should be in the private section.
blundell
2014/05/20 14:20:49
Done.
|
+}; |
+ |
+#endif // CHROME_BROWSER_METRICS_GPU_METRICS_PROVIDER_H_ |