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

Unified Diff: device/bluetooth/bluetooth_gatt_descriptor.h

Issue 224893002: device/bluetooth: Rename device::bluetooth_utils::UUID to device::BluetoothUUID (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
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
« no previous file with comments | « device/bluetooth/bluetooth_gatt_characteristic.cc ('k') | device/bluetooth/bluetooth_gatt_descriptor.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/bluetooth/bluetooth_gatt_descriptor.h
diff --git a/device/bluetooth/bluetooth_gatt_descriptor.h b/device/bluetooth/bluetooth_gatt_descriptor.h
index 9c0a1d21c27e8b34408a65c3aaa5765f7b9d3c4f..45ea8f8376dcfa4fa5a631556baadbab733fb39e 100644
--- a/device/bluetooth/bluetooth_gatt_descriptor.h
+++ b/device/bluetooth/bluetooth_gatt_descriptor.h
@@ -9,7 +9,7 @@
#include "base/basictypes.h"
#include "base/callback.h"
-#include "device/bluetooth/bluetooth_utils.h"
+#include "device/bluetooth/bluetooth_uuid.h"
namespace device {
@@ -36,7 +36,7 @@ class BluetoothGattDescriptor {
// - Reliable Write: 0x0001
// - Writable Auxiliaries: 0x0002
//
- static const bluetooth_utils::UUID kCharacteristicExtendedPropertiesUuid;
+ static const BluetoothUUID kCharacteristicExtendedPropertiesUuid;
// The "Characteristic User Description" descriptor defines a UTF-8 string of
// variable size that is a user textual description of the associated
@@ -44,7 +44,7 @@ class BluetoothGattDescriptor {
// per characteristic. This descriptor can be written to if the "Writable
// Auxiliaries" bit of the Characteristic Properties (via the "Characteristic
// Extended Properties" descriptor) has been set.
- static const bluetooth_utils::UUID kCharacteristicUserDescriptionUuid;
+ static const BluetoothUUID kCharacteristicUserDescriptionUuid;
// The "Client Characteristic Configuration" descriptor defines how the
// characteristic may be configured by a specific client. A server-side
@@ -58,7 +58,7 @@ class BluetoothGattDescriptor {
// - Notification: 0x0001
// - Indication: 0x0002
//
- static const bluetooth_utils::UUID kClientCharacteristicConfigurationUuid;
+ static const BluetoothUUID kClientCharacteristicConfigurationUuid;
// The "Server Characteristic Configuration" descriptor defines how the
// characteristic may be configured for the server. There is one instance
@@ -71,7 +71,7 @@ class BluetoothGattDescriptor {
// - Default: 0x0000
// - Broadcast: 0x0001
//
- static const bluetooth_utils::UUID kServerCharacteristicConfigurationUuid;
+ static const BluetoothUUID kServerCharacteristicConfigurationUuid;
// The "Characteristic Presentation Format" declaration defines the format of
// the Characteristic Value. The value is composed of 7 octets which are
@@ -81,7 +81,7 @@ class BluetoothGattDescriptor {
// than one declaration of this descriptor exists for a characteristic, then a
// "Characteristic Aggregate Format" descriptor must also exist for that
// characteristic.
- static const bluetooth_utils::UUID kCharacteristicPresentationFormatUuid;
+ static const BluetoothUUID kCharacteristicPresentationFormatUuid;
// The "Characteristic Aggregate Format" descriptor defines the format of an
// aggragated characteristic value. In GATT's underlying protocol, ATT, each
@@ -103,7 +103,7 @@ class BluetoothGattDescriptor {
// Similarly for local characteristics, implementations DO NOT need to create
// an instance of BluetoothGattDescriptor for this descriptor as this will be
// handled by the subsystem.
- static const bluetooth_utils::UUID kCharacteristicAggregateFormatUuid;
+ static const BluetoothUUID kCharacteristicAggregateFormatUuid;
// Interface for observing changes from a BluetoothGattDescriptor.
// Properties of remote characteristic desciptors are received asynchonously.
@@ -115,7 +115,7 @@ class BluetoothGattDescriptor {
// Called when the UUID of |descriptor| has changed.
virtual void UuidChanged(
BluetoothGattDescriptor* descriptor,
- const bluetooth_utils::UUID& uuid) {}
+ const BluetoothUUID& uuid) {}
// Called when the current value of |descriptor| has changed.
virtual void ValueChanged(
@@ -153,11 +153,11 @@ class BluetoothGattDescriptor {
// |kCharacteristicPresentationFormat| are supported for locally hosted
// descriptors. This method will return NULL if |uuid| is any one of the
// unsupported predefined descriptor UUIDs.
- static BluetoothGattDescriptor* Create(const bluetooth_utils::UUID& uuid,
+ static BluetoothGattDescriptor* Create(const BluetoothUUID& uuid,
const std::vector<uint8>& value);
// The Bluetooth-specific UUID of the characteristic descriptor.
- virtual const bluetooth_utils::UUID& GetUuid() const = 0;
+ virtual const BluetoothUUID& GetUuid() const = 0;
// Returns true, if this characteristic descriptor is hosted locally. If
// false, then this instance represents a remote descriptor.
« no previous file with comments | « device/bluetooth/bluetooth_gatt_characteristic.cc ('k') | device/bluetooth/bluetooth_gatt_descriptor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698