Chromium Code Reviews| Index: device/bluetooth/bluetooth_adapter.h |
| diff --git a/device/bluetooth/bluetooth_adapter.h b/device/bluetooth/bluetooth_adapter.h |
| index d764ae97ea6e9e7291c3798e07ffc2bc691529a3..0a0e14905dd19e6b95f7c6a0c060d91b4ad24425 100644 |
| --- a/device/bluetooth/bluetooth_adapter.h |
| +++ b/device/bluetooth/bluetooth_adapter.h |
| @@ -14,12 +14,14 @@ |
| #include "base/callback.h" |
| #include "base/memory/ref_counted.h" |
| #include "base/memory/weak_ptr.h" |
| +#include "device/bluetooth/bluetooth_advertisement.h" |
| #include "device/bluetooth/bluetooth_audio_sink.h" |
| #include "device/bluetooth/bluetooth_device.h" |
| #include "device/bluetooth/bluetooth_export.h" |
| namespace device { |
| +class BluetoothAdvertisement; |
| class BluetoothDiscoveryFilter; |
| class BluetoothDiscoverySession; |
| class BluetoothGattCharacteristic; |
| @@ -370,6 +372,17 @@ class DEVICE_BLUETOOTH_EXPORT BluetoothAdapter |
| const AcquiredCallback& callback, |
| const BluetoothAudioSink::ErrorCallback& error_callback) = 0; |
| + // Creates and registers an advertisement for broadcast over the LE channel. |
| + // The created advertisement will be returned via the success callback. |
| + typedef base::Callback<void(scoped_refptr<BluetoothAdvertisement>)> |
|
scheib
2015/04/16 22:11:32
http://google-styleguide.googlecode.com/svn/trunk/
rkc
2015/04/17 19:57:08
Going with consistency here. This positioning of t
scheib
2015/04/21 23:13:25
https://codereview.chromium.org/1100483005 is land
rkc
2015/04/23 19:32:16
Done.
|
| + CreateAdvertisementCallback; |
| + typedef base::Callback<void(BluetoothAdvertisement::ErrorCode)> |
| + CreateAdvertisementErrorCallback; |
| + virtual void RegisterAdvertisement( |
| + scoped_ptr<BluetoothAdvertisement::Data> advertisement_data, |
| + const CreateAdvertisementCallback& callback, |
| + const CreateAdvertisementErrorCallback& error_callback) = 0; |
| + |
| protected: |
| friend class base::RefCountedThreadSafe<BluetoothAdapter, |
| BluetoothAdapterDeleter>; |