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

Side by Side Diff: device/bluetooth/dbus/bluetooth_gatt_descriptor_service_provider.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, 3 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_DESCRIPTOR_SERVICE_PROVIDER_H_ 5 #ifndef DEVICE_BLUETOOTH_DBUS_BLUETOOTH_GATT_DESCRIPTOR_SERVICE_PROVIDER_H_
6 #define CHROMEOS_DBUS_BLUETOOTH_GATT_DESCRIPTOR_SERVICE_PROVIDER_H_ 6 #define DEVICE_BLUETOOTH_DBUS_BLUETOOTH_GATT_DESCRIPTOR_SERVICE_PROVIDER_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" 13 #include "chromeos/chromeos_export.h"
14 #include "dbus/bus.h" 14 #include "dbus/bus.h"
15 #include "dbus/object_path.h" 15 #include "dbus/object_path.h"
16 16
17 namespace chromeos { 17 namespace bluez {
18 18
19 // BluetoothGattDescriptorServiceProvider is used to provide a D-Bus object that 19 // BluetoothGattDescriptorServiceProvider is used to provide a D-Bus object that
20 // represents a local GATT characteristic descriptor that the Bluetooth daemon 20 // represents a local GATT characteristic descriptor that the Bluetooth daemon
21 // can communicate with. 21 // can communicate with.
22 // 22 //
23 // Instantiate with a chosen D-Bus object path, delegate, and other fields. 23 // Instantiate with a chosen D-Bus object path, delegate, and other fields.
24 // The Bluetooth daemon communicates with a GATT descriptor using the 24 // The Bluetooth daemon communicates with a GATT descriptor using the
25 // standard DBus.Properties interface. While most properties of the GATT 25 // standard DBus.Properties interface. While most properties of the GATT
26 // descriptor interface are read-only and don't change throughout the 26 // descriptor interface are read-only and don't change throughout the
27 // life-time of the object, the "Value" property is both writeable and its 27 // life-time of the object, the "Value" property is both writeable and its
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 const std::vector<std::string>& permissions, 97 const std::vector<std::string>& permissions,
98 const dbus::ObjectPath& characteristic_path); 98 const dbus::ObjectPath& characteristic_path);
99 99
100 protected: 100 protected:
101 BluetoothGattDescriptorServiceProvider(); 101 BluetoothGattDescriptorServiceProvider();
102 102
103 private: 103 private:
104 DISALLOW_COPY_AND_ASSIGN(BluetoothGattDescriptorServiceProvider); 104 DISALLOW_COPY_AND_ASSIGN(BluetoothGattDescriptorServiceProvider);
105 }; 105 };
106 106
107 } // namespace chromeos 107 } // namespace bluez
108 108
109 #endif // CHROMEOS_DBUS_BLUETOOTH_GATT_DESCRIPTOR_SERVICE_PROVIDER_H_ 109 #endif // DEVICE_BLUETOOTH_DBUS_BLUETOOTH_GATT_DESCRIPTOR_SERVICE_PROVIDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698