| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 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_SERVICES_MANAGER_METRICS_SERVICES_MANAGER_CLIENT_H_ | 5 #ifndef COMPONENTS_METRICS_SERVICES_MANAGER_METRICS_SERVICES_MANAGER_CLIENT_H_ |
| 6 #define COMPONENTS_METRICS_SERVICES_MANAGER_METRICS_SERVICES_MANAGER_CLIENT_H_ | 6 #define COMPONENTS_METRICS_SERVICES_MANAGER_METRICS_SERVICES_MANAGER_CLIENT_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/callback_forward.h" | 10 #include "base/callback_forward.h" |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 | 50 |
| 51 // Returns whether metrics reporting is enabled. | 51 // Returns whether metrics reporting is enabled. |
| 52 virtual bool IsMetricsReportingEnabled() = 0; | 52 virtual bool IsMetricsReportingEnabled() = 0; |
| 53 | 53 |
| 54 // Whether the metrics services should record but not report metrics. | 54 // Whether the metrics services should record but not report metrics. |
| 55 virtual bool OnlyDoMetricsRecording() = 0; | 55 virtual bool OnlyDoMetricsRecording() = 0; |
| 56 | 56 |
| 57 // Update the running state of metrics services managed by the embedder, for | 57 // Update the running state of metrics services managed by the embedder, for |
| 58 // example, crash reporting. | 58 // example, crash reporting. |
| 59 virtual void UpdateRunningServices(bool may_record, bool may_upload) {} | 59 virtual void UpdateRunningServices(bool may_record, bool may_upload) {} |
| 60 |
| 61 // If the user has forced metrics collection on via the override flag. |
| 62 virtual bool IsMetricsReportingEnabledForTesting(); |
| 60 }; | 63 }; |
| 61 | 64 |
| 62 } // namespace metrics_services_manager | 65 } // namespace metrics_services_manager |
| 63 | 66 |
| 64 #endif // COMPONENTS_METRICS_SERVICES_MANAGER_METRICS_SERVICES_MANAGER_CLIENT_H
_ | 67 #endif // COMPONENTS_METRICS_SERVICES_MANAGER_METRICS_SERVICES_MANAGER_CLIENT_H
_ |
| OLD | NEW |