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

Unified Diff: device/bluetooth/bluetooth_device.h

Issue 2282763004: bluetooth: mac: Improve classic device discovery and update (Closed)
Patch Set: Address moar comments 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
« no previous file with comments | « device/bluetooth/bluetooth_classic_device_mac.mm ('k') | device/bluetooth/bluetooth_device.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/bluetooth/bluetooth_device.h
diff --git a/device/bluetooth/bluetooth_device.h b/device/bluetooth/bluetooth_device.h
index 23565c9b7a804979d7a1da86f8ffcd6d181358b3..b2dfdedce2c0040286c69cac587ad5dff39d2137 100644
--- a/device/bluetooth/bluetooth_device.h
+++ b/device/bluetooth/bluetooth_device.h
@@ -517,8 +517,12 @@ class DEVICE_BLUETOOTH_EXPORT BluetoothDevice {
// empty string.
static std::string CanonicalizeAddress(const std::string& address);
- // Return the timestamp for when this device was last seen.
- base::Time GetLastUpdateTime() const { return last_update_time_; }
+ // Update the last time this device was seen.
+ void UpdateTimestamp();
+
+ // Returns the time of the last call to UpdateTimestamp(), or base::Time() if
+ // it hasn't been called yet.
+ virtual base::Time GetLastUpdateTime() const;
// Called by BluetoothAdapter when a new Advertisement is seen for this
// device. This replaces previously seen Advertisement Data.
@@ -581,9 +585,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
« no previous file with comments | « device/bluetooth/bluetooth_classic_device_mac.mm ('k') | device/bluetooth/bluetooth_device.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698