Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(112)

Side by Side Diff: device/bluetooth/bluetooth_adapter_mac.h

Issue 1108403002: Revert of Revert of Add CPP API for BLE advertisments. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_MAC_H_ 5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_MAC_H_
6 #define DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_MAC_H_ 6 #define DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_MAC_H_
7 7
8 #include <IOKit/IOReturn.h> 8 #include <IOKit/IOReturn.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 const CreateServiceErrorCallback& error_callback) override; 64 const CreateServiceErrorCallback& error_callback) override;
65 void CreateL2capService( 65 void CreateL2capService(
66 const BluetoothUUID& uuid, 66 const BluetoothUUID& uuid,
67 const ServiceOptions& options, 67 const ServiceOptions& options,
68 const CreateServiceCallback& callback, 68 const CreateServiceCallback& callback,
69 const CreateServiceErrorCallback& error_callback) override; 69 const CreateServiceErrorCallback& error_callback) override;
70 void RegisterAudioSink( 70 void RegisterAudioSink(
71 const BluetoothAudioSink::Options& options, 71 const BluetoothAudioSink::Options& options,
72 const AcquiredCallback& callback, 72 const AcquiredCallback& callback,
73 const BluetoothAudioSink::ErrorCallback& error_callback) override; 73 const BluetoothAudioSink::ErrorCallback& error_callback) override;
74 void RegisterAdvertisement(
75 scoped_ptr<BluetoothAdvertisement::Data> advertisement_data,
76 const CreateAdvertisementCallback& callback,
77 const CreateAdvertisementErrorCallback& error_callback) override;
74 78
75 // BluetoothDiscoveryManagerMac::Observer overrides 79 // BluetoothDiscoveryManagerMac::Observer overrides
76 void DeviceFound(IOBluetoothDevice* device) override; 80 void DeviceFound(IOBluetoothDevice* device) override;
77 void DiscoveryStopped(bool unexpected) override; 81 void DiscoveryStopped(bool unexpected) override;
78 82
79 // Registers that a new |device| has connected to the local host. 83 // Registers that a new |device| has connected to the local host.
80 void DeviceConnected(IOBluetoothDevice* device); 84 void DeviceConnected(IOBluetoothDevice* device);
81 85
82 protected: 86 protected:
83 // BluetoothAdapter: 87 // BluetoothAdapter:
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 scoped_refptr<base::SequencedTaskRunner> ui_task_runner_; 130 scoped_refptr<base::SequencedTaskRunner> ui_task_runner_;
127 131
128 base::WeakPtrFactory<BluetoothAdapterMac> weak_ptr_factory_; 132 base::WeakPtrFactory<BluetoothAdapterMac> weak_ptr_factory_;
129 133
130 DISALLOW_COPY_AND_ASSIGN(BluetoothAdapterMac); 134 DISALLOW_COPY_AND_ASSIGN(BluetoothAdapterMac);
131 }; 135 };
132 136
133 } // namespace device 137 } // namespace device
134 138
135 #endif // DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_MAC_H_ 139 #endif // DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_MAC_H_
OLDNEW
« no previous file with comments | « device/bluetooth/bluetooth_adapter_chromeos.cc ('k') | device/bluetooth/bluetooth_adapter_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698