| 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 11 matching lines...) Expand all Loading... |
| 22 class CONTENT_EXPORT WebBluetoothImpl | 22 class CONTENT_EXPORT WebBluetoothImpl |
| 23 : NON_EXPORTED_BASE(public blink::WebBluetooth) { | 23 : NON_EXPORTED_BASE(public blink::WebBluetooth) { |
| 24 public: | 24 public: |
| 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, |
| 33 blink::WebBluetoothConnectGATTCallbacks* callbacks) override; |
| 34 |
| 32 // Testing interface: | 35 // Testing interface: |
| 33 void SetBluetoothMockDataSetForTesting(const std::string& name); | 36 void SetBluetoothMockDataSetForTesting(const std::string& name); |
| 34 | 37 |
| 35 private: | 38 private: |
| 36 BluetoothDispatcher* GetDispatcher(); | 39 BluetoothDispatcher* GetDispatcher(); |
| 37 | 40 |
| 38 scoped_refptr<ThreadSafeSender> thread_safe_sender_; | 41 scoped_refptr<ThreadSafeSender> thread_safe_sender_; |
| 39 | 42 |
| 40 DISALLOW_COPY_AND_ASSIGN(WebBluetoothImpl); | 43 DISALLOW_COPY_AND_ASSIGN(WebBluetoothImpl); |
| 41 }; | 44 }; |
| 42 | 45 |
| 43 } // namespace content | 46 } // namespace content |
| 44 | 47 |
| 45 #endif // CONTENT_CHILD_BLUETOOTH_WEB_BLUETOOTH_IMPL_H_ | 48 #endif // CONTENT_CHILD_BLUETOOTH_WEB_BLUETOOTH_IMPL_H_ |
| OLD | NEW |