| 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_ARC_AUTH_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_ARC_ARC_AUTH_SERVICE_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_ARC_ARC_AUTH_SERVICE_H_ | 6 #define CHROME_BROWSER_CHROMEOS_ARC_ARC_AUTH_SERVICE_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <ostream> | 9 #include <ostream> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 201 | 201 |
| 202 // sync_preferences::SyncedPrefObserver | 202 // sync_preferences::SyncedPrefObserver |
| 203 void OnSyncedPrefChanged(const std::string& path, bool from_sync) override; | 203 void OnSyncedPrefChanged(const std::string& path, bool from_sync) override; |
| 204 | 204 |
| 205 // ArcSupportHost::Observer: | 205 // ArcSupportHost::Observer: |
| 206 void OnWindowClosed() override; | 206 void OnWindowClosed() override; |
| 207 void OnTermsAgreed(bool is_metrics_enabled, | 207 void OnTermsAgreed(bool is_metrics_enabled, |
| 208 bool is_backup_and_restore_enabled, | 208 bool is_backup_and_restore_enabled, |
| 209 bool is_location_service_enabled) override; | 209 bool is_location_service_enabled) override; |
| 210 void OnAuthSucceeded(const std::string& auth_code) override; | 210 void OnAuthSucceeded(const std::string& auth_code) override; |
| 211 void OnAuthFailed() override; |
| 212 |
| 211 void OnRetryClicked() override; | 213 void OnRetryClicked() override; |
| 212 void OnSendFeedbackClicked() override; | 214 void OnSendFeedbackClicked() override; |
| 213 | 215 |
| 214 // arc::ArcOptInPreferenceHandlerObserver: | 216 // arc::ArcOptInPreferenceHandlerObserver: |
| 215 void OnMetricsModeChanged(bool enabled, bool managed) override; | 217 void OnMetricsModeChanged(bool enabled, bool managed) override; |
| 216 void OnBackupAndRestoreModeChanged(bool enabled, bool managed) override; | 218 void OnBackupAndRestoreModeChanged(bool enabled, bool managed) override; |
| 217 void OnLocationServicesModeChanged(bool enabled, bool managed) override; | 219 void OnLocationServicesModeChanged(bool enabled, bool managed) override; |
| 218 | 220 |
| 219 // Stops ARC without changing ArcEnabled preference. | 221 // Stops ARC without changing ArcEnabled preference. |
| 220 void StopArc(); | 222 void StopArc(); |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 315 | 317 |
| 316 DISALLOW_COPY_AND_ASSIGN(ArcAuthService); | 318 DISALLOW_COPY_AND_ASSIGN(ArcAuthService); |
| 317 }; | 319 }; |
| 318 | 320 |
| 319 // Outputs the stringified |state| to |os|. This is only for logging purposes. | 321 // Outputs the stringified |state| to |os|. This is only for logging purposes. |
| 320 std::ostream& operator<<(std::ostream& os, const ArcAuthService::State& state); | 322 std::ostream& operator<<(std::ostream& os, const ArcAuthService::State& state); |
| 321 | 323 |
| 322 } // namespace arc | 324 } // namespace arc |
| 323 | 325 |
| 324 #endif // CHROME_BROWSER_CHROMEOS_ARC_ARC_AUTH_SERVICE_H_ | 326 #endif // CHROME_BROWSER_CHROMEOS_ARC_ARC_AUTH_SERVICE_H_ |
| OLD | NEW |