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 COMPONENTS_ARC_BLUETOOTH_ARC_BLUETOOTH_BRIDGE_H_ | 5 #ifndef COMPONENTS_ARC_BLUETOOTH_ARC_BLUETOOTH_BRIDGE_H_ |
6 #define COMPONENTS_ARC_BLUETOOTH_ARC_BLUETOOTH_BRIDGE_H_ | 6 #define COMPONENTS_ARC_BLUETOOTH_ARC_BLUETOOTH_BRIDGE_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 27 matching lines...) Expand all Loading... |
38 public device::BluetoothAdapter::Observer, | 38 public device::BluetoothAdapter::Observer, |
39 public device::BluetoothAdapterFactory::AdapterCallback, | 39 public device::BluetoothAdapterFactory::AdapterCallback, |
40 public device::BluetoothLocalGattService::Delegate, | 40 public device::BluetoothLocalGattService::Delegate, |
41 public mojom::BluetoothHost { | 41 public mojom::BluetoothHost { |
42 public: | 42 public: |
43 explicit ArcBluetoothBridge(ArcBridgeService* bridge_service); | 43 explicit ArcBluetoothBridge(ArcBridgeService* bridge_service); |
44 ~ArcBluetoothBridge() override; | 44 ~ArcBluetoothBridge() override; |
45 | 45 |
46 // Overridden from InstanceHolder<mojom::BluetoothInstance>::Observer: | 46 // Overridden from InstanceHolder<mojom::BluetoothInstance>::Observer: |
47 void OnInstanceReady() override; | 47 void OnInstanceReady() override; |
| 48 void OnInstanceClosed() override; |
48 | 49 |
49 void OnAdapterInitialized(scoped_refptr<device::BluetoothAdapter> adapter); | 50 void OnAdapterInitialized(scoped_refptr<device::BluetoothAdapter> adapter); |
50 | 51 |
51 // Overridden from device::BluetoothAdadpter::Observer | 52 // Overridden from device::BluetoothAdadpter::Observer |
52 void AdapterPoweredChanged(device::BluetoothAdapter* adapter, | 53 void AdapterPoweredChanged(device::BluetoothAdapter* adapter, |
53 bool powered) override; | 54 bool powered) override; |
54 | 55 |
55 void DeviceAdded(device::BluetoothAdapter* adapter, | 56 void DeviceAdded(device::BluetoothAdapter* adapter, |
56 device::BluetoothDevice* device) override; | 57 device::BluetoothDevice* device) override; |
57 | 58 |
(...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
382 | 383 |
383 // WeakPtrFactory to use for callbacks. | 384 // WeakPtrFactory to use for callbacks. |
384 base::WeakPtrFactory<ArcBluetoothBridge> weak_factory_; | 385 base::WeakPtrFactory<ArcBluetoothBridge> weak_factory_; |
385 | 386 |
386 DISALLOW_COPY_AND_ASSIGN(ArcBluetoothBridge); | 387 DISALLOW_COPY_AND_ASSIGN(ArcBluetoothBridge); |
387 }; | 388 }; |
388 | 389 |
389 } // namespace arc | 390 } // namespace arc |
390 | 391 |
391 #endif // COMPONENTS_ARC_BLUETOOTH_ARC_BLUETOOTH_BRIDGE_H_ | 392 #endif // COMPONENTS_ARC_BLUETOOTH_ARC_BLUETOOTH_BRIDGE_H_ |
OLD | NEW |