Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(351)

Side by Side Diff: chrome/browser/signin/easy_unlock_service.h

Issue 1094273003: Implementing a BLE connection finder. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 17 matching lines...) Expand all
28 } 28 }
29 29
30 namespace user_manager { 30 namespace user_manager {
31 class User; 31 class User;
32 } 32 }
33 33
34 namespace user_prefs { 34 namespace user_prefs {
35 class PrefRegistrySyncable; 35 class PrefRegistrySyncable;
36 } 36 }
37 37
38 namespace proximity_auth {
39 class ProximityAuthBleSystem;
40 }
41
38 class EasyUnlockAppManager; 42 class EasyUnlockAppManager;
39 class EasyUnlockServiceObserver; 43 class EasyUnlockServiceObserver;
40 class Profile; 44 class Profile;
41 class PrefRegistrySimple; 45 class PrefRegistrySimple;
42 46
43 class EasyUnlockService : public KeyedService { 47 class EasyUnlockService : public KeyedService {
44 public: 48 public:
45 enum TurnOffFlowStatus { 49 enum TurnOffFlowStatus {
46 IDLE, 50 IDLE,
47 PENDING, 51 PENDING,
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after
322 326
323 // Created lazily in |GetScreenlockStateHandler|. 327 // Created lazily in |GetScreenlockStateHandler|.
324 scoped_ptr<EasyUnlockScreenlockStateHandler> screenlock_state_handler_; 328 scoped_ptr<EasyUnlockScreenlockStateHandler> screenlock_state_handler_;
325 329
326 // The handler for the current auth attempt. Set iff an auth attempt is in 330 // The handler for the current auth attempt. Set iff an auth attempt is in
327 // progress. 331 // progress.
328 scoped_ptr<EasyUnlockAuthAttempt> auth_attempt_; 332 scoped_ptr<EasyUnlockAuthAttempt> auth_attempt_;
329 333
330 scoped_ptr<BluetoothDetector> bluetooth_detector_; 334 scoped_ptr<BluetoothDetector> bluetooth_detector_;
331 335
336 // The proximity auth over Bluetooth Low Energy system. This is main entry
337 // point to bootstap Smart Lock to discover phones over Bluetooth Low
338 // Energy.
339 scoped_ptr<proximity_auth::ProximityAuthBleSystem> proximity_auth_ble_system_;
340
332 #if defined(OS_CHROMEOS) 341 #if defined(OS_CHROMEOS)
333 // Monitors suspend and wake state of ChromeOS. 342 // Monitors suspend and wake state of ChromeOS.
334 class PowerMonitor; 343 class PowerMonitor;
335 scoped_ptr<PowerMonitor> power_monitor_; 344 scoped_ptr<PowerMonitor> power_monitor_;
336 #endif 345 #endif
337 346
338 // Whether the service has been shut down. 347 // Whether the service has been shut down.
339 bool shut_down_; 348 bool shut_down_;
340 349
341 bool tpm_key_checked_; 350 bool tpm_key_checked_;
342 351
343 ObserverList<EasyUnlockServiceObserver> observers_; 352 ObserverList<EasyUnlockServiceObserver> observers_;
344 353
345 base::WeakPtrFactory<EasyUnlockService> weak_ptr_factory_; 354 base::WeakPtrFactory<EasyUnlockService> weak_ptr_factory_;
346 355
347 DISALLOW_COPY_AND_ASSIGN(EasyUnlockService); 356 DISALLOW_COPY_AND_ASSIGN(EasyUnlockService);
348 }; 357 };
349 358
350 #endif // CHROME_BROWSER_SIGNIN_EASY_UNLOCK_SERVICE_H_ 359 #endif // CHROME_BROWSER_SIGNIN_EASY_UNLOCK_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698