| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef COMPONENTS_METRICS_GPU_GPU_METRICS_PROVIDER_H_ | 5 #ifndef COMPONENTS_METRICS_GPU_GPU_METRICS_PROVIDER_H_ |
| 6 #define COMPONENTS_METRICS_GPU_GPU_METRICS_PROVIDER_H_ | 6 #define COMPONENTS_METRICS_GPU_GPU_METRICS_PROVIDER_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/macros.h" |
| 9 #include "components/metrics/metrics_provider.h" | 9 #include "components/metrics/metrics_provider.h" |
| 10 | 10 |
| 11 namespace metrics { | 11 namespace metrics { |
| 12 | 12 |
| 13 // GPUMetricsProvider provides GPU-related metrics. | 13 // GPUMetricsProvider provides GPU-related metrics. |
| 14 class GPUMetricsProvider : public MetricsProvider { | 14 class GPUMetricsProvider : public MetricsProvider { |
| 15 public: | 15 public: |
| 16 GPUMetricsProvider(); | 16 GPUMetricsProvider(); |
| 17 ~GPUMetricsProvider() override; | 17 ~GPUMetricsProvider() override; |
| 18 | 18 |
| 19 // MetricsProvider: | 19 // MetricsProvider: |
| 20 void ProvideSystemProfileMetrics( | 20 void ProvideSystemProfileMetrics( |
| 21 SystemProfileProto* system_profile_proto) override; | 21 SystemProfileProto* system_profile_proto) override; |
| 22 | 22 |
| 23 private: | 23 private: |
| 24 DISALLOW_COPY_AND_ASSIGN(GPUMetricsProvider); | 24 DISALLOW_COPY_AND_ASSIGN(GPUMetricsProvider); |
| 25 }; | 25 }; |
| 26 | 26 |
| 27 } // namespace metrics | 27 } // namespace metrics |
| 28 | 28 |
| 29 #endif // COMPONENTS_METRICS_GPU_GPU_METRICS_PROVIDER_H_ | 29 #endif // COMPONENTS_METRICS_GPU_GPU_METRICS_PROVIDER_H_ |
| OLD | NEW |