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

Side by Side Diff: chrome/browser/chromeos/bluetooth/bluetooth_device.h

Issue 10816023: Ensure canonical Bluetooth UUIDs are used. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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
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 CHROME_BROWSER_CHROMEOS_BLUETOOTH_BLUETOOTH_DEVICE_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_BLUETOOTH_BLUETOOTH_DEVICE_H_
6 #define CHROME_BROWSER_CHROMEOS_BLUETOOTH_BLUETOOTH_DEVICE_H_ 6 #define CHROME_BROWSER_CHROMEOS_BLUETOOTH_BLUETOOTH_DEVICE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 // is called, in the success case the callback is simply not called. 185 // is called, in the success case the callback is simply not called.
186 typedef base::Callback<void()> ErrorCallback; 186 typedef base::Callback<void()> ErrorCallback;
187 187
188 // Returns the services (as BluetoothServiceRecord objects) that this device 188 // Returns the services (as BluetoothServiceRecord objects) that this device
189 // provides. 189 // provides.
190 typedef ScopedVector<BluetoothServiceRecord> ServiceRecordList; 190 typedef ScopedVector<BluetoothServiceRecord> ServiceRecordList;
191 typedef base::Callback<void(const ServiceRecordList&)> ServiceRecordsCallback; 191 typedef base::Callback<void(const ServiceRecordList&)> ServiceRecordsCallback;
192 void GetServiceRecords(const ServiceRecordsCallback& callback, 192 void GetServiceRecords(const ServiceRecordsCallback& callback,
193 const ErrorCallback& error_callback); 193 const ErrorCallback& error_callback);
194 194
195 // Indicates whether this device provides the given service. 195 // Indicates whether this device provides the given service. |uuid| should
196 // be in canonical form (see bluetooth_utils::CanonicalUuid).
196 virtual bool ProvidesServiceWithUUID(const std::string& uuid) const; 197 virtual bool ProvidesServiceWithUUID(const std::string& uuid) const;
197 198
198 // The ProvidesServiceCallback is used by ProvidesServiceWithName to indicate 199 // The ProvidesServiceCallback is used by ProvidesServiceWithName to indicate
199 // whether or not a matching service was found. 200 // whether or not a matching service was found.
200 typedef base::Callback<void(bool)> ProvidesServiceCallback; 201 typedef base::Callback<void(bool)> ProvidesServiceCallback;
201 202
202 // Indicates whether this device provides the given service. 203 // Indicates whether this device provides the given service.
203 void ProvidesServiceWithName(const std::string& name, 204 void ProvidesServiceWithName(const std::string& name,
204 const ProvidesServiceCallback& callback); 205 const ProvidesServiceCallback& callback);
205 206
(...skipping 398 matching lines...) Expand 10 before | Expand all | Expand 10 after
604 605
605 // Used to keep track of pending application connection requests. 606 // Used to keep track of pending application connection requests.
606 int connecting_applications_counter_; 607 int connecting_applications_counter_;
607 608
608 DISALLOW_COPY_AND_ASSIGN(BluetoothDevice); 609 DISALLOW_COPY_AND_ASSIGN(BluetoothDevice);
609 }; 610 };
610 611
611 } // namespace chromeos 612 } // namespace chromeos
612 613
613 #endif // CHROME_BROWSER_CHROMEOS_BLUETOOTH_BLUETOOTH_DEVICE_H_ 614 #endif // CHROME_BROWSER_CHROMEOS_BLUETOOTH_BLUETOOTH_DEVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698