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

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

Issue 1111563002: 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_WIN_H_ 5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_WIN_H_
6 #define DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_WIN_H_ 6 #define DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_WIN_H_
7 7
8 #include <hash_set> 8 #include <hash_set>
9 #include <set> 9 #include <set>
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;
78 74
79 // BluetoothTaskManagerWin::Observer override 75 // BluetoothTaskManagerWin::Observer override
80 void AdapterStateChanged( 76 void AdapterStateChanged(
81 const BluetoothTaskManagerWin::AdapterState& state) override; 77 const BluetoothTaskManagerWin::AdapterState& state) override;
82 void DiscoveryStarted(bool success) override; 78 void DiscoveryStarted(bool success) override;
83 void DiscoveryStopped() override; 79 void DiscoveryStopped() override;
84 void DevicesPolled(const ScopedVector<BluetoothTaskManagerWin::DeviceState>& 80 void DevicesPolled(const ScopedVector<BluetoothTaskManagerWin::DeviceState>&
85 devices) override; 81 devices) override;
86 82
87 const scoped_refptr<base::SequencedTaskRunner>& ui_task_runner() const { 83 const scoped_refptr<base::SequencedTaskRunner>& ui_task_runner() const {
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 // NOTE: This should remain the last member so it'll be destroyed and 146 // NOTE: This should remain the last member so it'll be destroyed and
151 // invalidate its weak pointers before any other members are destroyed. 147 // invalidate its weak pointers before any other members are destroyed.
152 base::WeakPtrFactory<BluetoothAdapterWin> weak_ptr_factory_; 148 base::WeakPtrFactory<BluetoothAdapterWin> weak_ptr_factory_;
153 149
154 DISALLOW_COPY_AND_ASSIGN(BluetoothAdapterWin); 150 DISALLOW_COPY_AND_ASSIGN(BluetoothAdapterWin);
155 }; 151 };
156 152
157 } // namespace device 153 } // namespace device
158 154
159 #endif // DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_WIN_H_ 155 #endif // DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_WIN_H_
OLDNEW
« no previous file with comments | « device/bluetooth/bluetooth_adapter_unittest.cc ('k') | device/bluetooth/bluetooth_adapter_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698