| 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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 CHECKING_ANDROID_MANAGEMENT, | 96 CHECKING_ANDROID_MANAGEMENT, |
| 97 REMOVING_DATA_DIR, | 97 REMOVING_DATA_DIR, |
| 98 ACTIVE, | 98 ACTIVE, |
| 99 }; | 99 }; |
| 100 | 100 |
| 101 class Observer { | 101 class Observer { |
| 102 public: | 102 public: |
| 103 virtual ~Observer() = default; | 103 virtual ~Observer() = default; |
| 104 | 104 |
| 105 // Called to notify that ARC bridge is shut down. | 105 // Called to notify that ARC bridge is shut down. |
| 106 virtual void OnShutdownBridge() {} | 106 virtual void OnArcBridgeShutdown() {} |
| 107 | 107 |
| 108 // Called to notify that ARC enabled state has been updated. | 108 // Called to notify that ARC enabled state has been updated. |
| 109 virtual void OnOptInEnabled(bool enabled) {} | 109 virtual void OnArcOptInChanged(bool enabled) {} |
| 110 | 110 |
| 111 // Called to notify that ARC has been initialized successfully. | 111 // Called to notify that ARC has been initialized successfully. |
| 112 virtual void OnInitialStart() {} | 112 virtual void OnArcInitialStart() {} |
| 113 | 113 |
| 114 // Called to notify that Android data has been removed. Used in | 114 // Called to notify that Android data has been removed. Used in |
| 115 // browser_tests | 115 // browser_tests |
| 116 virtual void OnArcDataRemoved() {} | 116 virtual void OnArcDataRemoved() {} |
| 117 }; | 117 }; |
| 118 | 118 |
| 119 explicit ArcSessionManager(ArcBridgeService* bridge_service); | 119 explicit ArcSessionManager(ArcBridgeService* bridge_service); |
| 120 ~ArcSessionManager() override; | 120 ~ArcSessionManager() override; |
| 121 | 121 |
| 122 static ArcSessionManager* Get(); | 122 static ArcSessionManager* Get(); |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 263 DISALLOW_COPY_AND_ASSIGN(ArcSessionManager); | 263 DISALLOW_COPY_AND_ASSIGN(ArcSessionManager); |
| 264 }; | 264 }; |
| 265 | 265 |
| 266 // Outputs the stringified |state| to |os|. This is only for logging purposes. | 266 // Outputs the stringified |state| to |os|. This is only for logging purposes. |
| 267 std::ostream& operator<<(std::ostream& os, | 267 std::ostream& operator<<(std::ostream& os, |
| 268 const ArcSessionManager::State& state); | 268 const ArcSessionManager::State& state); |
| 269 | 269 |
| 270 } // namespace arc | 270 } // namespace arc |
| 271 | 271 |
| 272 #endif // CHROME_BROWSER_CHROMEOS_ARC_ARC_SESSION_MANAGER_H_ | 272 #endif // CHROME_BROWSER_CHROMEOS_ARC_ARC_SESSION_MANAGER_H_ |
| OLD | NEW |