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_CHILD_BLUETOOTH_WEB_BLUETOOTH_IMPL_H_ | 5 #ifndef CONTENT_CHILD_BLUETOOTH_WEB_BLUETOOTH_IMPL_H_ |
6 #define CONTENT_CHILD_BLUETOOTH_WEB_BLUETOOTH_IMPL_H_ | 6 #define CONTENT_CHILD_BLUETOOTH_WEB_BLUETOOTH_IMPL_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 14 matching lines...) Expand all Loading... |
25 explicit WebBluetoothImpl(ThreadSafeSender* thread_safe_sender); | 25 explicit WebBluetoothImpl(ThreadSafeSender* thread_safe_sender); |
26 ~WebBluetoothImpl(); | 26 ~WebBluetoothImpl(); |
27 | 27 |
28 // blink::WebBluetooth interface: | 28 // blink::WebBluetooth interface: |
29 void requestDevice( | 29 void requestDevice( |
30 blink::WebBluetoothRequestDeviceCallbacks* callbacks) override; | 30 blink::WebBluetoothRequestDeviceCallbacks* callbacks) override; |
31 | 31 |
32 void connectGATT(const blink::WebString& device_instance_id, | 32 void connectGATT(const blink::WebString& device_instance_id, |
33 blink::WebBluetoothConnectGATTCallbacks* callbacks) override; | 33 blink::WebBluetoothConnectGATTCallbacks* callbacks) override; |
34 | 34 |
35 // Testing interface: | |
36 void SetBluetoothMockDataSetForTesting(const std::string& name); | |
37 | |
38 private: | 35 private: |
39 BluetoothDispatcher* GetDispatcher(); | 36 BluetoothDispatcher* GetDispatcher(); |
40 | 37 |
41 scoped_refptr<ThreadSafeSender> thread_safe_sender_; | 38 scoped_refptr<ThreadSafeSender> thread_safe_sender_; |
42 | 39 |
43 DISALLOW_COPY_AND_ASSIGN(WebBluetoothImpl); | 40 DISALLOW_COPY_AND_ASSIGN(WebBluetoothImpl); |
44 }; | 41 }; |
45 | 42 |
46 } // namespace content | 43 } // namespace content |
47 | 44 |
48 #endif // CONTENT_CHILD_BLUETOOTH_WEB_BLUETOOTH_IMPL_H_ | 45 #endif // CONTENT_CHILD_BLUETOOTH_WEB_BLUETOOTH_IMPL_H_ |
OLD | NEW |