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

Side by Side Diff: device/bluetooth/dbus/bluetooth_gatt_characteristic_client.h

Issue 1347193004: Refactor DBusThreadManager to split away BT clients. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROMEOS_DBUS_BLUETOOTH_GATT_CHARACTERISTIC_CLIENT_H_ 5 #ifndef DEVICE_BLUETOOTH_DBUS_BLUETOOTH_GATT_CHARACTERISTIC_CLIENT_H_
6 #define CHROMEOS_DBUS_BLUETOOTH_GATT_CHARACTERISTIC_CLIENT_H_ 6 #define DEVICE_BLUETOOTH_DBUS_BLUETOOTH_GATT_CHARACTERISTIC_CLIENT_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/callback.h" 12 #include "base/callback.h"
13 #include "chromeos/chromeos_export.h"
14 #include "chromeos/dbus/dbus_client.h"
15 #include "dbus/object_path.h" 13 #include "dbus/object_path.h"
16 #include "dbus/property.h" 14 #include "dbus/property.h"
15 #include "device/bluetooth/bluetooth_export.h"
16 #include "device/bluetooth/dbus/bluez_dbus_client.h"
17 17
18 namespace chromeos { 18 namespace bluez {
19 19
20 // BluetoothGattCharacteristicClient is used to communicate with remote GATT 20 // BluetoothGattCharacteristicClient is used to communicate with remote GATT
21 // characteristic objects exposed by the Bluetooth daemon. 21 // characteristic objects exposed by the Bluetooth daemon.
22 class CHROMEOS_EXPORT BluetoothGattCharacteristicClient : public DBusClient { 22 class DEVICE_BLUETOOTH_EXPORT BluetoothGattCharacteristicClient
23 : public BluezDBusClient {
23 public: 24 public:
24 // Structure of properties associated with GATT characteristics. 25 // Structure of properties associated with GATT characteristics.
25 struct Properties : public dbus::PropertySet { 26 struct Properties : public dbus::PropertySet {
26 // The 128-bit characteristic UUID. [read-only] 27 // The 128-bit characteristic UUID. [read-only]
27 dbus::Property<std::string> uuid; 28 dbus::Property<std::string> uuid;
28 29
29 // Object path of the GATT service the characteristic belongs to. 30 // Object path of the GATT service the characteristic belongs to.
30 // [read-only] 31 // [read-only]
31 dbus::Property<dbus::ObjectPath> service; 32 dbus::Property<dbus::ObjectPath> service;
32 33
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 static const char kNoResponseError[]; 132 static const char kNoResponseError[];
132 static const char kUnknownCharacteristicError[]; 133 static const char kUnknownCharacteristicError[];
133 134
134 protected: 135 protected:
135 BluetoothGattCharacteristicClient(); 136 BluetoothGattCharacteristicClient();
136 137
137 private: 138 private:
138 DISALLOW_COPY_AND_ASSIGN(BluetoothGattCharacteristicClient); 139 DISALLOW_COPY_AND_ASSIGN(BluetoothGattCharacteristicClient);
139 }; 140 };
140 141
141 } // namespace chromeos 142 } // namespace bluez
142 143
143 #endif // CHROMEOS_DBUS_BLUETOOTH_GATT_CHARACTERISTIC_CLIENT_H_ 144 #endif // DEVICE_BLUETOOTH_DBUS_BLUETOOTH_GATT_CHARACTERISTIC_CLIENT_H_
OLDNEW
« no previous file with comments | « device/bluetooth/dbus/bluetooth_device_client.cc ('k') | device/bluetooth/dbus/bluetooth_gatt_characteristic_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698