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

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

Issue 9972014: s/spdtool/sdptool/ in a comment (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 virtual void AddObserver(Observer* observer) = 0; 130 virtual void AddObserver(Observer* observer) = 0;
131 virtual void RemoveObserver(Observer* observer) = 0; 131 virtual void RemoveObserver(Observer* observer) = 0;
132 132
133 // Obtain the properties for the device with object path |object_path|, 133 // Obtain the properties for the device with object path |object_path|,
134 // any values should be copied if needed. 134 // any values should be copied if needed.
135 virtual Properties* GetProperties(const dbus::ObjectPath& object_path) = 0; 135 virtual Properties* GetProperties(const dbus::ObjectPath& object_path) = 0;
136 136
137 // The Services map is used to convey the set of services discovered 137 // The Services map is used to convey the set of services discovered
138 // on a device. The keys are unique record handles and the values are 138 // on a device. The keys are unique record handles and the values are
139 // XML-formatted service records. Both can be generated using the 139 // XML-formatted service records. Both can be generated using the
140 // spdtool(1) binary distributed with bluetoothd. 140 // sdptool(1) binary distributed with bluetoothd.
141 typedef std::map<const uint32, std::string> ServiceMap; 141 typedef std::map<const uint32, std::string> ServiceMap;
142 142
143 // The ServicesCallback is used for the DiscoverServices() method. It 143 // The ServicesCallback is used for the DiscoverServices() method. It
144 // receives three arguments, the |object_path| of the device, the 144 // receives three arguments, the |object_path| of the device, the
145 // dictionary of the |services| discovered where the keys are unique 145 // dictionary of the |services| discovered where the keys are unique
146 // record handles and the values are XML formatted service records, 146 // record handles and the values are XML formatted service records,
147 // and |success| which indicates whether or not the request succeded. 147 // and |success| which indicates whether or not the request succeded.
148 typedef base::Callback<void(const dbus::ObjectPath&, const ServiceMap&, 148 typedef base::Callback<void(const dbus::ObjectPath&, const ServiceMap&,
149 bool)> ServicesCallback; 149 bool)> ServicesCallback;
150 150
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 protected: 203 protected:
204 BluetoothDeviceClient(); 204 BluetoothDeviceClient();
205 205
206 private: 206 private:
207 DISALLOW_COPY_AND_ASSIGN(BluetoothDeviceClient); 207 DISALLOW_COPY_AND_ASSIGN(BluetoothDeviceClient);
208 }; 208 };
209 209
210 } // namespace chromeos 210 } // namespace chromeos
211 211
212 #endif // CHROMEOS_DBUS_BLUETOOTH_DEVICE_CLIENT_H_ 212 #endif // CHROMEOS_DBUS_BLUETOOTH_DEVICE_CLIENT_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698