summaryrefslogtreecommitdiffstats
path: root/chromium/device/bluetooth/bluetooth_service_record_win.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/device/bluetooth/bluetooth_service_record_win.h')
-rw-r--r--chromium/device/bluetooth/bluetooth_service_record_win.h31
1 files changed, 26 insertions, 5 deletions
diff --git a/chromium/device/bluetooth/bluetooth_service_record_win.h b/chromium/device/bluetooth/bluetooth_service_record_win.h
index b9f03312ba8..5f2b8f87f71 100644
--- a/chromium/device/bluetooth/bluetooth_service_record_win.h
+++ b/chromium/device/bluetooth/bluetooth_service_record_win.h
@@ -9,23 +9,44 @@
#include "base/basictypes.h"
#include "device/bluetooth/bluetooth_init_win.h"
-#include "device/bluetooth/bluetooth_service_record.h"
+#include "device/bluetooth/bluetooth_uuid.h"
namespace device {
-class BluetoothServiceRecordWin : public BluetoothServiceRecord {
+class BluetoothServiceRecordWin {
public:
BluetoothServiceRecordWin(const std::string& name,
const std::string& address,
uint64 blob_size,
uint8* blob_data);
- BTH_ADDR bth_addr() const {
- return bth_addr_;
- }
+ BTH_ADDR bth_addr() const { return bth_addr_; }
+
+ // The human-readable name of this service.
+ const std::string& name() const { return name_; }
+
+ // The address of the BluetoothDevice providing this service.
+ const std::string& address() const { return address_; }
+
+ // The UUID of the service. This field may be empty if no UUID was
+ // specified in the service record.
+ const BluetoothUUID& uuid() const { return uuid_; }
+
+ // Indicates if this service supports RFCOMM communication.
+ bool SupportsRfcomm() const { return supports_rfcomm_; }
+
+ // The RFCOMM channel to use, if this service supports RFCOMM communication.
+ // The return value is undefined if SupportsRfcomm() returns false.
+ uint8 rfcomm_channel() const { return rfcomm_channel_; }
private:
BTH_ADDR bth_addr_;
+ std::string address_;
+ std::string name_;
+ BluetoothUUID uuid_;
+
+ bool supports_rfcomm_;
+ uint8 rfcomm_channel_;
DISALLOW_COPY_AND_ASSIGN(BluetoothServiceRecordWin);
};