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

Unified Diff: device/bluetooth/bluetooth_device.h

Issue 2282763004: bluetooth: mac: Improve classic device discovery and update (Closed)
Patch Set: Store a TimeDelta instead of int Created 4 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: device/bluetooth/bluetooth_device.h
diff --git a/device/bluetooth/bluetooth_device.h b/device/bluetooth/bluetooth_device.h
index 2a5389c4f2b363a78ea4a01414b6db50c9748909..f4bd658a0eb6fddfc7de031f85169ef9bf601cb0 100644
--- a/device/bluetooth/bluetooth_device.h
+++ b/device/bluetooth/bluetooth_device.h
@@ -513,6 +513,9 @@ class DEVICE_BLUETOOTH_EXPORT BluetoothDevice {
// empty string.
static std::string CanonicalizeAddress(const std::string& address);
+ // Update the last time this device was seen.
+ void UpdateTimestamp();
+
// Return the timestamp for when this device was last seen.
base::Time GetLastUpdateTime() const { return last_update_time_; }
@@ -577,9 +580,6 @@ class DEVICE_BLUETOOTH_EXPORT BluetoothDevice {
BluetoothDevice(BluetoothAdapter* adapter);
- // Update the last time this device was seen.
- void UpdateTimestamp();
-
// Implements platform specific operations to initiate a GATT connection.
// Subclasses must also call DidConnectGatt, DidFailToConnectGatt, or
// DidDisconnectGatt immediately or asynchronously as the connection state

Powered by Google App Engine
This is Rietveld 408576698