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

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

Issue 278663002: Implement chrome.bluetoothSocket.listenUsing*() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix BluetoothAdapterMac include typo Created 6 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 | Annotate | Revision Log
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 <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 const ErrorCallback& error_callback) OVERRIDE; 51 const ErrorCallback& error_callback) OVERRIDE;
52 virtual bool IsDiscoverable() const OVERRIDE; 52 virtual bool IsDiscoverable() const OVERRIDE;
53 virtual void SetDiscoverable( 53 virtual void SetDiscoverable(
54 bool discoverable, 54 bool discoverable,
55 const base::Closure& callback, 55 const base::Closure& callback,
56 const ErrorCallback& error_callback) OVERRIDE; 56 const ErrorCallback& error_callback) OVERRIDE;
57 virtual bool IsDiscovering() const OVERRIDE; 57 virtual bool IsDiscovering() const OVERRIDE;
58 virtual void ReadLocalOutOfBandPairingData( 58 virtual void ReadLocalOutOfBandPairingData(
59 const BluetoothOutOfBandPairingDataCallback& callback, 59 const BluetoothOutOfBandPairingDataCallback& callback,
60 const ErrorCallback& error_callback) OVERRIDE; 60 const ErrorCallback& error_callback) OVERRIDE;
61 virtual void CreateRfcommService(
62 const BluetoothUUID& uuid,
63 int channel,
64 bool insecure,
65 const CreateServiceCallback& callback,
66 const CreateServiceErrorCallback& error_callback) OVERRIDE;
67 virtual void CreateL2capService(
68 const BluetoothUUID& uuid,
69 int psm,
70 const CreateServiceCallback& callback,
71 const CreateServiceErrorCallback& error_callback) OVERRIDE;
61 72
62 // BluetoothTaskManagerWin::Observer override 73 // BluetoothTaskManagerWin::Observer override
63 virtual void AdapterStateChanged( 74 virtual void AdapterStateChanged(
64 const BluetoothTaskManagerWin::AdapterState& state) OVERRIDE; 75 const BluetoothTaskManagerWin::AdapterState& state) OVERRIDE;
65 virtual void DiscoveryStarted(bool success) OVERRIDE; 76 virtual void DiscoveryStarted(bool success) OVERRIDE;
66 virtual void DiscoveryStopped() OVERRIDE; 77 virtual void DiscoveryStopped() OVERRIDE;
67 virtual void DevicesDiscovered( 78 virtual void DevicesDiscovered(
68 const ScopedVector<BluetoothTaskManagerWin::DeviceState>& devices) 79 const ScopedVector<BluetoothTaskManagerWin::DeviceState>& devices)
69 OVERRIDE; 80 OVERRIDE;
70 81
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 // NOTE: This should remain the last member so it'll be destroyed and 149 // NOTE: This should remain the last member so it'll be destroyed and
139 // invalidate its weak pointers before any other members are destroyed. 150 // invalidate its weak pointers before any other members are destroyed.
140 base::WeakPtrFactory<BluetoothAdapterWin> weak_ptr_factory_; 151 base::WeakPtrFactory<BluetoothAdapterWin> weak_ptr_factory_;
141 152
142 DISALLOW_COPY_AND_ASSIGN(BluetoothAdapterWin); 153 DISALLOW_COPY_AND_ASSIGN(BluetoothAdapterWin);
143 }; 154 };
144 155
145 } // namespace device 156 } // namespace device
146 157
147 #endif // DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_WIN_H_ 158 #endif // DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698