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

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

Issue 1920693002: Complete //device/bt implementation for hosting local GATT attributes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 DEVICE_BLUETOOTH_DBUS_BLUETOOTH_GATT_MANAGER_CLIENT_H_ 5 #ifndef DEVICE_BLUETOOTH_DBUS_BLUETOOTH_GATT_MANAGER_CLIENT_H_
6 #define DEVICE_BLUETOOTH_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"
(...skipping 27 matching lines...) Expand all
38 // D-Bus object path |service_path| with the remote GATT manager. The local 38 // D-Bus object path |service_path| with the remote GATT manager. The local
39 // service must implement the GattService1 interface. Characteristic objects 39 // service must implement the GattService1 interface. Characteristic objects
40 // must be hierarchical to their service and must use the interface 40 // must be hierarchical to their service and must use the interface
41 // GattCharacteristic1. Similarly, characteristic descriptor objects must 41 // GattCharacteristic1. Similarly, characteristic descriptor objects must
42 // implement the GattDescriptor1 interface and must be hierarchical to their 42 // implement the GattDescriptor1 interface and must be hierarchical to their
43 // characteristic. In a successful invocation of RegisterService, the 43 // characteristic. In a successful invocation of RegisterService, the
44 // Bluetooth daemon will discover all objects in the registered hierarchy by 44 // Bluetooth daemon will discover all objects in the registered hierarchy by
45 // using D-Bus Object Manager. Hence, the object paths and the interfaces in 45 // using D-Bus Object Manager. Hence, the object paths and the interfaces in
46 // the registered hierarchy must comply with the BlueZ GATT D-Bus 46 // the registered hierarchy must comply with the BlueZ GATT D-Bus
47 // specification. 47 // specification.
48 virtual void RegisterService(const dbus::ObjectPath& service_path, 48 virtual void RegisterApplication(const dbus::ObjectPath& application_path,
49 const Options& options, 49 const Options& options,
50 const base::Closure& callback, 50 const base::Closure& callback,
51 const ErrorCallback& error_callback) = 0; 51 const ErrorCallback& error_callback) = 0;
52 52
53 // Unregisters the GATT service with the D-Bus object path |service_path| from 53 // Unregisters the GATT service with the D-Bus object path |service_path| from
54 // the remote GATT manager. 54 // the remote GATT manager.
55 virtual void UnregisterService(const dbus::ObjectPath& service_path, 55 virtual void UnregisterApplication(const dbus::ObjectPath& application_path,
56 const base::Closure& callback, 56 const base::Closure& callback,
57 const ErrorCallback& error_callback) = 0; 57 const ErrorCallback& error_callback) = 0;
58 58
59 // Creates the instance. 59 // Creates the instance.
60 static BluetoothGattManagerClient* Create(); 60 static BluetoothGattManagerClient* Create();
61 61
62 // Constants used to indicate exceptional error conditions. 62 // Constants used to indicate exceptional error conditions.
63 static const char kNoResponseError[]; 63 static const char kNoResponseError[];
64 64
65 protected: 65 protected:
66 BluetoothGattManagerClient(); 66 BluetoothGattManagerClient();
67 67
68 private: 68 private:
69 DISALLOW_COPY_AND_ASSIGN(BluetoothGattManagerClient); 69 DISALLOW_COPY_AND_ASSIGN(BluetoothGattManagerClient);
70 }; 70 };
71 71
72 } // namespace bluez 72 } // namespace bluez
73 73
74 #endif // DEVICE_BLUETOOTH_DBUS_BLUETOOTH_GATT_MANAGER_CLIENT_H_ 74 #endif // DEVICE_BLUETOOTH_DBUS_BLUETOOTH_GATT_MANAGER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698