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

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

Issue 1054743003: Add CPP API for BLE advertisments. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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_CHROMEOS_H_ 5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_CHROMEOS_H_
6 #define DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_CHROMEOS_H_ 6 #define DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_CHROMEOS_H_
7 7
8 #include <map> 8 #include <map>
9 #include <queue> 9 #include <queue>
10 #include <string> 10 #include <string>
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 void CreateL2capService( 92 void CreateL2capService(
93 const device::BluetoothUUID& uuid, 93 const device::BluetoothUUID& uuid,
94 const ServiceOptions& options, 94 const ServiceOptions& options,
95 const CreateServiceCallback& callback, 95 const CreateServiceCallback& callback,
96 const CreateServiceErrorCallback& error_callback) override; 96 const CreateServiceErrorCallback& error_callback) override;
97 void RegisterAudioSink( 97 void RegisterAudioSink(
98 const device::BluetoothAudioSink::Options& options, 98 const device::BluetoothAudioSink::Options& options,
99 const device::BluetoothAdapter::AcquiredCallback& callback, 99 const device::BluetoothAdapter::AcquiredCallback& callback,
100 const device::BluetoothAudioSink::ErrorCallback& error_callback) override; 100 const device::BluetoothAudioSink::ErrorCallback& error_callback) override;
101 101
102 void RegisterAdvertisement(
103 scoped_ptr<device::BluetoothAdvertisement::Data> advertisement_data,
104 const CreateAdvertisementCallback& callback,
105 const CreateAdvertisementErrorCallback& error_callback) override;
106
102 // Locates the device object by object path (the devices map and 107 // Locates the device object by object path (the devices map and
103 // BluetoothDevice methods are by address). 108 // BluetoothDevice methods are by address).
104 BluetoothDeviceChromeOS* GetDeviceWithPath( 109 BluetoothDeviceChromeOS* GetDeviceWithPath(
105 const dbus::ObjectPath& object_path); 110 const dbus::ObjectPath& object_path);
106 111
107 // Announce to observers a change in device state that is not reflected by 112 // Announce to observers a change in device state that is not reflected by
108 // its D-Bus properties. 113 // its D-Bus properties.
109 void NotifyDeviceChanged(BluetoothDeviceChromeOS* device); 114 void NotifyDeviceChanged(BluetoothDeviceChromeOS* device);
110 115
111 // The following methods are used to send various GATT observer events to 116 // The following methods are used to send various GATT observer events to
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
361 // Note: This should remain the last member so it'll be destroyed and 366 // Note: This should remain the last member so it'll be destroyed and
362 // invalidate its weak pointers before any other members are destroyed. 367 // invalidate its weak pointers before any other members are destroyed.
363 base::WeakPtrFactory<BluetoothAdapterChromeOS> weak_ptr_factory_; 368 base::WeakPtrFactory<BluetoothAdapterChromeOS> weak_ptr_factory_;
364 369
365 DISALLOW_COPY_AND_ASSIGN(BluetoothAdapterChromeOS); 370 DISALLOW_COPY_AND_ASSIGN(BluetoothAdapterChromeOS);
366 }; 371 };
367 372
368 } // namespace chromeos 373 } // namespace chromeos
369 374
370 #endif // DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_CHROMEOS_H_ 375 #endif // DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_CHROMEOS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698