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

Side by Side Diff: device/bluetooth/dbus/bluetooth_agent_manager_client.h

Issue 1347193004: Refactor DBusThreadManager to split away BT clients. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 months 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 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"
14 #include "chromeos/dbus/dbus_client.h"
15 #include "dbus/object_path.h" 13 #include "dbus/object_path.h"
14 #include "device/bluetooth/bluetooth_export.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 DEVICE_BLUETOOTH_EXPORT BluetoothAgentManagerClient
22 : public BluezDBusClient {
22 public: 23 public:
23 ~BluetoothAgentManagerClient() override; 24 ~BluetoothAgentManagerClient() override;
24 25
25 // The ErrorCallback is used by agent manager methods to indicate failure. 26 // 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 27 // It receives two arguments: the name of the error in |error_name| and
27 // an optional message in |error_message|. 28 // an optional message in |error_message|.
28 typedef base::Callback<void(const std::string& error_name, 29 typedef base::Callback<void(const std::string& error_name,
29 const std::string& error_message)> ErrorCallback; 30 const std::string& error_message)> ErrorCallback;
30 31
31 // Registers an agent within the local process at the D-bus object path 32 // Registers an agent within the local process at the D-bus object path
(...skipping 24 matching lines...) Expand all
56 // Constants used to indicate exceptional error conditions. 57 // Constants used to indicate exceptional error conditions.
57 static const char kNoResponseError[]; 58 static const char kNoResponseError[];
58 59
59 protected: 60 protected:
60 BluetoothAgentManagerClient(); 61 BluetoothAgentManagerClient();
61 62
62 private: 63 private:
63 DISALLOW_COPY_AND_ASSIGN(BluetoothAgentManagerClient); 64 DISALLOW_COPY_AND_ASSIGN(BluetoothAgentManagerClient);
64 }; 65 };
65 66
66 } // namespace chromeos 67 } // namespace bluez
67 68
68 #endif // CHROMEOS_DBUS_BLUETOOTH_AGENT_MANAGER_CLIENT_H_ 69 #endif // DEVICE_BLUETOOTH_DBUS_BLUETOOTH_AGENT_MANAGER_CLIENT_H_
OLDNEW
« no previous file with comments | « device/bluetooth/dbus/bluetooth_adapter_client.cc ('k') | device/bluetooth/dbus/bluetooth_agent_manager_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698