| 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 // the lifetime of this client instance, but should not be used beyond this | 50 // the lifetime of this client instance, but should not be used beyond this |
| 51 // instance being destroyed. | 51 // instance being destroyed. |
| 52 virtual bool IsSafeBrowsingEnabled( | 52 virtual bool IsSafeBrowsingEnabled( |
| 53 const base::Closure& on_update_callback) = 0; | 53 const base::Closure& on_update_callback) = 0; |
| 54 | 54 |
| 55 // Returns whether metrics reporting is enabled. | 55 // Returns whether metrics reporting is enabled. |
| 56 virtual bool IsMetricsReportingEnabled() = 0; | 56 virtual bool IsMetricsReportingEnabled() = 0; |
| 57 | 57 |
| 58 // Whether the metrics services should record but not report metrics. | 58 // Whether the metrics services should record but not report metrics. |
| 59 virtual bool OnlyDoMetricsRecording() = 0; | 59 virtual bool OnlyDoMetricsRecording() = 0; |
| 60 |
| 61 // Update the running state of metrics services managed by the embedder, for |
| 62 // example, crash reporting. |
| 63 virtual void UpdateRunningServices(bool may_record, bool may_upload) {} |
| 60 }; | 64 }; |
| 61 | 65 |
| 62 } // namespace metrics_services_manager | 66 } // namespace metrics_services_manager |
| 63 | 67 |
| 64 #endif // COMPONENTS_METRICS_SERVICES_MANAGER_METRICS_SERVICES_MANAGER_CLIENT_H
_ | 68 #endif // COMPONENTS_METRICS_SERVICES_MANAGER_METRICS_SERVICES_MANAGER_CLIENT_H
_ |
| OLD | NEW |