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

Side by Side Diff: components/proximity_auth/unlock_manager_impl.h

Issue 2845433003: [EasyUnlock] Update ProximityMonitor to only check for RSSI proximity. (Closed)
Patch Set: fixes Created 3 years, 7 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 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_IMPL_H 5 #ifndef COMPONENTS_PROXIMITY_AUTH_UNLOCK_MANAGER_IMPL_H
6 #define COMPONENTS_PROXIMITY_AUTH_UNLOCK_MANAGER_IMPL_H 6 #define COMPONENTS_PROXIMITY_AUTH_UNLOCK_MANAGER_IMPL_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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 ~UnlockManagerImpl() override; 45 ~UnlockManagerImpl() override;
46 46
47 // UnlockManager: 47 // UnlockManager:
48 bool IsUnlockAllowed() override; 48 bool IsUnlockAllowed() override;
49 void SetRemoteDeviceLifeCycle(RemoteDeviceLifeCycle* life_cycle) override; 49 void SetRemoteDeviceLifeCycle(RemoteDeviceLifeCycle* life_cycle) override;
50 void OnLifeCycleStateChanged() override; 50 void OnLifeCycleStateChanged() override;
51 void OnAuthAttempted( 51 void OnAuthAttempted(
52 ScreenlockBridge::LockHandler::AuthType auth_type) override; 52 ScreenlockBridge::LockHandler::AuthType auth_type) override;
53 53
54 protected: 54 protected:
55 // Creates a ProximityMonitor instance for the given |remote_device|. 55 // Creates a ProximityMonitor instance for the given |connection|.
56 // Exposed for testing. 56 // Exposed for testing.
57 virtual std::unique_ptr<ProximityMonitor> CreateProximityMonitor( 57 virtual std::unique_ptr<ProximityMonitor> CreateProximityMonitor(
58 const cryptauth::RemoteDevice& remote_device); 58 cryptauth::Connection* connection);
59 59
60 private: 60 private:
61 // The possible lock screen states for the remote device. 61 // The possible lock screen states for the remote device.
62 enum class RemoteScreenlockState { 62 enum class RemoteScreenlockState {
63 UNKNOWN, 63 UNKNOWN,
64 UNLOCKED, 64 UNLOCKED,
65 DISABLED, 65 DISABLED,
66 LOCKED, 66 LOCKED,
67 }; 67 };
68 68
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 183
184 // Used to vend all other weak pointers. 184 // Used to vend all other weak pointers.
185 base::WeakPtrFactory<UnlockManagerImpl> weak_ptr_factory_; 185 base::WeakPtrFactory<UnlockManagerImpl> weak_ptr_factory_;
186 186
187 DISALLOW_COPY_AND_ASSIGN(UnlockManagerImpl); 187 DISALLOW_COPY_AND_ASSIGN(UnlockManagerImpl);
188 }; 188 };
189 189
190 } // namespace proximity_auth 190 } // namespace proximity_auth
191 191
192 #endif // COMPONENTS_PROXIMITY_AUTH_UNLOCK_MANAGER_IMPL_H 192 #endif // COMPONENTS_PROXIMITY_AUTH_UNLOCK_MANAGER_IMPL_H
OLDNEW
« no previous file with comments | « components/proximity_auth/remote_device_life_cycle_impl.cc ('k') | components/proximity_auth/unlock_manager_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698