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

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

Issue 2389753003: Delete unused BluetoothAudioSink code. (Closed)
Patch Set: Created 4 years, 2 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>
11 #include <set> 11 #include <set>
12 #include <string> 12 #include <string>
13 #include <utility> 13 #include <utility>
14 #include <vector> 14 #include <vector>
15 15
16 #include "base/containers/hash_tables.h" 16 #include "base/containers/hash_tables.h"
17 #include "base/macros.h" 17 #include "base/macros.h"
18 #include "base/memory/ref_counted.h" 18 #include "base/memory/ref_counted.h"
19 #include "base/memory/scoped_vector.h" 19 #include "base/memory/scoped_vector.h"
20 #include "base/memory/weak_ptr.h" 20 #include "base/memory/weak_ptr.h"
21 #include "base/threading/thread_checker.h" 21 #include "base/threading/thread_checker.h"
22 #include "device/bluetooth/bluetooth_adapter.h" 22 #include "device/bluetooth/bluetooth_adapter.h"
23 #include "device/bluetooth/bluetooth_audio_sink.h"
24 #include "device/bluetooth/bluetooth_discovery_session.h" 23 #include "device/bluetooth/bluetooth_discovery_session.h"
25 #include "device/bluetooth/bluetooth_export.h" 24 #include "device/bluetooth/bluetooth_export.h"
26 #include "device/bluetooth/bluetooth_task_manager_win.h" 25 #include "device/bluetooth/bluetooth_task_manager_win.h"
27 26
28 namespace base { 27 namespace base {
29 class SequencedTaskRunner; 28 class SequencedTaskRunner;
30 class Thread; 29 class Thread;
31 } // namespace base 30 } // namespace base
32 31
33 namespace device { 32 namespace device {
(...skipping 30 matching lines...) Expand all
64 void CreateRfcommService( 63 void CreateRfcommService(
65 const BluetoothUUID& uuid, 64 const BluetoothUUID& uuid,
66 const ServiceOptions& options, 65 const ServiceOptions& options,
67 const CreateServiceCallback& callback, 66 const CreateServiceCallback& callback,
68 const CreateServiceErrorCallback& error_callback) override; 67 const CreateServiceErrorCallback& error_callback) override;
69 void CreateL2capService( 68 void CreateL2capService(
70 const BluetoothUUID& uuid, 69 const BluetoothUUID& uuid,
71 const ServiceOptions& options, 70 const ServiceOptions& options,
72 const CreateServiceCallback& callback, 71 const CreateServiceCallback& callback,
73 const CreateServiceErrorCallback& error_callback) override; 72 const CreateServiceErrorCallback& error_callback) override;
74 void RegisterAudioSink(
75 const BluetoothAudioSink::Options& options,
76 const AcquiredCallback& callback,
77 const BluetoothAudioSink::ErrorCallback& error_callback) override;
78 void RegisterAdvertisement( 73 void RegisterAdvertisement(
79 std::unique_ptr<BluetoothAdvertisement::Data> advertisement_data, 74 std::unique_ptr<BluetoothAdvertisement::Data> advertisement_data,
80 const CreateAdvertisementCallback& callback, 75 const CreateAdvertisementCallback& callback,
81 const AdvertisementErrorCallback& error_callback) override; 76 const AdvertisementErrorCallback& error_callback) override;
82 BluetoothLocalGattService* GetGattService( 77 BluetoothLocalGattService* GetGattService(
83 const std::string& identifier) const override; 78 const std::string& identifier) const override;
84 79
85 // BluetoothTaskManagerWin::Observer override 80 // BluetoothTaskManagerWin::Observer override
86 void AdapterStateChanged( 81 void AdapterStateChanged(
87 const BluetoothTaskManagerWin::AdapterState& state) override; 82 const BluetoothTaskManagerWin::AdapterState& state) override;
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 // NOTE: This should remain the last member so it'll be destroyed and 162 // NOTE: This should remain the last member so it'll be destroyed and
168 // invalidate its weak pointers before any other members are destroyed. 163 // invalidate its weak pointers before any other members are destroyed.
169 base::WeakPtrFactory<BluetoothAdapterWin> weak_ptr_factory_; 164 base::WeakPtrFactory<BluetoothAdapterWin> weak_ptr_factory_;
170 165
171 DISALLOW_COPY_AND_ASSIGN(BluetoothAdapterWin); 166 DISALLOW_COPY_AND_ASSIGN(BluetoothAdapterWin);
172 }; 167 };
173 168
174 } // namespace device 169 } // namespace device
175 170
176 #endif // DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_WIN_H_ 171 #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