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 CONTENT_RENDERER_BLUETOOTH_WEB_BLUETOOTH_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_BLUETOOTH_WEB_BLUETOOTH_IMPL_H_ |
6 #define CONTENT_RENDERER_BLUETOOTH_WEB_BLUETOOTH_IMPL_H_ | 6 #define CONTENT_RENDERER_BLUETOOTH_WEB_BLUETOOTH_IMPL_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 15 matching lines...) Expand all Loading... |
26 class WebBluetoothRemoteGATTCharacteristic; | 26 class WebBluetoothRemoteGATTCharacteristic; |
27 } | 27 } |
28 | 28 |
29 namespace service_manager { | 29 namespace service_manager { |
30 class InterfaceProvider; | 30 class InterfaceProvider; |
31 } | 31 } |
32 | 32 |
33 namespace content { | 33 namespace content { |
34 | 34 |
35 class BluetoothDispatcher; | 35 class BluetoothDispatcher; |
36 class ThreadSafeSender; | |
37 | 36 |
38 // Implementation of blink::WebBluetooth. Passes calls through to the thread | 37 // Implementation of blink::WebBluetooth. Passes calls through to the thread |
39 // specific BluetoothDispatcher. | 38 // specific BluetoothDispatcher. |
40 class CONTENT_EXPORT WebBluetoothImpl | 39 class CONTENT_EXPORT WebBluetoothImpl |
41 : NON_EXPORTED_BASE(public blink::mojom::WebBluetoothServiceClient), | 40 : NON_EXPORTED_BASE(public blink::mojom::WebBluetoothServiceClient), |
42 NON_EXPORTED_BASE(public blink::WebBluetooth) { | 41 NON_EXPORTED_BASE(public blink::WebBluetooth) { |
43 public: | 42 public: |
44 WebBluetoothImpl(service_manager::InterfaceProvider* remote_interfaces); | 43 WebBluetoothImpl(service_manager::InterfaceProvider* remote_interfaces); |
45 ~WebBluetoothImpl() override; | 44 ~WebBluetoothImpl() override; |
46 | 45 |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
150 | 149 |
151 // Binding associated with |web_bluetooth_service_|. | 150 // Binding associated with |web_bluetooth_service_|. |
152 mojo::AssociatedBinding<blink::mojom::WebBluetoothServiceClient> binding_; | 151 mojo::AssociatedBinding<blink::mojom::WebBluetoothServiceClient> binding_; |
153 | 152 |
154 DISALLOW_COPY_AND_ASSIGN(WebBluetoothImpl); | 153 DISALLOW_COPY_AND_ASSIGN(WebBluetoothImpl); |
155 }; | 154 }; |
156 | 155 |
157 } // namespace content | 156 } // namespace content |
158 | 157 |
159 #endif // CONTENT_RENDERER_BLUETOOTH_WEB_BLUETOOTH_IMPL_H_ | 158 #endif // CONTENT_RENDERER_BLUETOOTH_WEB_BLUETOOTH_IMPL_H_ |
OLD | NEW |