| 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 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 183 | 183 |
| 184 // Stops ARC without changing ArcEnabled preference. | 184 // Stops ARC without changing ArcEnabled preference. |
| 185 void StopArc(); | 185 void StopArc(); |
| 186 | 186 |
| 187 // StopArc(), then EnableArc(). Between them data clear may happens. | 187 // StopArc(), then EnableArc(). Between them data clear may happens. |
| 188 // This is a special method to support enterprise device lost case. | 188 // This is a special method to support enterprise device lost case. |
| 189 // This can be called only when ARC is running. | 189 // This can be called only when ARC is running. |
| 190 void StopAndEnableArc(); | 190 void StopAndEnableArc(); |
| 191 | 191 |
| 192 // Removes the data if ARC is stopped. Otherwise, queue to remove the data | 192 // Removes the data if ARC is stopped. Otherwise, queue to remove the data |
| 193 // on ARC is stopped. | 193 // on ARC is stopped. A log statement with the removal reason must be added |
| 194 // prior to calling RemoveArcData(). |
| 194 void RemoveArcData(); | 195 void RemoveArcData(); |
| 195 | 196 |
| 196 ArcSupportHost* support_host() { return support_host_.get(); } | 197 ArcSupportHost* support_host() { return support_host_.get(); } |
| 197 | 198 |
| 198 // TODO(hidehiko): Get rid of the getter by migration between ArcAuthContext | 199 // TODO(hidehiko): Get rid of the getter by migration between ArcAuthContext |
| 199 // and ArcAuthInfoFetcher. | 200 // and ArcAuthInfoFetcher. |
| 200 ArcAuthContext* auth_context() { return context_.get(); } | 201 ArcAuthContext* auth_context() { return context_.get(); } |
| 201 | 202 |
| 202 void StartArc(); | 203 void StartArc(); |
| 203 | 204 |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 282 DISALLOW_COPY_AND_ASSIGN(ArcSessionManager); | 283 DISALLOW_COPY_AND_ASSIGN(ArcSessionManager); |
| 283 }; | 284 }; |
| 284 | 285 |
| 285 // Outputs the stringified |state| to |os|. This is only for logging purposes. | 286 // Outputs the stringified |state| to |os|. This is only for logging purposes. |
| 286 std::ostream& operator<<(std::ostream& os, | 287 std::ostream& operator<<(std::ostream& os, |
| 287 const ArcSessionManager::State& state); | 288 const ArcSessionManager::State& state); |
| 288 | 289 |
| 289 } // namespace arc | 290 } // namespace arc |
| 290 | 291 |
| 291 #endif // CHROME_BROWSER_CHROMEOS_ARC_ARC_SESSION_MANAGER_H_ | 292 #endif // CHROME_BROWSER_CHROMEOS_ARC_ARC_SESSION_MANAGER_H_ |
| OLD | NEW |