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

Unified Diff: device/bluetooth/bluetooth_service_record_win.h

Issue 395633003: Enumerate Bluetooth LE services and expose them to chrome.bluetooth API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix x64 build. Created 6 years, 5 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_low_energy_win.cc ('k') | device/bluetooth/bluetooth_service_record_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/bluetooth/bluetooth_service_record_win.h
diff --git a/device/bluetooth/bluetooth_service_record_win.h b/device/bluetooth/bluetooth_service_record_win.h
index 5f2b8f87f7104a8d6fef41359d3372308b788111..ea1ea7921f11d2dcde317a06a3f25dfda3423056 100644
--- a/device/bluetooth/bluetooth_service_record_win.h
+++ b/device/bluetooth/bluetooth_service_record_win.h
@@ -6,6 +6,7 @@
#define DEVICE_BLUETOOTH_BLUETOOTH_SERVICE_RECORD_WIN_H_
#include <string>
+#include <vector>
#include "base/basictypes.h"
#include "device/bluetooth/bluetooth_init_win.h"
@@ -15,19 +16,20 @@ 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<uint8>& sdp_bytes,
+ const BluetoothUUID& gatt_uuid);
- BTH_ADDR bth_addr() const { return bth_addr_; }
+ // 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& device_address() const { return device_address_; }
// 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_; }
@@ -40,8 +42,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_;
« no previous file with comments | « device/bluetooth/bluetooth_low_energy_win.cc ('k') | device/bluetooth/bluetooth_service_record_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698