| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 COMPONENTS_PROXIMITY_AUTH_UNLOCK_MANAGER_H | 5 #ifndef COMPONENTS_PROXIMITY_AUTH_UNLOCK_MANAGER_H |
| 6 #define COMPONENTS_PROXIMITY_AUTH_UNLOCK_MANAGER_H | 6 #define COMPONENTS_PROXIMITY_AUTH_UNLOCK_MANAGER_H |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
| 10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 void OnRemoteStatusUpdate(const RemoteStatusUpdate& status_update) override; | 78 void OnRemoteStatusUpdate(const RemoteStatusUpdate& status_update) override; |
| 79 void OnDecryptResponse(const std::string& decrypted_bytes) override; | 79 void OnDecryptResponse(const std::string& decrypted_bytes) override; |
| 80 void OnUnlockResponse(bool success) override; | 80 void OnUnlockResponse(bool success) override; |
| 81 void OnDisconnected() override; | 81 void OnDisconnected() override; |
| 82 | 82 |
| 83 // ScreenlockBridge::Observer | 83 // ScreenlockBridge::Observer |
| 84 void OnScreenDidLock( | 84 void OnScreenDidLock( |
| 85 ScreenlockBridge::LockHandler::ScreenType screen_type) override; | 85 ScreenlockBridge::LockHandler::ScreenType screen_type) override; |
| 86 void OnScreenDidUnlock( | 86 void OnScreenDidUnlock( |
| 87 ScreenlockBridge::LockHandler::ScreenType screen_type) override; | 87 ScreenlockBridge::LockHandler::ScreenType screen_type) override; |
| 88 void OnFocusedUserChanged(const std::string& user_id) override; | 88 void OnFocusedUserChanged(const AccountId& account_id) override; |
| 89 | 89 |
| 90 // Called when the screenlock state changes. | 90 // Called when the screenlock state changes. |
| 91 void OnScreenLockedOrUnlocked(bool is_locked); | 91 void OnScreenLockedOrUnlocked(bool is_locked); |
| 92 | 92 |
| 93 // Called when the Bluetooth adapter is initialized. | 93 // Called when the Bluetooth adapter is initialized. |
| 94 void OnBluetoothAdapterInitialized( | 94 void OnBluetoothAdapterInitialized( |
| 95 scoped_refptr<device::BluetoothAdapter> adapter); | 95 scoped_refptr<device::BluetoothAdapter> adapter); |
| 96 | 96 |
| 97 // device::BluetoothAdapter::Observer: | 97 // device::BluetoothAdapter::Observer: |
| 98 void AdapterPresentChanged(device::BluetoothAdapter* adapter, | 98 void AdapterPresentChanged(device::BluetoothAdapter* adapter, |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 189 | 189 |
| 190 // Used to vend all other weak pointers. | 190 // Used to vend all other weak pointers. |
| 191 base::WeakPtrFactory<UnlockManager> weak_ptr_factory_; | 191 base::WeakPtrFactory<UnlockManager> weak_ptr_factory_; |
| 192 | 192 |
| 193 DISALLOW_COPY_AND_ASSIGN(UnlockManager); | 193 DISALLOW_COPY_AND_ASSIGN(UnlockManager); |
| 194 }; | 194 }; |
| 195 | 195 |
| 196 } // namespace proximity_auth | 196 } // namespace proximity_auth |
| 197 | 197 |
| 198 #endif // COMPONENTS_PROXIMITY_AUTH_UNLOCK_MANAGER_H | 198 #endif // COMPONENTS_PROXIMITY_AUTH_UNLOCK_MANAGER_H |
| OLD | NEW |