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 DEVICE_BLUETOOTH_BLUETOOTH_REMOTE_GATT_SERVICE_CHROMEOS_H_ | 5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_REMOTE_GATT_SERVICE_CHROMEOS_H_ |
6 #define DEVICE_BLUETOOTH_BLUETOOTH_REMOTE_GATT_SERVICE_CHROMEOS_H_ | 6 #define DEVICE_BLUETOOTH_BLUETOOTH_REMOTE_GATT_SERVICE_CHROMEOS_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 15 matching lines...) Expand all Loading... |
26 } // namespace device | 26 } // namespace device |
27 | 27 |
28 namespace chromeos { | 28 namespace chromeos { |
29 | 29 |
30 class BluetoothAdapterChromeOS; | 30 class BluetoothAdapterChromeOS; |
31 class BluetoothDeviceChromeOS; | 31 class BluetoothDeviceChromeOS; |
32 class BluetoothRemoteGattCharacteristicChromeOS; | 32 class BluetoothRemoteGattCharacteristicChromeOS; |
33 class BluetoothRemoteGattDescriptorChromeOS; | 33 class BluetoothRemoteGattDescriptorChromeOS; |
34 | 34 |
35 // The BluetoothRemoteGattServiceChromeOS class implements BluetootGattService | 35 // The BluetoothRemoteGattServiceChromeOS class implements BluetootGattService |
36 // for remote GATT services on the the Chrome OS platform. | 36 // for remote GATT services on the Chrome OS platform. |
37 class BluetoothRemoteGattServiceChromeOS | 37 class BluetoothRemoteGattServiceChromeOS |
38 : public device::BluetoothGattService, | 38 : public device::BluetoothGattService, |
39 public BluetoothGattServiceClient::Observer, | 39 public BluetoothGattServiceClient::Observer, |
40 public BluetoothGattCharacteristicClient::Observer { | 40 public BluetoothGattCharacteristicClient::Observer { |
41 public: | 41 public: |
42 // device::BluetoothGattService overrides. | 42 // device::BluetoothGattService overrides. |
43 virtual std::string GetIdentifier() const override; | 43 virtual std::string GetIdentifier() const override; |
44 virtual device::BluetoothUUID GetUUID() const override; | 44 virtual device::BluetoothUUID GetUUID() const override; |
45 virtual bool IsLocal() const override; | 45 virtual bool IsLocal() const override; |
46 virtual bool IsPrimary() const override; | 46 virtual bool IsPrimary() const override; |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
150 // Note: This should remain the last member so it'll be destroyed and | 150 // Note: This should remain the last member so it'll be destroyed and |
151 // invalidate its weak pointers before any other members are destroyed. | 151 // invalidate its weak pointers before any other members are destroyed. |
152 base::WeakPtrFactory<BluetoothRemoteGattServiceChromeOS> weak_ptr_factory_; | 152 base::WeakPtrFactory<BluetoothRemoteGattServiceChromeOS> weak_ptr_factory_; |
153 | 153 |
154 DISALLOW_COPY_AND_ASSIGN(BluetoothRemoteGattServiceChromeOS); | 154 DISALLOW_COPY_AND_ASSIGN(BluetoothRemoteGattServiceChromeOS); |
155 }; | 155 }; |
156 | 156 |
157 } // namespace chromeos | 157 } // namespace chromeos |
158 | 158 |
159 #endif // DEVICE_BLUETOOTH_BLUETOOTH_REMOTE_GATT_SERVICE_CHROMEOS_H_ | 159 #endif // DEVICE_BLUETOOTH_BLUETOOTH_REMOTE_GATT_SERVICE_CHROMEOS_H_ |
OLD | NEW |