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 WebBluetooth_h | 5 // TODO(ortuno): Will be removed in https://crrev.com/1060643002 |
6 #define WebBluetooth_h | 6 #include "public/platform/modules/bluetooth/WebBluetooth.h" |
7 | |
8 #include "public/platform/WebCallbacks.h" | |
9 | |
10 namespace blink { | |
11 | |
12 struct WebBluetoothDevice; | |
13 struct WebBluetoothError; | |
14 | |
15 // Success and failure callbacks for requestDevice. | |
16 // WebBluetoothDevice and WebBluetoothError object ownership is transfered. | |
17 typedef WebCallbacks<WebBluetoothDevice, WebBluetoothError> WebBluetoothRequestD
eviceCallbacks; | |
18 | |
19 class WebBluetooth { | |
20 public: | |
21 virtual ~WebBluetooth() { } | |
22 | |
23 // Requests a bluetooth device. | |
24 // WebBluetoothRequestDeviceCallbacks ownership transferred to the client. | |
25 virtual void requestDevice(WebBluetoothRequestDeviceCallbacks*) = 0; | |
26 }; | |
27 | |
28 } // namespace blink | |
29 | |
30 #endif // WebBluetooth_h | |
OLD | NEW |