| 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 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 194 | 194 |
| 195 // Stops ARC without changing ArcEnabled preference. | 195 // Stops ARC without changing ArcEnabled preference. |
| 196 void StopArc(); | 196 void StopArc(); |
| 197 | 197 |
| 198 // StopArc(), then EnableArc(). Between them data clear may happens. | 198 // StopArc(), then EnableArc(). Between them data clear may happens. |
| 199 // This is a special method to support enterprise device lost case. | 199 // This is a special method to support enterprise device lost case. |
| 200 // This can be called only when ARC is running. | 200 // This can be called only when ARC is running. |
| 201 void StopAndEnableArc(); | 201 void StopAndEnableArc(); |
| 202 | 202 |
| 203 // Removes the data if ARC is stopped. Otherwise, queue to remove the data | 203 // Removes the data if ARC is stopped. Otherwise, queue to remove the data |
| 204 // on ARC is stopped. | 204 // on ARC is stopped. A log statement with the removal reason must be added |
| 205 // prior to calling RemoveArcData(). |
| 205 void RemoveArcData(); | 206 void RemoveArcData(); |
| 206 | 207 |
| 207 ArcSupportHost* support_host() { return support_host_.get(); } | 208 ArcSupportHost* support_host() { return support_host_.get(); } |
| 208 | 209 |
| 209 // TODO(hidehiko): Get rid of the getter by migration between ArcAuthContext | 210 // TODO(hidehiko): Get rid of the getter by migration between ArcAuthContext |
| 210 // and ArcAuthCodeFetcher. | 211 // and ArcAuthCodeFetcher. |
| 211 ArcAuthContext* auth_context() { return context_.get(); } | 212 ArcAuthContext* auth_context() { return context_.get(); } |
| 212 | 213 |
| 213 void StartArc(); | 214 void StartArc(); |
| 214 | 215 |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 293 DISALLOW_COPY_AND_ASSIGN(ArcSessionManager); | 294 DISALLOW_COPY_AND_ASSIGN(ArcSessionManager); |
| 294 }; | 295 }; |
| 295 | 296 |
| 296 // Outputs the stringified |state| to |os|. This is only for logging purposes. | 297 // Outputs the stringified |state| to |os|. This is only for logging purposes. |
| 297 std::ostream& operator<<(std::ostream& os, | 298 std::ostream& operator<<(std::ostream& os, |
| 298 const ArcSessionManager::State& state); | 299 const ArcSessionManager::State& state); |
| 299 | 300 |
| 300 } // namespace arc | 301 } // namespace arc |
| 301 | 302 |
| 302 #endif // CHROME_BROWSER_CHROMEOS_ARC_ARC_SESSION_MANAGER_H_ | 303 #endif // CHROME_BROWSER_CHROMEOS_ARC_ARC_SESSION_MANAGER_H_ |
| OLD | NEW |