| OLD | NEW |
| 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_FAKE_BLUETOOTH_GATT_SERVICE_CLIENT_H_ | 5 #ifndef CHROMEOS_DBUS_FAKE_BLUETOOTH_GATT_SERVICE_CLIENT_H_ |
| 6 #define CHROMEOS_DBUS_FAKE_BLUETOOTH_GATT_SERVICE_CLIENT_H_ | 6 #define CHROMEOS_DBUS_FAKE_BLUETOOTH_GATT_SERVICE_CLIENT_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 // retrieval of characteristics. If the Heart Rate Service is hidden at the | 83 // retrieval of characteristics. If the Heart Rate Service is hidden at the |
| 84 // time this method is called, then it does nothing. | 84 // time this method is called, then it does nothing. |
| 85 void ExposeHeartRateCharacteristics(); | 85 void ExposeHeartRateCharacteristics(); |
| 86 | 86 |
| 87 // Static properties we return. As long as a service is exposed, this will be | 87 // Static properties we return. As long as a service is exposed, this will be |
| 88 // non-null. Otherwise it will be null. | 88 // non-null. Otherwise it will be null. |
| 89 scoped_ptr<Properties> heart_rate_service_properties_; | 89 scoped_ptr<Properties> heart_rate_service_properties_; |
| 90 std::string heart_rate_service_path_; | 90 std::string heart_rate_service_path_; |
| 91 | 91 |
| 92 // List of observers interested in event notifications from us. | 92 // List of observers interested in event notifications from us. |
| 93 ObserverList<Observer> observers_; | 93 base::ObserverList<Observer> observers_; |
| 94 | 94 |
| 95 // Weak pointer factory for generating 'this' pointers that might live longer | 95 // Weak pointer factory for generating 'this' pointers that might live longer |
| 96 // than we do. | 96 // than we do. |
| 97 // Note: This should remain the last member so it'll be destroyed and | 97 // Note: This should remain the last member so it'll be destroyed and |
| 98 // invalidate its weak pointers before any other members are destroyed. | 98 // invalidate its weak pointers before any other members are destroyed. |
| 99 base::WeakPtrFactory<FakeBluetoothGattServiceClient> weak_ptr_factory_; | 99 base::WeakPtrFactory<FakeBluetoothGattServiceClient> weak_ptr_factory_; |
| 100 | 100 |
| 101 DISALLOW_COPY_AND_ASSIGN(FakeBluetoothGattServiceClient); | 101 DISALLOW_COPY_AND_ASSIGN(FakeBluetoothGattServiceClient); |
| 102 }; | 102 }; |
| 103 | 103 |
| 104 } // namespace chromeos | 104 } // namespace chromeos |
| 105 | 105 |
| 106 #endif // CHROMEOS_DBUS_FAKE_BLUETOOTH_GATT_SERVICE_CLIENT_H_ | 106 #endif // CHROMEOS_DBUS_FAKE_BLUETOOTH_GATT_SERVICE_CLIENT_H_ |
| OLD | NEW |