| OLD | NEW |
| 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 CHROME_BROWSER_CHROMEOS_DBUS_BLUETOOTH_AGENT_SERVICE_PROVIDER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_DBUS_BLUETOOTH_AGENT_SERVICE_PROVIDER_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_DBUS_BLUETOOTH_AGENT_SERVICE_PROVIDER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_DBUS_BLUETOOTH_AGENT_SERVICE_PROVIDER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 // This is used for Bluetooth 2.1 and later devices that support input | 117 // This is used for Bluetooth 2.1 and later devices that support input |
| 118 // but not display, such as keyboards. The Passkey is a numeric in the | 118 // but not display, such as keyboards. The Passkey is a numeric in the |
| 119 // range 0-999999 and should be always presented zero-padded to six | 119 // range 0-999999 and should be always presented zero-padded to six |
| 120 // digits. | 120 // digits. |
| 121 virtual void DisplayPasskey(const dbus::ObjectPath& device_path, | 121 virtual void DisplayPasskey(const dbus::ObjectPath& device_path, |
| 122 uint32 passkey) = 0; | 122 uint32 passkey) = 0; |
| 123 | 123 |
| 124 // This method will be called when the Bluetooth daemon requires that the | 124 // This method will be called when the Bluetooth daemon requires that the |
| 125 // user confirm that the Passkey |passkey| is displayed on the screen | 125 // user confirm that the Passkey |passkey| is displayed on the screen |
| 126 // of the device with object path |object_path| so that it may be | 126 // of the device with object path |object_path| so that it may be |
| 127 // authentication. The agent should display to the user and ask for | 127 // authenticated. The agent should display to the user and ask for |
| 128 // confirmation, then call |callback| to provide their response (success, | 128 // confirmation, then call |callback| to provide their response (success, |
| 129 // rejected or cancelled). | 129 // rejected or cancelled). |
| 130 // | 130 // |
| 131 // This is used for Bluetooth 2.1 and later devices that support display, | 131 // This is used for Bluetooth 2.1 and later devices that support display, |
| 132 // such as other computers or phones. The Passkey is a numeric in the | 132 // such as other computers or phones. The Passkey is a numeric in the |
| 133 // range 0-999999 and should be always present zero-padded to six | 133 // range 0-999999 and should be always present zero-padded to six |
| 134 // digits. | 134 // digits. |
| 135 virtual void RequestConfirmation(const dbus::ObjectPath& device_path, | 135 virtual void RequestConfirmation(const dbus::ObjectPath& device_path, |
| 136 uint32 passkey, | 136 uint32 passkey, |
| 137 const ConfirmationCallback& callback) = 0; | 137 const ConfirmationCallback& callback) = 0; |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 protected: | 169 protected: |
| 170 BluetoothAgentServiceProvider(); | 170 BluetoothAgentServiceProvider(); |
| 171 | 171 |
| 172 private: | 172 private: |
| 173 DISALLOW_COPY_AND_ASSIGN(BluetoothAgentServiceProvider); | 173 DISALLOW_COPY_AND_ASSIGN(BluetoothAgentServiceProvider); |
| 174 }; | 174 }; |
| 175 | 175 |
| 176 } // namespace chromeos | 176 } // namespace chromeos |
| 177 | 177 |
| 178 #endif // CHROME_BROWSER_CHROMEOS_DBUS_BLUETOOTH_AGENT_SERVICE_PROVIDER_H_ | 178 #endif // CHROME_BROWSER_CHROMEOS_DBUS_BLUETOOTH_AGENT_SERVICE_PROVIDER_H_ |
| OLD | NEW |