| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 CHROME_BROWSER_CHROMEOS_ARC_OPTIN_ARC_OPTIN_PREFERENCE_HANDLER_OBSERVER_
H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_ARC_OPTIN_ARC_OPTIN_PREFERENCE_HANDLER_OBSERVER_
H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_ARC_OPTIN_ARC_OPTIN_PREFERENCE_HANDLER_OBSERVER_
H_ | 6 #define CHROME_BROWSER_CHROMEOS_ARC_OPTIN_ARC_OPTIN_PREFERENCE_HANDLER_OBSERVER_
H_ |
| 7 | 7 |
| 8 namespace arc { | 8 namespace arc { |
| 9 | 9 |
| 10 // Notifies about changes in ARC related preferences and metrics mode. | 10 // Notifies about changes in ARC related preferences and metrics mode. |
| 11 class ArcOptInPreferenceHandlerObserver { | 11 class ArcOptInPreferenceHandlerObserver { |
| 12 public: | 12 public: |
| 13 // Notifies metrics mode has been changed. | 13 // Notifies that the metrics mode has been changed. |
| 14 virtual void OnMetricsModeChanged(bool enabled, bool managed) = 0; | 14 virtual void OnMetricsModeChanged(bool enabled, bool managed) = 0; |
| 15 // Notifies use backup and restore preference has been changed. | 15 // Notifies that the backup and restore mode has been changed. |
| 16 virtual void OnBackupAndRestoreModeChanged(bool enabled, bool managed) = 0; | 16 virtual void OnBackupAndRestoreModeChanged(bool enabled, bool managed) = 0; |
| 17 // Notifies location service consent preference has been changed. | 17 // Notifies that the location service mode has been changed. |
| 18 virtual void OnLocationServicesModeChanged(bool enabled, bool managed) = 0; | 18 virtual void OnLocationServicesModeChanged(bool enabled, bool managed) = 0; |
| 19 | 19 |
| 20 virtual ~ArcOptInPreferenceHandlerObserver() = default; | 20 virtual ~ArcOptInPreferenceHandlerObserver() = default; |
| 21 }; | 21 }; |
| 22 | 22 |
| 23 } // namespace arc | 23 } // namespace arc |
| 24 | 24 |
| 25 #endif // CHROME_BROWSER_CHROMEOS_ARC_OPTIN_ARC_OPTIN_PREFERENCE_HANDLER_OBSERV
ER_H_ | 25 #endif // CHROME_BROWSER_CHROMEOS_ARC_OPTIN_ARC_OPTIN_PREFERENCE_HANDLER_OBSERV
ER_H_ |
| OLD | NEW |