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 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
221 void AddObserver(EasyUnlockServiceObserver* observer); | 221 void AddObserver(EasyUnlockServiceObserver* observer); |
222 void RemoveObserver(EasyUnlockServiceObserver* observer); | 222 void RemoveObserver(EasyUnlockServiceObserver* observer); |
223 | 223 |
224 // ProximityAuthUIDelegate: | 224 // ProximityAuthUIDelegate: |
225 PrefService* GetPrefService() override; | 225 PrefService* GetPrefService() override; |
226 scoped_ptr<proximity_auth::SecureMessageDelegate> | 226 scoped_ptr<proximity_auth::SecureMessageDelegate> |
227 CreateSecureMessageDelegate() override; | 227 CreateSecureMessageDelegate() override; |
228 scoped_ptr<proximity_auth::CryptAuthClientFactory> | 228 scoped_ptr<proximity_auth::CryptAuthClientFactory> |
229 CreateCryptAuthClientFactory() override; | 229 CreateCryptAuthClientFactory() override; |
230 cryptauth::DeviceClassifier GetDeviceClassifier() override; | 230 cryptauth::DeviceClassifier GetDeviceClassifier() override; |
| 231 gcm::GCMDriver* GetGCMDriver() override; |
231 | 232 |
232 ChromeProximityAuthClient* proximity_auth_client() { | 233 ChromeProximityAuthClient* proximity_auth_client() { |
233 return &proximity_auth_client_; | 234 return &proximity_auth_client_; |
234 } | 235 } |
235 | 236 |
236 protected: | 237 protected: |
237 explicit EasyUnlockService(Profile* profile); | 238 explicit EasyUnlockService(Profile* profile); |
238 ~EasyUnlockService() override; | 239 ~EasyUnlockService() override; |
239 | 240 |
240 // Does a service type specific initialization. | 241 // Does a service type specific initialization. |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
368 bool tpm_key_checked_; | 369 bool tpm_key_checked_; |
369 | 370 |
370 base::ObserverList<EasyUnlockServiceObserver> observers_; | 371 base::ObserverList<EasyUnlockServiceObserver> observers_; |
371 | 372 |
372 base::WeakPtrFactory<EasyUnlockService> weak_ptr_factory_; | 373 base::WeakPtrFactory<EasyUnlockService> weak_ptr_factory_; |
373 | 374 |
374 DISALLOW_COPY_AND_ASSIGN(EasyUnlockService); | 375 DISALLOW_COPY_AND_ASSIGN(EasyUnlockService); |
375 }; | 376 }; |
376 | 377 |
377 #endif // CHROME_BROWSER_SIGNIN_EASY_UNLOCK_SERVICE_H_ | 378 #endif // CHROME_BROWSER_SIGNIN_EASY_UNLOCK_SERVICE_H_ |
OLD | NEW |