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

Unified Diff: trunk/src/device/bluetooth/bluetooth_device.h

Issue 224763003: Revert 261566 "device/bluetooth: Rename device::bluetooth_utils:..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 9 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: trunk/src/device/bluetooth/bluetooth_device.h
===================================================================
--- trunk/src/device/bluetooth/bluetooth_device.h (revision 261569)
+++ trunk/src/device/bluetooth/bluetooth_device.h (working copy)
@@ -11,7 +11,6 @@
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_vector.h"
#include "base/strings/string16.h"
-#include "device/bluetooth/bluetooth_uuid.h"
namespace device {
@@ -170,6 +169,10 @@
virtual void AuthorizePairing(BluetoothDevice* device) = 0;
};
+ // Returns true if uuid is in a a valid canonical format
+ // (see utils::CanonicalUuid).
+ static bool IsUUIDValid(const std::string& uuid);
+
virtual ~BluetoothDevice();
// Returns the Bluetooth class of the device, used by GetDeviceType()
@@ -233,7 +236,9 @@
// devices this data is collected from both the EIR data and SDP tables,
// for Low Energy devices this data is collected from AD and GATT primary
// services, for dual mode devices this may be collected from both./
- typedef std::vector<BluetoothUUID> UUIDList;
+ //
+ // All UUIDs are returned in the canonical 128-bit format.
+ typedef std::vector<std::string> UUIDList;
virtual UUIDList GetUUIDs() const = 0;
// The ErrorCallback is used for methods that can fail in which case it
@@ -328,7 +333,7 @@
// all references to the BluetoothSocket are released. Note that the
// BluetoothSocket object can outlive both this BluetoothDevice and the
// BluetoothAdapter for this device.
- virtual void ConnectToService(const BluetoothUUID& service_uuid,
+ virtual void ConnectToService(const std::string& service_uuid,
const SocketCallback& callback) = 0;
// Attempts to initiate an outgoing connection to this device for the profile
« no previous file with comments | « trunk/src/device/bluetooth/bluetooth_chromeos_unittest.cc ('k') | trunk/src/device/bluetooth/bluetooth_device.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698