| 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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 SHOWING_TERMS_OF_SERVICE, | 83 SHOWING_TERMS_OF_SERVICE, |
| 84 CHECKING_ANDROID_MANAGEMENT, | 84 CHECKING_ANDROID_MANAGEMENT, |
| 85 REMOVING_DATA_DIR, | 85 REMOVING_DATA_DIR, |
| 86 ACTIVE, | 86 ACTIVE, |
| 87 }; | 87 }; |
| 88 | 88 |
| 89 class Observer { | 89 class Observer { |
| 90 public: | 90 public: |
| 91 virtual ~Observer() = default; | 91 virtual ~Observer() = default; |
| 92 | 92 |
| 93 // Called to notify that ARC session is shut down. | |
| 94 // TODO(hidehiko): Rename the observer callback to OnArcSessionShutdown(). | |
| 95 virtual void OnArcBridgeShutdown() {} | |
| 96 | |
| 97 // Called to notify that whether Google Play Store is enabled or not, which | 93 // Called to notify that whether Google Play Store is enabled or not, which |
| 98 // is represented by "arc.enabled" preference, is updated. | 94 // is represented by "arc.enabled" preference, is updated. |
| 99 virtual void OnArcPlayStoreEnabledChanged(bool enabled) {} | 95 virtual void OnArcPlayStoreEnabledChanged(bool enabled) {} |
| 100 | 96 |
| 101 // Called to notify that ARC has been initialized successfully. | 97 // Called to notify that ARC has been initialized successfully. |
| 102 virtual void OnArcInitialStart() {} | 98 virtual void OnArcInitialStart() {} |
| 103 | 99 |
| 104 // Called to notify that Android data has been removed. Used in | 100 // Called to notify that Android data has been removed. Used in |
| 105 // browser_tests | 101 // browser_tests |
| 106 virtual void OnArcDataRemoved() {} | 102 virtual void OnArcDataRemoved() {} |
| (...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 287 DISALLOW_COPY_AND_ASSIGN(ArcSessionManager); | 283 DISALLOW_COPY_AND_ASSIGN(ArcSessionManager); |
| 288 }; | 284 }; |
| 289 | 285 |
| 290 // 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. |
| 291 std::ostream& operator<<(std::ostream& os, | 287 std::ostream& operator<<(std::ostream& os, |
| 292 const ArcSessionManager::State& state); | 288 const ArcSessionManager::State& state); |
| 293 | 289 |
| 294 } // namespace arc | 290 } // namespace arc |
| 295 | 291 |
| 296 #endif // CHROME_BROWSER_CHROMEOS_ARC_ARC_SESSION_MANAGER_H_ | 292 #endif // CHROME_BROWSER_CHROMEOS_ARC_ARC_SESSION_MANAGER_H_ |
| OLD | NEW |