| 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_AUTH_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_ARC_ARC_AUTH_SERVICE_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_ARC_ARC_AUTH_SERVICE_H_ | 6 #define CHROME_BROWSER_CHROMEOS_ARC_ARC_AUTH_SERVICE_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <ostream> | 9 #include <ostream> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 virtual void OnOptInUIClose() {} | 80 virtual void OnOptInUIClose() {} |
| 81 | 81 |
| 82 // Called to notify that OptIn UI needs to show specific page. | 82 // Called to notify that OptIn UI needs to show specific page. |
| 83 virtual void OnOptInUIShowPage(UIPage page, const base::string16& status) {} | 83 virtual void OnOptInUIShowPage(UIPage page, const base::string16& status) {} |
| 84 | 84 |
| 85 // Called to notify that ARC bridge is shut down. | 85 // Called to notify that ARC bridge is shut down. |
| 86 virtual void OnShutdownBridge() {} | 86 virtual void OnShutdownBridge() {} |
| 87 | 87 |
| 88 // Called to notify that ARC enabled state has been updated. | 88 // Called to notify that ARC enabled state has been updated. |
| 89 virtual void OnOptInEnabled(bool enabled) {} | 89 virtual void OnOptInEnabled(bool enabled) {} |
| 90 |
| 91 // Called to notify that ARC has been initialized successfully. |
| 92 virtual void OnInitialStart() {} |
| 90 }; | 93 }; |
| 91 | 94 |
| 92 explicit ArcAuthService(ArcBridgeService* bridge_service); | 95 explicit ArcAuthService(ArcBridgeService* bridge_service); |
| 93 ~ArcAuthService() override; | 96 ~ArcAuthService() override; |
| 94 | 97 |
| 95 static ArcAuthService* Get(); | 98 static ArcAuthService* Get(); |
| 96 | 99 |
| 97 // It is called from chrome/browser/prefs/browser_prefs.cc. | 100 // It is called from chrome/browser/prefs/browser_prefs.cc. |
| 98 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); | 101 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); |
| 99 | 102 |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 226 base::WeakPtrFactory<ArcAuthService> weak_ptr_factory_; | 229 base::WeakPtrFactory<ArcAuthService> weak_ptr_factory_; |
| 227 | 230 |
| 228 DISALLOW_COPY_AND_ASSIGN(ArcAuthService); | 231 DISALLOW_COPY_AND_ASSIGN(ArcAuthService); |
| 229 }; | 232 }; |
| 230 | 233 |
| 231 std::ostream& operator<<(std::ostream& os, const ArcAuthService::State& state); | 234 std::ostream& operator<<(std::ostream& os, const ArcAuthService::State& state); |
| 232 | 235 |
| 233 } // namespace arc | 236 } // namespace arc |
| 234 | 237 |
| 235 #endif // CHROME_BROWSER_CHROMEOS_ARC_ARC_AUTH_SERVICE_H_ | 238 #endif // CHROME_BROWSER_CHROMEOS_ARC_ARC_AUTH_SERVICE_H_ |
| OLD | NEW |