X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fdevice%2Fbluetooth%2Fbluetooth_service_record_win.h;h=9612c9dd17e36c2d71be530130e97618dac340d6;hb=4a1a0bdd01eef90b0826a0e761d3379d3715c10f;hp=5f2b8f87f7104a8d6fef41359d3372308b788111;hpb=b1be5ca53587d23e7aeb77b26861fdc0a181ffd8;p=platform%2Fframework%2Fweb%2Fcrosswalk.git diff --git a/src/device/bluetooth/bluetooth_service_record_win.h b/src/device/bluetooth/bluetooth_service_record_win.h index 5f2b8f8..9612c9d 100644 --- a/src/device/bluetooth/bluetooth_service_record_win.h +++ b/src/device/bluetooth/bluetooth_service_record_win.h @@ -6,6 +6,7 @@ #define DEVICE_BLUETOOTH_BLUETOOTH_SERVICE_RECORD_WIN_H_ #include +#include #include "base/basictypes.h" #include "device/bluetooth/bluetooth_init_win.h" @@ -15,18 +16,21 @@ namespace device { class BluetoothServiceRecordWin { public: - BluetoothServiceRecordWin(const std::string& name, - const std::string& address, - uint64 blob_size, - uint8* blob_data); + BluetoothServiceRecordWin(const std::string& device_address, + const std::string& name, + const std::vector& sdp_bytes, + const BluetoothUUID& gatt_uuid); - BTH_ADDR bth_addr() const { return bth_addr_; } + bool IsEqual(const BluetoothServiceRecordWin& other); - // The human-readable name of this service. - const std::string& name() const { return name_; } + // The BTH_ADDR address of the BluetoothDevice providing this service. + BTH_ADDR device_bth_addr() const { return device_bth_addr_; } // The address of the BluetoothDevice providing this service. - const std::string& address() const { return address_; } + const std::string& device_address() const { return device_address_; } + + // The human-readable name of this service. + const std::string& name() const { return name_; } // The UUID of the service. This field may be empty if no UUID was // specified in the service record. @@ -40,8 +44,8 @@ class BluetoothServiceRecordWin { uint8 rfcomm_channel() const { return rfcomm_channel_; } private: - BTH_ADDR bth_addr_; - std::string address_; + BTH_ADDR device_bth_addr_; + std::string device_address_; std::string name_; BluetoothUUID uuid_;