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

Unified Diff: components/proximity_auth/connection.h

Issue 2560713002: Move RemoteDevice from //components/proximity_auth to //components/cryptauth so that it can be easi… (Closed)
Patch Set: Add cryptauth dependency. 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/connection.h
diff --git a/components/proximity_auth/connection.h b/components/proximity_auth/connection.h
index a222e425e01566ff786d785f4ca0d39d6124984b..f66e831cbddf2507e54e7052355657342bea000b 100644
--- a/components/proximity_auth/connection.h
+++ b/components/proximity_auth/connection.h
@@ -10,7 +10,7 @@
#include "base/macros.h"
#include "base/memory/ref_counted.h"
#include "base/observer_list.h"
-#include "components/proximity_auth/remote_device.h"
+#include "components/cryptauth/remote_device.h"
namespace proximity_auth {
@@ -28,7 +28,7 @@ class Connection {
};
// Constructs a connection to the given |remote_device|.
- explicit Connection(const RemoteDevice& remote_device);
+ explicit Connection(const cryptauth::RemoteDevice& remote_device);
virtual ~Connection();
// Returns true iff the connection's status is CONNECTED.
@@ -45,7 +45,9 @@ class Connection {
void AddObserver(ConnectionObserver* observer);
void RemoveObserver(ConnectionObserver* observer);
- const RemoteDevice& remote_device() const { return remote_device_; }
+ const cryptauth::RemoteDevice& remote_device() const {
+ return remote_device_;
+ }
// Abstract methods that subclasses should implement:
@@ -92,7 +94,7 @@ class Connection {
private:
// The remote device corresponding to this connection.
- const RemoteDevice remote_device_;
+ const cryptauth::RemoteDevice remote_device_;
// The current status of the connection.
Status status_;
« no previous file with comments | « components/proximity_auth/bluetooth_throttler_impl_unittest.cc ('k') | components/proximity_auth/connection.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698