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

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

Issue 1920353002: Implement create attribute API functions for BTLE. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@api_changes
Patch Set: owners Created 4 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 <stddef.h> 8 #include <stddef.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 const CreateServiceCallback& callback, 72 const CreateServiceCallback& callback,
73 const CreateServiceErrorCallback& error_callback) override; 73 const CreateServiceErrorCallback& error_callback) override;
74 void RegisterAudioSink( 74 void RegisterAudioSink(
75 const BluetoothAudioSink::Options& options, 75 const BluetoothAudioSink::Options& options,
76 const AcquiredCallback& callback, 76 const AcquiredCallback& callback,
77 const BluetoothAudioSink::ErrorCallback& error_callback) override; 77 const BluetoothAudioSink::ErrorCallback& error_callback) override;
78 void RegisterAdvertisement( 78 void RegisterAdvertisement(
79 std::unique_ptr<BluetoothAdvertisement::Data> advertisement_data, 79 std::unique_ptr<BluetoothAdvertisement::Data> advertisement_data,
80 const CreateAdvertisementCallback& callback, 80 const CreateAdvertisementCallback& callback,
81 const CreateAdvertisementErrorCallback& error_callback) override; 81 const CreateAdvertisementErrorCallback& error_callback) override;
82 BluetoothLocalGattService* GetGattService(
83 const std::string& identifier) const override;
82 84
83 // BluetoothTaskManagerWin::Observer override 85 // BluetoothTaskManagerWin::Observer override
84 void AdapterStateChanged( 86 void AdapterStateChanged(
85 const BluetoothTaskManagerWin::AdapterState& state) override; 87 const BluetoothTaskManagerWin::AdapterState& state) override;
86 void DiscoveryStarted(bool success) override; 88 void DiscoveryStarted(bool success) override;
87 void DiscoveryStopped() override; 89 void DiscoveryStopped() override;
88 void DevicesPolled(const ScopedVector<BluetoothTaskManagerWin::DeviceState>& 90 void DevicesPolled(const ScopedVector<BluetoothTaskManagerWin::DeviceState>&
89 devices) override; 91 devices) override;
90 92
91 const scoped_refptr<base::SequencedTaskRunner>& ui_task_runner() const { 93 const scoped_refptr<base::SequencedTaskRunner>& ui_task_runner() const {
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 // NOTE: This should remain the last member so it'll be destroyed and 167 // NOTE: This should remain the last member so it'll be destroyed and
166 // invalidate its weak pointers before any other members are destroyed. 168 // invalidate its weak pointers before any other members are destroyed.
167 base::WeakPtrFactory<BluetoothAdapterWin> weak_ptr_factory_; 169 base::WeakPtrFactory<BluetoothAdapterWin> weak_ptr_factory_;
168 170
169 DISALLOW_COPY_AND_ASSIGN(BluetoothAdapterWin); 171 DISALLOW_COPY_AND_ASSIGN(BluetoothAdapterWin);
170 }; 172 };
171 173
172 } // namespace device 174 } // namespace device
173 175
174 #endif // DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_WIN_H_ 176 #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