| Index: device/bluetooth/dbus/bluetooth_agent_service_provider.h
|
| diff --git a/chromeos/dbus/bluetooth_agent_service_provider.h b/device/bluetooth/dbus/bluetooth_agent_service_provider.h
|
| similarity index 95%
|
| rename from chromeos/dbus/bluetooth_agent_service_provider.h
|
| rename to device/bluetooth/dbus/bluetooth_agent_service_provider.h
|
| index 411cc1dae982ef0f28faf610da343e51a9a36d47..a5edb0d3374cf5296ea95d0b7d211e9e3e664978 100644
|
| --- a/chromeos/dbus/bluetooth_agent_service_provider.h
|
| +++ b/device/bluetooth/dbus/bluetooth_agent_service_provider.h
|
| @@ -2,8 +2,8 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -#ifndef CHROMEOS_DBUS_BLUETOOTH_AGENT_SERVICE_PROVIDER_H_
|
| -#define CHROMEOS_DBUS_BLUETOOTH_AGENT_SERVICE_PROVIDER_H_
|
| +#ifndef DEVICE_BLUETOOTH_DBUS_BLUETOOTH_AGENT_SERVICE_PROVIDER_H_
|
| +#define DEVICE_BLUETOOTH_DBUS_BLUETOOTH_AGENT_SERVICE_PROVIDER_H_
|
|
|
| #include <string>
|
|
|
| @@ -13,7 +13,7 @@
|
| #include "dbus/bus.h"
|
| #include "dbus/object_path.h"
|
|
|
| -namespace chromeos {
|
| +namespace bluez {
|
|
|
| // BluetoothAgentServiceProvider is used to provide a D-Bus object that
|
| // the bluetooth daemon can communicate with during a remote device pairing
|
| @@ -40,11 +40,7 @@ class CHROMEOS_EXPORT BluetoothAgentServiceProvider {
|
| // granted; rejected indicates the user rejected the request or denied
|
| // permission; cancelled indicates the user cancelled the request
|
| // without confirming either way.
|
| - enum Status {
|
| - SUCCESS,
|
| - REJECTED,
|
| - CANCELLED
|
| - };
|
| + enum Status { SUCCESS, REJECTED, CANCELLED };
|
|
|
| // The PinCodeCallback is used for the RequestPinCode() method, it should
|
| // be called with two arguments, the |status| of the request (success,
|
| @@ -117,7 +113,8 @@ class CHROMEOS_EXPORT BluetoothAgentServiceProvider {
|
| // As the user enters the passkey onto the device, |entered| will be
|
| // updated to reflect the number of digits entered so far.
|
| virtual void DisplayPasskey(const dbus::ObjectPath& device_path,
|
| - uint32 passkey, uint16 entered) = 0;
|
| + uint32 passkey,
|
| + uint16 entered) = 0;
|
|
|
| // This method will be called when the Bluetooth daemon requires that the
|
| // user confirm that the Passkey |passkey| is displayed on the screen
|
| @@ -176,6 +173,6 @@ class CHROMEOS_EXPORT BluetoothAgentServiceProvider {
|
| DISALLOW_COPY_AND_ASSIGN(BluetoothAgentServiceProvider);
|
| };
|
|
|
| -} // namespace chromeos
|
| +} // namespace bluez
|
|
|
| -#endif // CHROMEOS_DBUS_BLUETOOTH_AGENT_SERVICE_PROVIDER_H_
|
| +#endif // DEVICE_BLUETOOTH_DBUS_BLUETOOTH_AGENT_SERVICE_PROVIDER_H_
|
|
|