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

Unified Diff: components/proximity_auth/remote_device_life_cycle_impl.h

Issue 2561203002: Migrate weave-related classes from proximity_auth/ble to cryptauth/ble. (Closed)
Patch Set: Moved all general classes from proximity_auth to cryptauth. Created 4 years 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 side-by-side diff with in-line comments
Download patch
Index: components/proximity_auth/remote_device_life_cycle_impl.h
diff --git a/components/proximity_auth/remote_device_life_cycle_impl.h b/components/proximity_auth/remote_device_life_cycle_impl.h
index c1649eb039b03406ba0a8effcc0dfb3f91011cb8..9b53e6eb85549d24521b999652bf5b258cd8493f 100644
--- a/components/proximity_auth/remote_device_life_cycle_impl.h
+++ b/components/proximity_auth/remote_device_life_cycle_impl.h
@@ -11,6 +11,8 @@
#include "base/memory/weak_ptr.h"
#include "base/observer_list.h"
#include "base/timer/timer.h"
+#include "components/cryptauth/bluetooth_throttler.h"
+#include "components/cryptauth/connection.h"
#include "components/cryptauth/remote_device.h"
#include "components/proximity_auth/authenticator.h"
#include "components/proximity_auth/messenger_observer.h"
@@ -18,9 +20,7 @@
namespace proximity_auth {
-class BluetoothThrottler;
class Messenger;
-class Connection;
class ConnectionFinder;
class ProximityAuthClient;
class SecureContext;
@@ -61,7 +61,7 @@ class RemoteDeviceLifeCycleImpl : public RemoteDeviceLifeCycle,
void FindConnection();
// Called when |connection_finder_| finds a connection.
- void OnConnectionFound(std::unique_ptr<Connection> connection);
+ void OnConnectionFound(std::unique_ptr<cryptauth::Connection> connection);
// Callback when |authenticator_| completes authentication.
void OnAuthenticationResult(Authenticator::Result result,
@@ -86,7 +86,7 @@ class RemoteDeviceLifeCycleImpl : public RemoteDeviceLifeCycle,
base::ObserverList<Observer> observers_;
// The connection that is established by |connection_finder_|.
- std::unique_ptr<Connection> connection_;
+ std::unique_ptr<cryptauth::Connection> connection_;
// Context for encrypting and decrypting messages. Created after
// authentication succeeds. Ownership is eventually passed to |messenger_|.
@@ -106,7 +106,7 @@ class RemoteDeviceLifeCycleImpl : public RemoteDeviceLifeCycle,
// Rate limits Bluetooth connections to the same device. Used to in the
// created ConnectionFinder.
- std::unique_ptr<BluetoothThrottler> bluetooth_throttler_;
+ std::unique_ptr<cryptauth::BluetoothThrottler> bluetooth_throttler_;
// After authentication fails, this timer waits for a period of time before
// retrying the connection.

Powered by Google App Engine
This is Rietveld 408576698