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

Side by Side Diff: device/bluetooth/bluetooth_pairing_bluez.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_PAIRING_BLUEZ_H_ 5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_PAIRING_BLUEZ_H_
6 #define DEVICE_BLUETOOTH_BLUETOOTH_PAIRING_BLUEZ_H_ 6 #define DEVICE_BLUETOOTH_BLUETOOTH_PAIRING_BLUEZ_H_
7 7
8 #include <stdint.h>
9
8 #include "base/macros.h" 10 #include "base/macros.h"
9 #include "device/bluetooth/bluetooth_device.h" 11 #include "device/bluetooth/bluetooth_device.h"
10 #include "device/bluetooth/dbus/bluetooth_agent_service_provider.h" 12 #include "device/bluetooth/dbus/bluetooth_agent_service_provider.h"
11 13
12 namespace bluez { 14 namespace bluez {
13 15
14 class BluetoothDeviceBlueZ; 16 class BluetoothDeviceBlueZ;
15 17
16 // The BluetoothPairingBlueZ class encapsulates the logic for an individual 18 // The BluetoothPairingBlueZ class encapsulates the logic for an individual
17 // device pairing, acting as a bridge between BluetoothAdapterBlueZ which 19 // device pairing, acting as a bridge between BluetoothAdapterBlueZ which
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 // |callback|. 62 // |callback|.
61 void RequestPasskey( 63 void RequestPasskey(
62 const bluez::BluetoothAgentServiceProvider::Delegate::PasskeyCallback& 64 const bluez::BluetoothAgentServiceProvider::Delegate::PasskeyCallback&
63 callback); 65 callback);
64 66
65 // Sends the Passkey |passkey| to the remote device during pairing. 67 // Sends the Passkey |passkey| to the remote device during pairing.
66 // 68 //
67 // Passkeys are generally required for Bluetooth 2.1 and later devices 69 // Passkeys are generally required for Bluetooth 2.1 and later devices
68 // which cannot provide input or display on their own, and don't accept 70 // which cannot provide input or display on their own, and don't accept
69 // passkey-less pairing, and are a numeric in the range 0-999999. 71 // passkey-less pairing, and are a numeric in the range 0-999999.
70 void SetPasskey(uint32 passkey); 72 void SetPasskey(uint32_t passkey);
71 73
72 // Requests a Passkey for the current device be displayed by the current 74 // Requests a Passkey for the current device be displayed by the current
73 // pairing delegate. No response is expected from the delegate. 75 // pairing delegate. No response is expected from the delegate.
74 void DisplayPasskey(uint32 passkey); 76 void DisplayPasskey(uint32_t passkey);
75 77
76 // Informs the current pairing delegate that |entered| keys have been 78 // Informs the current pairing delegate that |entered| keys have been
77 // provided to the remote device since the DisplayPasskey() call. No 79 // provided to the remote device since the DisplayPasskey() call. No
78 // response is expected from the delegate. 80 // response is expected from the delegate.
79 void KeysEntered(uint16 entered); 81 void KeysEntered(uint16_t entered);
80 82
81 // Requests confirmation that |passkey| is displayed on the current device 83 // Requests confirmation that |passkey| is displayed on the current device
82 // from the current pairing delegate. The ConfirmPairing(), RejectPairing() 84 // from the current pairing delegate. The ConfirmPairing(), RejectPairing()
83 // and CancelPairing() method calls on this object are translated into the 85 // and CancelPairing() method calls on this object are translated into the
84 // appropriate response to |callback|. 86 // appropriate response to |callback|.
85 void RequestConfirmation(uint32 passkey, 87 void RequestConfirmation(uint32_t passkey,
86 const bluez::BluetoothAgentServiceProvider:: 88 const bluez::BluetoothAgentServiceProvider::
87 Delegate::ConfirmationCallback& callback); 89 Delegate::ConfirmationCallback& callback);
88 90
89 // Requests authorization that the current device be allowed to pair with 91 // Requests authorization that the current device be allowed to pair with
90 // this device from the current pairing delegate. The ConfirmPairing(), 92 // this device from the current pairing delegate. The ConfirmPairing(),
91 // RejectPairing() and CancelPairing() method calls on this object are 93 // RejectPairing() and CancelPairing() method calls on this object are
92 // translated into the appropriate response to |callback|. 94 // translated into the appropriate response to |callback|.
93 void RequestAuthorization(const bluez::BluetoothAgentServiceProvider:: 95 void RequestAuthorization(const bluez::BluetoothAgentServiceProvider::
94 Delegate::ConfirmationCallback& callback); 96 Delegate::ConfirmationCallback& callback);
95 97
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 passkey_callback_; 142 passkey_callback_;
141 bluez::BluetoothAgentServiceProvider::Delegate::ConfirmationCallback 143 bluez::BluetoothAgentServiceProvider::Delegate::ConfirmationCallback
142 confirmation_callback_; 144 confirmation_callback_;
143 145
144 DISALLOW_COPY_AND_ASSIGN(BluetoothPairingBlueZ); 146 DISALLOW_COPY_AND_ASSIGN(BluetoothPairingBlueZ);
145 }; 147 };
146 148
147 } // namespace bluez 149 } // namespace bluez
148 150
149 #endif // DEVICE_BLUETOOTH_BLUETOOTH_PAIRING_BLUEZ_H_ 151 #endif // DEVICE_BLUETOOTH_BLUETOOTH_PAIRING_BLUEZ_H_
OLDNEW
« no previous file with comments | « device/bluetooth/bluetooth_low_energy_win_unittest.cc ('k') | device/bluetooth/bluetooth_pairing_bluez.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698