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

Side by Side Diff: chromeos/dbus/bluetooth_device_client.h

Issue 91413002: Remove fake client creation from DBusClients' Create() functions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased. Created 7 years 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 | Annotate | Revision Log
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_DEVICE_CLIENT_H_ 5 #ifndef CHROMEOS_DBUS_BLUETOOTH_DEVICE_CLIENT_H_
6 #define CHROMEOS_DBUS_BLUETOOTH_DEVICE_CLIENT_H_ 6 #define CHROMEOS_DBUS_BLUETOOTH_DEVICE_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/observer_list.h" 12 #include "base/observer_list.h"
13 #include "base/values.h" 13 #include "base/values.h"
14 #include "chromeos/chromeos_export.h" 14 #include "chromeos/chromeos_export.h"
15 #include "chromeos/dbus/dbus_client.h" 15 #include "chromeos/dbus/dbus_client.h"
16 #include "chromeos/dbus/dbus_client_implementation_type.h"
17 #include "dbus/object_path.h" 16 #include "dbus/object_path.h"
18 #include "dbus/property.h" 17 #include "dbus/property.h"
19 18
20 namespace chromeos { 19 namespace chromeos {
21 20
22 // BluetoothDeviceClient is used to communicate with objects representing 21 // BluetoothDeviceClient is used to communicate with objects representing
23 // remote Bluetooth Devices. 22 // remote Bluetooth Devices.
24 class CHROMEOS_EXPORT BluetoothDeviceClient : public DBusClient { 23 class CHROMEOS_EXPORT BluetoothDeviceClient : public DBusClient {
25 public: 24 public:
26 // Structure of properties associated with bluetooth devices. 25 // Structure of properties associated with bluetooth devices.
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 const base::Closure& callback, 163 const base::Closure& callback,
165 const ErrorCallback& error_callback) = 0; 164 const ErrorCallback& error_callback) = 0;
166 165
167 // Cancels an in-progress pairing with the device with object path 166 // Cancels an in-progress pairing with the device with object path
168 // |object_path| initiated by Pair(). 167 // |object_path| initiated by Pair().
169 virtual void CancelPairing(const dbus::ObjectPath& object_path, 168 virtual void CancelPairing(const dbus::ObjectPath& object_path,
170 const base::Closure& callback, 169 const base::Closure& callback,
171 const ErrorCallback& error_callback) = 0; 170 const ErrorCallback& error_callback) = 0;
172 171
173 // Creates the instance. 172 // Creates the instance.
174 static BluetoothDeviceClient* Create(DBusClientImplementationType type); 173 static BluetoothDeviceClient* Create();
175 174
176 // Constants used to indicate exceptional error conditions. 175 // Constants used to indicate exceptional error conditions.
177 static const char kNoResponseError[]; 176 static const char kNoResponseError[];
178 static const char kUnknownDeviceError[]; 177 static const char kUnknownDeviceError[];
179 178
180 protected: 179 protected:
181 BluetoothDeviceClient(); 180 BluetoothDeviceClient();
182 181
183 private: 182 private:
184 DISALLOW_COPY_AND_ASSIGN(BluetoothDeviceClient); 183 DISALLOW_COPY_AND_ASSIGN(BluetoothDeviceClient);
185 }; 184 };
186 185
187 } // namespace chromeos 186 } // namespace chromeos
188 187
189 #endif // CHROMEOS_DBUS_BLUETOOTH_DEVICE_CLIENT_H_ 188 #endif // CHROMEOS_DBUS_BLUETOOTH_DEVICE_CLIENT_H_
OLDNEW
« no previous file with comments | « chromeos/dbus/bluetooth_agent_manager_client.cc ('k') | chromeos/dbus/bluetooth_device_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698