| 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_SESSION_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_ARC_ARC_SESSION_MANAGER_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_ARC_ARC_SESSION_MANAGER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_ARC_ARC_SESSION_MANAGER_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <ostream> | 9 #include <ostream> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 207 void OnProvisioningFinished(ProvisioningResult result); | 207 void OnProvisioningFinished(ProvisioningResult result); |
| 208 | 208 |
| 209 private: | 209 private: |
| 210 // Negotiates the terms of service to user. | 210 // Negotiates the terms of service to user. |
| 211 void StartTermsOfServiceNegotiation(); | 211 void StartTermsOfServiceNegotiation(); |
| 212 void OnTermsOfServiceNegotiated(bool accepted); | 212 void OnTermsOfServiceNegotiated(bool accepted); |
| 213 | 213 |
| 214 void SetState(State state); | 214 void SetState(State state); |
| 215 void ShutdownBridge(); | 215 void ShutdownBridge(); |
| 216 void OnOptInPreferenceChanged(); | 216 void OnOptInPreferenceChanged(); |
| 217 void OnTermsAcceptedPreferenceChanged(); |
| 217 void OnAndroidManagementPassed(); | 218 void OnAndroidManagementPassed(); |
| 218 void OnArcDataRemoved(bool success); | 219 void OnArcDataRemoved(bool success); |
| 219 void OnArcSignInTimeout(); | 220 void OnArcSignInTimeout(); |
| 220 void FetchAuthCode(); | 221 void FetchAuthCode(); |
| 221 void PrepareContextForAuthCodeRequest(); | 222 void PrepareContextForAuthCodeRequest(); |
| 222 | 223 |
| 223 void StartArcAndroidManagementCheck(); | 224 void StartArcAndroidManagementCheck(); |
| 224 void MaybeReenableArc(); | 225 void MaybeReenableArc(); |
| 225 | 226 |
| 226 // Called when the Android management check is done in opt-in flow or | 227 // Called when the Android management check is done in opt-in flow or |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 260 DISALLOW_COPY_AND_ASSIGN(ArcSessionManager); | 261 DISALLOW_COPY_AND_ASSIGN(ArcSessionManager); |
| 261 }; | 262 }; |
| 262 | 263 |
| 263 // Outputs the stringified |state| to |os|. This is only for logging purposes. | 264 // Outputs the stringified |state| to |os|. This is only for logging purposes. |
| 264 std::ostream& operator<<(std::ostream& os, | 265 std::ostream& operator<<(std::ostream& os, |
| 265 const ArcSessionManager::State& state); | 266 const ArcSessionManager::State& state); |
| 266 | 267 |
| 267 } // namespace arc | 268 } // namespace arc |
| 268 | 269 |
| 269 #endif // CHROME_BROWSER_CHROMEOS_ARC_ARC_SESSION_MANAGER_H_ | 270 #endif // CHROME_BROWSER_CHROMEOS_ARC_ARC_SESSION_MANAGER_H_ |
| OLD | NEW |