| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_BLUEZ_BLUETOOTH_LOCAL_GATT_SERVICE_BLUEZ_H_ | 5 #ifndef DEVICE_BLUETOOTH_BLUEZ_BLUETOOTH_LOCAL_GATT_SERVICE_BLUEZ_H_ |
| 6 #define DEVICE_BLUETOOTH_BLUEZ_BLUETOOTH_LOCAL_GATT_SERVICE_BLUEZ_H_ | 6 #define DEVICE_BLUETOOTH_BLUEZ_BLUETOOTH_LOCAL_GATT_SERVICE_BLUEZ_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 const ErrorCallback& error_callback) override; | 53 const ErrorCallback& error_callback) override; |
| 54 bool IsRegistered() override; | 54 bool IsRegistered() override; |
| 55 void Delete() override; | 55 void Delete() override; |
| 56 device::BluetoothLocalGattCharacteristic* GetCharacteristic( | 56 device::BluetoothLocalGattCharacteristic* GetCharacteristic( |
| 57 const std::string& identifier) override; | 57 const std::string& identifier) override; |
| 58 | 58 |
| 59 const std::map<dbus::ObjectPath, | 59 const std::map<dbus::ObjectPath, |
| 60 std::unique_ptr<BluetoothLocalGattCharacteristicBlueZ>>& | 60 std::unique_ptr<BluetoothLocalGattCharacteristicBlueZ>>& |
| 61 GetCharacteristics() const; | 61 GetCharacteristics() const; |
| 62 | 62 |
| 63 Delegate* GetDelegate() { return delegate_; } | 63 Delegate* GetDelegate() const { return delegate_; } |
| 64 | 64 |
| 65 static dbus::ObjectPath AddGuidToObjectPath(const std::string& path); | 65 static dbus::ObjectPath AddGuidToObjectPath(const std::string& path); |
| 66 | 66 |
| 67 private: | 67 private: |
| 68 friend class BluetoothLocalGattCharacteristicBlueZ; | 68 friend class BluetoothLocalGattCharacteristicBlueZ; |
| 69 // Needs access to weak_ptr_factory_. | 69 // Needs access to weak_ptr_factory_. |
| 70 friend class device::BluetoothLocalGattService; | 70 friend class device::BluetoothLocalGattService; |
| 71 | 71 |
| 72 // Called by dbus:: on unsuccessful completion of a request to register a | 72 // Called by dbus:: on unsuccessful completion of a request to register a |
| 73 // local service. | 73 // local service. |
| (...skipping 22 matching lines...) Expand all Loading... |
| 96 // Note: This should remain the last member so it'll be destroyed and | 96 // Note: This should remain the last member so it'll be destroyed and |
| 97 // invalidate its weak pointers before any other members are destroyed. | 97 // invalidate its weak pointers before any other members are destroyed. |
| 98 base::WeakPtrFactory<BluetoothLocalGattServiceBlueZ> weak_ptr_factory_; | 98 base::WeakPtrFactory<BluetoothLocalGattServiceBlueZ> weak_ptr_factory_; |
| 99 | 99 |
| 100 DISALLOW_COPY_AND_ASSIGN(BluetoothLocalGattServiceBlueZ); | 100 DISALLOW_COPY_AND_ASSIGN(BluetoothLocalGattServiceBlueZ); |
| 101 }; | 101 }; |
| 102 | 102 |
| 103 } // namespace bluez | 103 } // namespace bluez |
| 104 | 104 |
| 105 #endif // DEVICE_BLUETOOTH_BLUEZ_BLUETOOTH_LOCAL_GATT_SERVICE_BLUEZ_H_ | 105 #endif // DEVICE_BLUETOOTH_BLUEZ_BLUETOOTH_LOCAL_GATT_SERVICE_BLUEZ_H_ |
| OLD | NEW |