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

Unified Diff: components/cryptauth/remote_device.h

Issue 2576283002: [Chrome OS Tether] Create BleAdvertisementDeviceQueue. (Closed)
Patch Set: 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/cryptauth/remote_device.h
diff --git a/components/cryptauth/remote_device.h b/components/cryptauth/remote_device.h
index 369bc7f64b6c2612655c7471ab559704361c3c59..5539055bfbde4255790c2e0d4ab44c7c5d7bc9f8 100644
--- a/components/cryptauth/remote_device.h
+++ b/components/cryptauth/remote_device.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef COMPONENTS_PROXIMITY_AUTH_REMOTE_DEVICE_H
-#define COMPONENTS_PROXIMITY_AUTH_REMOTE_DEVICE_H
+#ifndef COMPONENTS_CRYPTAUTH_REMOTE_DEVICE_H
+#define COMPONENTS_CRYPTAUTH_REMOTE_DEVICE_H
#include <string>
#include <vector>
@@ -34,16 +34,18 @@ struct RemoteDevice {
~RemoteDevice();
// Returns a unique ID for the device.
- std::string GetDeviceId();
+ std::string GetDeviceId() const;
// Returns a shortened device ID for the purpose of concise logging (device
// IDs are often so long that logs are difficult to read). Note that this
// ID is not guaranteed to be unique, so it should only be used for log.
- std::string GetTruncatedDeviceIdForLogs();
+ std::string GetTruncatedDeviceIdForLogs() const;
+
+ bool operator==(const RemoteDevice& other) const;
};
typedef std::vector<RemoteDevice> RemoteDeviceList;
} // namespace cryptauth
-#endif // COMPONENTS_PROXIMITY_AUTH_REMOTE_DEVICE_H
+#endif // COMPONENTS_CRYPTAUTH_REMOTE_DEVICE_H

Powered by Google App Engine
This is Rietveld 408576698