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

Side by Side Diff: device/bluetooth/dbus/bluetooth_gatt_manager_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_MANAGER_CLIENT_H_ 5 #ifndef DEVICE_BLUETOOTH_DBUS_BLUETOOTH_GATT_MANAGER_CLIENT_H_
6 #define CHROMEOS_DBUS_BLUETOOTH_GATT_MANAGER_CLIENT_H_ 6 #define DEVICE_BLUETOOTH_DBUS_BLUETOOTH_GATT_MANAGER_CLIENT_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
11 #include "chromeos/chromeos_export.h"
12 #include "chromeos/dbus/dbus_client.h"
13 #include "dbus/object_path.h" 11 #include "dbus/object_path.h"
12 #include "device/bluetooth/bluetooth_export.h"
13 #include "device/bluetooth/dbus/bluez_dbus_client.h"
14 14
15 namespace chromeos { 15 namespace bluez {
16 16
17 // BluetoothGattManagerClient is used to communicate with the GATT Service 17 // BluetoothGattManagerClient is used to communicate with the GATT Service
18 // manager object of the Bluetooth daemon. 18 // manager object of the Bluetooth daemon.
19 class CHROMEOS_EXPORT BluetoothGattManagerClient : public DBusClient { 19 class DEVICE_BLUETOOTH_EXPORT BluetoothGattManagerClient
20 : public BluezDBusClient {
20 public: 21 public:
21 // Options used to register a GATT service hierarchy. 22 // Options used to register a GATT service hierarchy.
22 struct CHROMEOS_EXPORT Options { 23 struct DEVICE_BLUETOOTH_EXPORT Options {
23 // TODO(armansito): This parameter is not yet clearly defined. Add fields 24 // TODO(armansito): This parameter is not yet clearly defined. Add fields
24 // later as we know more about how this will be used. 25 // later as we know more about how this will be used.
25 }; 26 };
26 27
27 ~BluetoothGattManagerClient() override; 28 ~BluetoothGattManagerClient() override;
28 29
29 // The ErrorCallback is used by GATT manager methods to indicate failure. It 30 // The ErrorCallback is used by GATT manager methods to indicate failure. It
30 // receives two arguments: the name of the error in |error_name| and an 31 // receives two arguments: the name of the error in |error_name| and an
31 // optional message in |error_message|. 32 // optional message in |error_message|.
32 typedef base::Callback<void(const std::string& error_name, 33 typedef base::Callback<void(const std::string& error_name,
(...skipping 27 matching lines...) Expand all
60 // Constants used to indicate exceptional error conditions. 61 // Constants used to indicate exceptional error conditions.
61 static const char kNoResponseError[]; 62 static const char kNoResponseError[];
62 63
63 protected: 64 protected:
64 BluetoothGattManagerClient(); 65 BluetoothGattManagerClient();
65 66
66 private: 67 private:
67 DISALLOW_COPY_AND_ASSIGN(BluetoothGattManagerClient); 68 DISALLOW_COPY_AND_ASSIGN(BluetoothGattManagerClient);
68 }; 69 };
69 70
70 } // namespace chromeos 71 } // namespace bluez
71 72
72 #endif // CHROMEOS_DBUS_BLUETOOTH_GATT_MANAGER_CLIENT_H_ 73 #endif // DEVICE_BLUETOOTH_DBUS_BLUETOOTH_GATT_MANAGER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698