| OLD | NEW |
| 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 CHROMEOS_DBUS_BLUETOOTH_AGENT_MANAGER_CLIENT_H_ | 5 #ifndef DEVICE_BLUETOOTH_DBUS_BLUETOOTH_AGENT_MANAGER_CLIENT_H_ |
| 6 #define CHROMEOS_DBUS_BLUETOOTH_AGENT_MANAGER_CLIENT_H_ | 6 #define DEVICE_BLUETOOTH_DBUS_BLUETOOTH_AGENT_MANAGER_CLIENT_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/callback.h" | 11 #include "base/callback.h" |
| 12 #include "base/values.h" | 12 #include "base/values.h" |
| 13 #include "chromeos/chromeos_export.h" | 13 #include "chromeos/chromeos_export.h" |
| 14 #include "chromeos/dbus/dbus_client.h" | |
| 15 #include "dbus/object_path.h" | 14 #include "dbus/object_path.h" |
| 15 #include "device/bluetooth/dbus/bluez_dbus_client.h" |
| 16 | 16 |
| 17 namespace chromeos { | 17 namespace bluez { |
| 18 | 18 |
| 19 // BluetoothAgentManagerClient is used to communicate with the agent manager | 19 // BluetoothAgentManagerClient is used to communicate with the agent manager |
| 20 // object of the Bluetooth daemon. | 20 // object of the Bluetooth daemon. |
| 21 class CHROMEOS_EXPORT BluetoothAgentManagerClient : public DBusClient { | 21 class CHROMEOS_EXPORT BluetoothAgentManagerClient : public BluezDBusClient { |
| 22 public: | 22 public: |
| 23 ~BluetoothAgentManagerClient() override; | 23 ~BluetoothAgentManagerClient() override; |
| 24 | 24 |
| 25 // The ErrorCallback is used by agent manager methods to indicate failure. | 25 // The ErrorCallback is used by agent manager methods to indicate failure. |
| 26 // It receives two arguments: the name of the error in |error_name| and | 26 // It receives two arguments: the name of the error in |error_name| and |
| 27 // an optional message in |error_message|. | 27 // an optional message in |error_message|. |
| 28 typedef base::Callback<void(const std::string& error_name, | 28 typedef base::Callback<void(const std::string& error_name, |
| 29 const std::string& error_message)> ErrorCallback; | 29 const std::string& error_message)> ErrorCallback; |
| 30 | 30 |
| 31 // Registers an agent within the local process at the D-bus object path | 31 // Registers an agent within the local process at the D-bus object path |
| (...skipping 24 matching lines...) Expand all Loading... |
| 56 // Constants used to indicate exceptional error conditions. | 56 // Constants used to indicate exceptional error conditions. |
| 57 static const char kNoResponseError[]; | 57 static const char kNoResponseError[]; |
| 58 | 58 |
| 59 protected: | 59 protected: |
| 60 BluetoothAgentManagerClient(); | 60 BluetoothAgentManagerClient(); |
| 61 | 61 |
| 62 private: | 62 private: |
| 63 DISALLOW_COPY_AND_ASSIGN(BluetoothAgentManagerClient); | 63 DISALLOW_COPY_AND_ASSIGN(BluetoothAgentManagerClient); |
| 64 }; | 64 }; |
| 65 | 65 |
| 66 } // namespace chromeos | 66 } // namespace bluez |
| 67 | 67 |
| 68 #endif // CHROMEOS_DBUS_BLUETOOTH_AGENT_MANAGER_CLIENT_H_ | 68 #endif // DEVICE_BLUETOOTH_DBUS_BLUETOOTH_AGENT_MANAGER_CLIENT_H_ |
| OLD | NEW |