| 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 virtual std::unique_ptr<const base::FieldTrial::EntropyProvider> | 44 virtual std::unique_ptr<const base::FieldTrial::EntropyProvider> |
| 45 CreateEntropyProvider() = 0; | 45 CreateEntropyProvider() = 0; |
| 46 | 46 |
| 47 // Returns the URL request context in which the metrics services should | 47 // Returns the URL request context in which the metrics services should |
| 48 // operate. | 48 // operate. |
| 49 virtual net::URLRequestContextGetter* GetURLRequestContext() = 0; | 49 virtual net::URLRequestContextGetter* GetURLRequestContext() = 0; |
| 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. | |
| 55 virtual bool OnlyDoMetricsRecording() = 0; | |
| 56 | |
| 57 // Update the running state of metrics services managed by the embedder, for | 54 // Update the running state of metrics services managed by the embedder, for |
| 58 // example, crash reporting. | 55 // example, crash reporting. |
| 59 virtual void UpdateRunningServices(bool may_record, bool may_upload) {} | 56 virtual void UpdateRunningServices(bool may_record, bool may_upload) {} |
| 60 | 57 |
| 61 // If the user has forced metrics collection on via the override flag. | 58 // If the user has forced metrics collection on via the override flag. |
| 62 virtual bool IsMetricsReportingForceEnabled(); | 59 virtual bool IsMetricsReportingForceEnabled(); |
| 63 }; | 60 }; |
| 64 | 61 |
| 65 } // namespace metrics_services_manager | 62 } // namespace metrics_services_manager |
| 66 | 63 |
| 67 #endif // COMPONENTS_METRICS_SERVICES_MANAGER_METRICS_SERVICES_MANAGER_CLIENT_H
_ | 64 #endif // COMPONENTS_METRICS_SERVICES_MANAGER_METRICS_SERVICES_MANAGER_CLIENT_H
_ |
| OLD | NEW |