| 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_REGULAR_H_ | 5 #ifndef CHROME_BROWSER_SIGNIN_EASY_UNLOCK_SERVICE_REGULAR_H_ |
| 6 #define CHROME_BROWSER_SIGNIN_EASY_UNLOCK_SERVICE_REGULAR_H_ | 6 #define CHROME_BROWSER_SIGNIN_EASY_UNLOCK_SERVICE_REGULAR_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 // prefs for proximity_auth classes. | 65 // prefs for proximity_auth classes. |
| 66 proximity_auth::ProximityAuthPrefManager* GetProximityAuthPrefManager(); | 66 proximity_auth::ProximityAuthPrefManager* GetProximityAuthPrefManager(); |
| 67 | 67 |
| 68 private: | 68 private: |
| 69 // Loads the RemoteDevice instances that will be supplied to | 69 // Loads the RemoteDevice instances that will be supplied to |
| 70 // ProximityAuthSystem. | 70 // ProximityAuthSystem. |
| 71 void LoadRemoteDevices(); | 71 void LoadRemoteDevices(); |
| 72 | 72 |
| 73 // Called when |remote_device_loader_| completes. | 73 // Called when |remote_device_loader_| completes. |
| 74 void OnRemoteDevicesLoaded( | 74 void OnRemoteDevicesLoaded( |
| 75 const std::vector<proximity_auth::RemoteDevice>& remote_devices); | 75 const std::vector<cryptauth::RemoteDevice>& remote_devices); |
| 76 | 76 |
| 77 // EasyUnlockService implementation: | 77 // EasyUnlockService implementation: |
| 78 EasyUnlockService::Type GetType() const override; | 78 EasyUnlockService::Type GetType() const override; |
| 79 AccountId GetAccountId() const override; | 79 AccountId GetAccountId() const override; |
| 80 void LaunchSetup() override; | 80 void LaunchSetup() override; |
| 81 const base::DictionaryValue* GetPermitAccess() const override; | 81 const base::DictionaryValue* GetPermitAccess() const override; |
| 82 void SetPermitAccess(const base::DictionaryValue& permit) override; | 82 void SetPermitAccess(const base::DictionaryValue& permit) override; |
| 83 void ClearPermitAccess() override; | 83 void ClearPermitAccess() override; |
| 84 const base::ListValue* GetRemoteDevices() const override; | 84 const base::ListValue* GetRemoteDevices() const override; |
| 85 void SetRemoteDevices(const base::ListValue& devices) override; | 85 void SetRemoteDevices(const base::ListValue& devices) override; |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 189 // this deferment prevents the lock screen from being changed by a network | 189 // this deferment prevents the lock screen from being changed by a network |
| 190 // event. | 190 // event. |
| 191 bool deferring_device_load_; | 191 bool deferring_device_load_; |
| 192 | 192 |
| 193 base::WeakPtrFactory<EasyUnlockServiceRegular> weak_ptr_factory_; | 193 base::WeakPtrFactory<EasyUnlockServiceRegular> weak_ptr_factory_; |
| 194 | 194 |
| 195 DISALLOW_COPY_AND_ASSIGN(EasyUnlockServiceRegular); | 195 DISALLOW_COPY_AND_ASSIGN(EasyUnlockServiceRegular); |
| 196 }; | 196 }; |
| 197 | 197 |
| 198 #endif // CHROME_BROWSER_SIGNIN_EASY_UNLOCK_SERVICE_REGULAR_H_ | 198 #endif // CHROME_BROWSER_SIGNIN_EASY_UNLOCK_SERVICE_REGULAR_H_ |
| OLD | NEW |