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

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

Issue 1542163002: Switch to standard integer types in device/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: win Created 5 years 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 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_CLASSIC_DEVICE_MAC_H_ 5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_CLASSIC_DEVICE_MAC_H_
6 #define DEVICE_BLUETOOTH_BLUETOOTH_CLASSIC_DEVICE_MAC_H_ 6 #define DEVICE_BLUETOOTH_BLUETOOTH_CLASSIC_DEVICE_MAC_H_
7 7
8 #import <IOBluetooth/IOBluetooth.h> 8 #import <IOBluetooth/IOBluetooth.h>
9 #include <stdint.h>
9 10
10 #include <string> 11 #include <string>
11 12
12 #include "base/basictypes.h"
13 #include "base/mac/scoped_nsobject.h" 13 #include "base/mac/scoped_nsobject.h"
14 #include "base/macros.h"
14 #include "base/observer_list.h" 15 #include "base/observer_list.h"
15 #include "device/bluetooth/bluetooth_device_mac.h" 16 #include "device/bluetooth/bluetooth_device_mac.h"
16 17
17 @class IOBluetoothDevice; 18 @class IOBluetoothDevice;
18 19
19 namespace device { 20 namespace device {
20 21
21 class BluetoothAdapterMac; 22 class BluetoothAdapterMac;
22 23
23 class BluetoothClassicDeviceMac : public BluetoothDeviceMac { 24 class BluetoothClassicDeviceMac : public BluetoothDeviceMac {
24 public: 25 public:
25 explicit BluetoothClassicDeviceMac(BluetoothAdapterMac* adapter, 26 explicit BluetoothClassicDeviceMac(BluetoothAdapterMac* adapter,
26 IOBluetoothDevice* device); 27 IOBluetoothDevice* device);
27 ~BluetoothClassicDeviceMac() override; 28 ~BluetoothClassicDeviceMac() override;
28 29
29 // BluetoothDevice override 30 // BluetoothDevice override
30 uint32 GetBluetoothClass() const override; 31 uint32_t GetBluetoothClass() const override;
31 std::string GetAddress() const override; 32 std::string GetAddress() const override;
32 VendorIDSource GetVendorIDSource() const override; 33 VendorIDSource GetVendorIDSource() const override;
33 uint16 GetVendorID() const override; 34 uint16_t GetVendorID() const override;
34 uint16 GetProductID() const override; 35 uint16_t GetProductID() const override;
35 uint16 GetDeviceID() const override; 36 uint16_t GetDeviceID() const override;
36 bool IsPaired() const override; 37 bool IsPaired() const override;
37 bool IsConnected() const override; 38 bool IsConnected() const override;
38 bool IsGattConnected() const override; 39 bool IsGattConnected() const override;
39 bool IsConnectable() const override; 40 bool IsConnectable() const override;
40 bool IsConnecting() const override; 41 bool IsConnecting() const override;
41 UUIDList GetUUIDs() const override; 42 UUIDList GetUUIDs() const override;
42 int16 GetInquiryRSSI() const override; 43 int16_t GetInquiryRSSI() const override;
43 int16 GetInquiryTxPower() const override; 44 int16_t GetInquiryTxPower() const override;
44 bool ExpectingPinCode() const override; 45 bool ExpectingPinCode() const override;
45 bool ExpectingPasskey() const override; 46 bool ExpectingPasskey() const override;
46 bool ExpectingConfirmation() const override; 47 bool ExpectingConfirmation() const override;
47 void GetConnectionInfo(const ConnectionInfoCallback& callback) override; 48 void GetConnectionInfo(const ConnectionInfoCallback& callback) override;
48 void Connect(PairingDelegate* pairing_delegate, 49 void Connect(PairingDelegate* pairing_delegate,
49 const base::Closure& callback, 50 const base::Closure& callback,
50 const ConnectErrorCallback& error_callback) override; 51 const ConnectErrorCallback& error_callback) override;
51 void SetPinCode(const std::string& pincode) override; 52 void SetPinCode(const std::string& pincode) override;
52 void SetPasskey(uint32 passkey) override; 53 void SetPasskey(uint32_t passkey) override;
53 void ConfirmPairing() override; 54 void ConfirmPairing() override;
54 void RejectPairing() override; 55 void RejectPairing() override;
55 void CancelPairing() override; 56 void CancelPairing() override;
56 void Disconnect(const base::Closure& callback, 57 void Disconnect(const base::Closure& callback,
57 const ErrorCallback& error_callback) override; 58 const ErrorCallback& error_callback) override;
58 void Forget(const base::Closure& callback, 59 void Forget(const base::Closure& callback,
59 const ErrorCallback& error_callback) override; 60 const ErrorCallback& error_callback) override;
60 void ConnectToService( 61 void ConnectToService(
61 const BluetoothUUID& uuid, 62 const BluetoothUUID& uuid,
62 const ConnectToServiceCallback& callback, 63 const ConnectToServiceCallback& callback,
(...skipping 28 matching lines...) Expand all
91 BluetoothHCITransmitPowerLevelType power_level_type) const; 92 BluetoothHCITransmitPowerLevelType power_level_type) const;
92 93
93 base::scoped_nsobject<IOBluetoothDevice> device_; 94 base::scoped_nsobject<IOBluetoothDevice> device_;
94 95
95 DISALLOW_COPY_AND_ASSIGN(BluetoothClassicDeviceMac); 96 DISALLOW_COPY_AND_ASSIGN(BluetoothClassicDeviceMac);
96 }; 97 };
97 98
98 } // namespace device 99 } // namespace device
99 100
100 #endif // DEVICE_BLUETOOTH_BLUETOOTH_CLASSIC_DEVICE_MAC_H_ 101 #endif // DEVICE_BLUETOOTH_BLUETOOTH_CLASSIC_DEVICE_MAC_H_
OLDNEW
« no previous file with comments | « device/bluetooth/bluetooth_channel_mac.h ('k') | device/bluetooth/bluetooth_classic_device_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698