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

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

Issue 652403002: [Clean up] Expose ConnectToServiceInsecurely as a BluetoothDevice API on all platforms. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase: Restore deps rather than public_deps Created 6 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
« no previous file with comments | « device/bluetooth/bluetooth_device_chromeos.h ('k') | device/bluetooth/bluetooth_device_mac.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_DEVICE_MAC_H_ 5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_MAC_H_
6 #define DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_MAC_H_ 6 #define DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_MAC_H_
7 7
8 #import <IOBluetooth/IOBluetooth.h> 8 #import <IOBluetooth/IOBluetooth.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 virtual void RejectPairing() override; 51 virtual void RejectPairing() override;
52 virtual void CancelPairing() override; 52 virtual void CancelPairing() override;
53 virtual void Disconnect( 53 virtual void Disconnect(
54 const base::Closure& callback, 54 const base::Closure& callback,
55 const ErrorCallback& error_callback) override; 55 const ErrorCallback& error_callback) override;
56 virtual void Forget(const ErrorCallback& error_callback) override; 56 virtual void Forget(const ErrorCallback& error_callback) override;
57 virtual void ConnectToService( 57 virtual void ConnectToService(
58 const BluetoothUUID& uuid, 58 const BluetoothUUID& uuid,
59 const ConnectToServiceCallback& callback, 59 const ConnectToServiceCallback& callback,
60 const ConnectToServiceErrorCallback& error_callback) override; 60 const ConnectToServiceErrorCallback& error_callback) override;
61 virtual void ConnectToServiceInsecurely(
62 const BluetoothUUID& uuid,
63 const ConnectToServiceCallback& callback,
64 const ConnectToServiceErrorCallback& error_callback) override;
61 virtual void CreateGattConnection( 65 virtual void CreateGattConnection(
62 const GattConnectionCallback& callback, 66 const GattConnectionCallback& callback,
63 const ConnectErrorCallback& error_callback) override; 67 const ConnectErrorCallback& error_callback) override;
64 virtual void StartConnectionMonitor( 68 virtual void StartConnectionMonitor(
65 const base::Closure& callback, 69 const base::Closure& callback,
66 const ErrorCallback& error_callback) override; 70 const ErrorCallback& error_callback) override;
67 71
68 // Returns the timestamp when the device was last seen during an inquiry. 72 // Returns the timestamp when the device was last seen during an inquiry.
69 // Returns nil if the device has never been seen during an inquiry. 73 // Returns nil if the device has never been seen during an inquiry.
70 NSDate* GetLastInquiryUpdate(); 74 NSDate* GetLastInquiryUpdate();
(...skipping 15 matching lines...) Expand all
86 BluetoothHCITransmitPowerLevelType power_level_type) const; 90 BluetoothHCITransmitPowerLevelType power_level_type) const;
87 91
88 base::scoped_nsobject<IOBluetoothDevice> device_; 92 base::scoped_nsobject<IOBluetoothDevice> device_;
89 93
90 DISALLOW_COPY_AND_ASSIGN(BluetoothDeviceMac); 94 DISALLOW_COPY_AND_ASSIGN(BluetoothDeviceMac);
91 }; 95 };
92 96
93 } // namespace device 97 } // namespace device
94 98
95 #endif // DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_MAC_H_ 99 #endif // DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_MAC_H_
OLDNEW
« no previous file with comments | « device/bluetooth/bluetooth_device_chromeos.h ('k') | device/bluetooth/bluetooth_device_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698