| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_SIGNIN_EASY_UNLOCK_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_SIGNIN_EASY_UNLOCK_SERVICE_H_ |
| 6 #define CHROME_BROWSER_SIGNIN_EASY_UNLOCK_SERVICE_H_ | 6 #define CHROME_BROWSER_SIGNIN_EASY_UNLOCK_SERVICE_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 | 153 |
| 154 // Does a service type specific shutdown. Called from |Shutdown|. | 154 // Does a service type specific shutdown. Called from |Shutdown|. |
| 155 virtual void ShutdownInternal() = 0; | 155 virtual void ShutdownInternal() = 0; |
| 156 | 156 |
| 157 // Service type specific tests for whether the service is allowed. Returns | 157 // Service type specific tests for whether the service is allowed. Returns |
| 158 // false if service is not allowed. If true is returned, the service may still | 158 // false if service is not allowed. If true is returned, the service may still |
| 159 // not be allowed if common tests fail (e.g. if Bluetooth is not available). | 159 // not be allowed if common tests fail (e.g. if Bluetooth is not available). |
| 160 virtual bool IsAllowedInternal() = 0; | 160 virtual bool IsAllowedInternal() = 0; |
| 161 | 161 |
| 162 // KeyedService override: | 162 // KeyedService override: |
| 163 virtual void Shutdown() OVERRIDE; | 163 virtual void Shutdown() override; |
| 164 | 164 |
| 165 // Exposes the profile to which the service is attached to subclasses. | 165 // Exposes the profile to which the service is attached to subclasses. |
| 166 Profile* profile() const { return profile_; } | 166 Profile* profile() const { return profile_; } |
| 167 | 167 |
| 168 // Installs the Easy unlock component app if it isn't installed and enables | 168 // Installs the Easy unlock component app if it isn't installed and enables |
| 169 // the app if it is disabled. | 169 // the app if it is disabled. |
| 170 void LoadApp(); | 170 void LoadApp(); |
| 171 | 171 |
| 172 // Disables the Easy unlock component app if it's loaded. | 172 // Disables the Easy unlock component app if it's loaded. |
| 173 void DisableAppIfLoaded(); | 173 void DisableAppIfLoaded(); |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 246 bool shut_down_; | 246 bool shut_down_; |
| 247 | 247 |
| 248 ObserverList<EasyUnlockServiceObserver> observers_; | 248 ObserverList<EasyUnlockServiceObserver> observers_; |
| 249 | 249 |
| 250 base::WeakPtrFactory<EasyUnlockService> weak_ptr_factory_; | 250 base::WeakPtrFactory<EasyUnlockService> weak_ptr_factory_; |
| 251 | 251 |
| 252 DISALLOW_COPY_AND_ASSIGN(EasyUnlockService); | 252 DISALLOW_COPY_AND_ASSIGN(EasyUnlockService); |
| 253 }; | 253 }; |
| 254 | 254 |
| 255 #endif // CHROME_BROWSER_SIGNIN_EASY_UNLOCK_SERVICE_H_ | 255 #endif // CHROME_BROWSER_SIGNIN_EASY_UNLOCK_SERVICE_H_ |
| OLD | NEW |