| 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_SERVICES_MANAGER_METRICS_SERVICES_MANAGER_H_ | 5 #ifndef COMPONENTS_METRICS_SERVICES_MANAGER_METRICS_SERVICES_MANAGER_H_ |
| 6 #define COMPONENTS_METRICS_SERVICES_MANAGER_METRICS_SERVICES_MANAGER_H_ | 6 #define COMPONENTS_METRICS_SERVICES_MANAGER_METRICS_SERVICES_MANAGER_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 | 72 |
| 73 // Should be called when a plugin loading error occurs. | 73 // Should be called when a plugin loading error occurs. |
| 74 void OnPluginLoadingError(const base::FilePath& plugin_path); | 74 void OnPluginLoadingError(const base::FilePath& plugin_path); |
| 75 | 75 |
| 76 // Some embedders use this method to notify the metrics system when a | 76 // Some embedders use this method to notify the metrics system when a |
| 77 // renderer process exits unexpectedly. | 77 // renderer process exits unexpectedly. |
| 78 void OnRendererProcessCrash(); | 78 void OnRendererProcessCrash(); |
| 79 | 79 |
| 80 // Update the managed services when permissions for recording/uploading | 80 // Update the managed services when permissions for recording/uploading |
| 81 // metrics change. | 81 // metrics change. |
| 82 void UpdatePermissions(bool may_record, bool may_upload); | 82 void UpdatePermissions(bool current_may_record, bool current_may_upload); |
| 83 | 83 |
| 84 // Update the managed services when permissions for uploading metrics change. | 84 // Update the managed services when permissions for uploading metrics change. |
| 85 void UpdateUploadPermissions(bool may_upload); | 85 void UpdateUploadPermissions(bool may_upload); |
| 86 | 86 |
| 87 private: | 87 private: |
| 88 // Update the managed services when permissions for recording/uploading | 88 // Update the managed services when permissions for recording/uploading |
| 89 // metrics change. | 89 // metrics change. |
| 90 void UpdateRapporServiceImpl(); | 90 void UpdateRapporServiceImpl(); |
| 91 | 91 |
| 92 // Returns the MetricsServiceClient, creating it if it hasn't been | 92 // Returns the MetricsServiceClient, creating it if it hasn't been |
| (...skipping 25 matching lines...) Expand all Loading... |
| 118 | 118 |
| 119 // The VariationsService, for server-side experiments infrastructure. | 119 // The VariationsService, for server-side experiments infrastructure. |
| 120 std::unique_ptr<variations::VariationsService> variations_service_; | 120 std::unique_ptr<variations::VariationsService> variations_service_; |
| 121 | 121 |
| 122 DISALLOW_COPY_AND_ASSIGN(MetricsServicesManager); | 122 DISALLOW_COPY_AND_ASSIGN(MetricsServicesManager); |
| 123 }; | 123 }; |
| 124 | 124 |
| 125 } // namespace metrics_services_manager | 125 } // namespace metrics_services_manager |
| 126 | 126 |
| 127 #endif // COMPONENTS_METRICS_SERVICES_MANAGER_METRICS_SERVICES_MANAGER_H_ | 127 #endif // COMPONENTS_METRICS_SERVICES_MANAGER_METRICS_SERVICES_MANAGER_H_ |
| OLD | NEW |