| 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 CHROMEOS_DBUS_BLUETOOTH_AGENT_MANAGER_CLIENT_H_ |
| 6 #define CHROMEOS_DBUS_BLUETOOTH_AGENT_MANAGER_CLIENT_H_ | 6 #define CHROMEOS_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" | 14 #include "chromeos/dbus/dbus_client.h" |
| 15 #include "chromeos/dbus/dbus_client_implementation_type.h" | |
| 16 #include "dbus/object_path.h" | 15 #include "dbus/object_path.h" |
| 17 | 16 |
| 18 namespace chromeos { | 17 namespace chromeos { |
| 19 | 18 |
| 20 // BluetoothAgentManagerClient is used to communicate with the agent manager | 19 // BluetoothAgentManagerClient is used to communicate with the agent manager |
| 21 // object of the Bluetooth daemon. | 20 // object of the Bluetooth daemon. |
| 22 class CHROMEOS_EXPORT BluetoothAgentManagerClient : public DBusClient { | 21 class CHROMEOS_EXPORT BluetoothAgentManagerClient : public DBusClient { |
| 23 public: | 22 public: |
| 24 virtual ~BluetoothAgentManagerClient(); | 23 virtual ~BluetoothAgentManagerClient(); |
| 25 | 24 |
| (...skipping 19 matching lines...) Expand all Loading... |
| 45 const base::Closure& callback, | 44 const base::Closure& callback, |
| 46 const ErrorCallback& error_callback) = 0; | 45 const ErrorCallback& error_callback) = 0; |
| 47 | 46 |
| 48 // Requests that the agent with the D-Bus object path |agent_path| be made | 47 // Requests that the agent with the D-Bus object path |agent_path| be made |
| 49 // the default. | 48 // the default. |
| 50 virtual void RequestDefaultAgent(const dbus::ObjectPath& agent_path, | 49 virtual void RequestDefaultAgent(const dbus::ObjectPath& agent_path, |
| 51 const base::Closure& callback, | 50 const base::Closure& callback, |
| 52 const ErrorCallback& error_callback) = 0; | 51 const ErrorCallback& error_callback) = 0; |
| 53 | 52 |
| 54 // Creates the instance. | 53 // Creates the instance. |
| 55 static BluetoothAgentManagerClient* Create(DBusClientImplementationType type); | 54 static BluetoothAgentManagerClient* Create(); |
| 56 | 55 |
| 57 // Constants used to indicate exceptional error conditions. | 56 // Constants used to indicate exceptional error conditions. |
| 58 static const char kNoResponseError[]; | 57 static const char kNoResponseError[]; |
| 59 | 58 |
| 60 protected: | 59 protected: |
| 61 BluetoothAgentManagerClient(); | 60 BluetoothAgentManagerClient(); |
| 62 | 61 |
| 63 private: | 62 private: |
| 64 DISALLOW_COPY_AND_ASSIGN(BluetoothAgentManagerClient); | 63 DISALLOW_COPY_AND_ASSIGN(BluetoothAgentManagerClient); |
| 65 }; | 64 }; |
| 66 | 65 |
| 67 } // namespace chromeos | 66 } // namespace chromeos |
| 68 | 67 |
| 69 #endif // CHROMEOS_DBUS_BLUETOOTH_AGENT_MANAGER_CLIENT_H_ | 68 #endif // CHROMEOS_DBUS_BLUETOOTH_AGENT_MANAGER_CLIENT_H_ |
| OLD | NEW |