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

Side by Side Diff: chromeos/dbus/bluetooth_adapter_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
« no previous file with comments | « no previous file | chromeos/dbus/bluetooth_adapter_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_ADAPTER_CLIENT_H_ 5 #ifndef CHROMEOS_DBUS_BLUETOOTH_ADAPTER_CLIENT_H_
6 #define CHROMEOS_DBUS_BLUETOOTH_ADAPTER_CLIENT_H_ 6 #define CHROMEOS_DBUS_BLUETOOTH_ADAPTER_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 // BluetoothAdapterClient is used to communicate with objects representing 21 // BluetoothAdapterClient is used to communicate with objects representing
23 // local Bluetooth Adapters. 22 // local Bluetooth Adapters.
24 class CHROMEOS_EXPORT BluetoothAdapterClient : public DBusClient { 23 class CHROMEOS_EXPORT BluetoothAdapterClient : public DBusClient {
25 public: 24 public:
26 // Structure of properties associated with bluetooth adapters. 25 // Structure of properties associated with bluetooth adapters.
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 131
133 // Removes from the adapter with object path |object_path| the remote 132 // Removes from the adapter with object path |object_path| the remote
134 // device with object path |object_path| from the list of known devices 133 // device with object path |object_path| from the list of known devices
135 // and discards any pairing information. 134 // and discards any pairing information.
136 virtual void RemoveDevice(const dbus::ObjectPath& object_path, 135 virtual void RemoveDevice(const dbus::ObjectPath& object_path,
137 const dbus::ObjectPath& device_path, 136 const dbus::ObjectPath& device_path,
138 const base::Closure& callback, 137 const base::Closure& callback,
139 const ErrorCallback& error_callback) = 0; 138 const ErrorCallback& error_callback) = 0;
140 139
141 // Creates the instance. 140 // Creates the instance.
142 static BluetoothAdapterClient* Create(DBusClientImplementationType type); 141 static BluetoothAdapterClient* Create();
143 142
144 // Constants used to indicate exceptional error conditions. 143 // Constants used to indicate exceptional error conditions.
145 static const char kNoResponseError[]; 144 static const char kNoResponseError[];
146 static const char kUnknownAdapterError[]; 145 static const char kUnknownAdapterError[];
147 146
148 protected: 147 protected:
149 BluetoothAdapterClient(); 148 BluetoothAdapterClient();
150 149
151 private: 150 private:
152 DISALLOW_COPY_AND_ASSIGN(BluetoothAdapterClient); 151 DISALLOW_COPY_AND_ASSIGN(BluetoothAdapterClient);
153 }; 152 };
154 153
155 } // namespace chromeos 154 } // namespace chromeos
156 155
157 #endif // CHROMEOS_DBUS_BLUETOOTH_ADAPTER_CLIENT_H_ 156 #endif // CHROMEOS_DBUS_BLUETOOTH_ADAPTER_CLIENT_H_
OLDNEW
« no previous file with comments | « no previous file | chromeos/dbus/bluetooth_adapter_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698