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 CONTENT_BROWSER_BLUETOOTH_WEB_BLUETOOTH_SERVICE_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_BLUETOOTH_WEB_BLUETOOTH_SERVICE_IMPL_H_ |
6 #define CONTENT_BROWSER_BLUETOOTH_WEB_BLUETOOTH_SERVICE_IMPL_H_ | 6 #define CONTENT_BROWSER_BLUETOOTH_WEB_BLUETOOTH_SERVICE_IMPL_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 PrimaryServicesRequestCallback; | 71 PrimaryServicesRequestCallback; |
72 | 72 |
73 // WebContentsObserver: | 73 // WebContentsObserver: |
74 // These functions should always check that the affected RenderFrameHost | 74 // These functions should always check that the affected RenderFrameHost |
75 // is this->render_frame_host_ and not some other frame in the same tab. | 75 // is this->render_frame_host_ and not some other frame in the same tab. |
76 void DidFinishNavigation(NavigationHandle* navigation_handle) override; | 76 void DidFinishNavigation(NavigationHandle* navigation_handle) override; |
77 | 77 |
78 // BluetoothAdapter::Observer: | 78 // BluetoothAdapter::Observer: |
79 void AdapterPoweredChanged(device::BluetoothAdapter* adapter, | 79 void AdapterPoweredChanged(device::BluetoothAdapter* adapter, |
80 bool powered) override; | 80 bool powered) override; |
| 81 void AdapterDiscoveringChanged(device::BluetoothAdapter* adapter, |
| 82 bool discovering) override; |
81 void DeviceAdded(device::BluetoothAdapter* adapter, | 83 void DeviceAdded(device::BluetoothAdapter* adapter, |
82 device::BluetoothDevice* device) override; | 84 device::BluetoothDevice* device) override; |
83 void DeviceChanged(device::BluetoothAdapter* adapter, | 85 void DeviceChanged(device::BluetoothAdapter* adapter, |
84 device::BluetoothDevice* device) override; | 86 device::BluetoothDevice* device) override; |
85 void GattServicesDiscovered(device::BluetoothAdapter* adapter, | 87 void GattServicesDiscovered(device::BluetoothAdapter* adapter, |
86 device::BluetoothDevice* device) override; | 88 device::BluetoothDevice* device) override; |
87 void GattCharacteristicValueChanged( | 89 void GattCharacteristicValueChanged( |
88 device::BluetoothAdapter* adapter, | 90 device::BluetoothAdapter* adapter, |
89 device::BluetoothRemoteGattCharacteristic* characteristic, | 91 device::BluetoothRemoteGattCharacteristic* characteristic, |
90 const std::vector<uint8_t>& value) override; | 92 const std::vector<uint8_t>& value) override; |
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
253 mojo::Binding<blink::mojom::WebBluetoothService> binding_; | 255 mojo::Binding<blink::mojom::WebBluetoothService> binding_; |
254 | 256 |
255 base::WeakPtrFactory<WebBluetoothServiceImpl> weak_ptr_factory_; | 257 base::WeakPtrFactory<WebBluetoothServiceImpl> weak_ptr_factory_; |
256 | 258 |
257 DISALLOW_COPY_AND_ASSIGN(WebBluetoothServiceImpl); | 259 DISALLOW_COPY_AND_ASSIGN(WebBluetoothServiceImpl); |
258 }; | 260 }; |
259 | 261 |
260 } // namespace content | 262 } // namespace content |
261 | 263 |
262 #endif // CONTENT_BROWSER_BLUETOOTH_WEB_BLUETOOTH_SERVICE_IMPL_H_ | 264 #endif // CONTENT_BROWSER_BLUETOOTH_WEB_BLUETOOTH_SERVICE_IMPL_H_ |
OLD | NEW |