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