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

Side by Side Diff: device/bluetooth/bluetooth_remote_gatt_characteristic_chromeos.h

Issue 309623002: device/bluetooth: Update GATT descriptor value D-Bus bindings. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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 | Annotate | Revision Log
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_BLUETOOTH_REMOTE_GATT_CHARACTERISTIC_CHROMEOS_H_ 5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_REMOTE_GATT_CHARACTERISTIC_CHROMEOS_H_
6 #define DEVICE_BLUETOOTH_BLUETOOTH_REMOTE_GATT_CHARACTERISTIC_CHROMEOS_H_ 6 #define DEVICE_BLUETOOTH_BLUETOOTH_REMOTE_GATT_CHARACTERISTIC_CHROMEOS_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 BluetoothRemoteGattCharacteristicChromeOS( 66 BluetoothRemoteGattCharacteristicChromeOS(
67 BluetoothRemoteGattServiceChromeOS* service, 67 BluetoothRemoteGattServiceChromeOS* service,
68 const dbus::ObjectPath& object_path); 68 const dbus::ObjectPath& object_path);
69 virtual ~BluetoothRemoteGattCharacteristicChromeOS(); 69 virtual ~BluetoothRemoteGattCharacteristicChromeOS();
70 70
71 // BluetoothGattDescriptorClient::Observer overrides. 71 // BluetoothGattDescriptorClient::Observer overrides.
72 virtual void GattDescriptorAdded( 72 virtual void GattDescriptorAdded(
73 const dbus::ObjectPath& object_path) OVERRIDE; 73 const dbus::ObjectPath& object_path) OVERRIDE;
74 virtual void GattDescriptorRemoved( 74 virtual void GattDescriptorRemoved(
75 const dbus::ObjectPath& object_path) OVERRIDE; 75 const dbus::ObjectPath& object_path) OVERRIDE;
76 virtual void GattDescriptorPropertyChanged(
77 const dbus::ObjectPath& object_path,
78 const std::string& property_name) OVERRIDE;
79 76
80 // Called by dbus:: on completion of the request to get the characteristic 77 // Called by dbus:: on completion of the request to get the characteristic
81 // value. 78 // value.
82 void OnGetValue(const ValueCallback& callback, 79 void OnGetValue(const ValueCallback& callback,
83 const ErrorCallback& error_callback, 80 const ErrorCallback& error_callback,
84 bool success); 81 bool success);
85 82
86 // Called by dbus:: on completion of the request to set the characteristic 83 // Called by dbus:: on completion of the request to set the characteristic
87 // value. 84 // value.
88 void OnSetValue(const base::Closure& callback, 85 void OnSetValue(const base::Closure& callback,
(...skipping 18 matching lines...) Expand all
107 // invalidate its weak pointers before any other members are destroyed. 104 // invalidate its weak pointers before any other members are destroyed.
108 base::WeakPtrFactory<BluetoothRemoteGattCharacteristicChromeOS> 105 base::WeakPtrFactory<BluetoothRemoteGattCharacteristicChromeOS>
109 weak_ptr_factory_; 106 weak_ptr_factory_;
110 107
111 DISALLOW_COPY_AND_ASSIGN(BluetoothRemoteGattCharacteristicChromeOS); 108 DISALLOW_COPY_AND_ASSIGN(BluetoothRemoteGattCharacteristicChromeOS);
112 }; 109 };
113 110
114 } // namespace chromeos 111 } // namespace chromeos
115 112
116 #endif // DEVICE_BLUETOOTH_BLUETOOTH_REMOTE_GATT_CHARACTERISTIC_CHROMEOS_H_ 113 #endif // DEVICE_BLUETOOTH_BLUETOOTH_REMOTE_GATT_CHARACTERISTIC_CHROMEOS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698