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

Side by Side Diff: device/bluetooth/bluetooth_adapter.h

Issue 681193002: Fix typos in device/bluetooth headers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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 (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 DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_H_ 5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_H_
6 #define DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_H_ 6 #define DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_H_
7 7
8 #include <list> 8 #include <list>
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 // will be called. On failure, |error_callback| will be called. 223 // will be called. On failure, |error_callback| will be called.
224 virtual void SetPowered(bool powered, 224 virtual void SetPowered(bool powered,
225 const base::Closure& callback, 225 const base::Closure& callback,
226 const ErrorCallback& error_callback) = 0; 226 const ErrorCallback& error_callback) = 0;
227 227
228 // Indicates whether the adapter radio is discoverable. 228 // Indicates whether the adapter radio is discoverable.
229 virtual bool IsDiscoverable() const = 0; 229 virtual bool IsDiscoverable() const = 0;
230 230
231 // Requests that the adapter change its discoverability state. If 231 // Requests that the adapter change its discoverability state. If
232 // |discoverable| is true, then it will be discoverable by other Bluetooth 232 // |discoverable| is true, then it will be discoverable by other Bluetooth
233 // devices. On successly changing the adapter's discoverability, |callback| 233 // devices. On successfully changing the adapter's discoverability, |callback|
234 // will be called. On failure, |error_callback| will be called. 234 // will be called. On failure, |error_callback| will be called.
235 virtual void SetDiscoverable(bool discoverable, 235 virtual void SetDiscoverable(bool discoverable,
236 const base::Closure& callback, 236 const base::Closure& callback,
237 const ErrorCallback& error_callback) = 0; 237 const ErrorCallback& error_callback) = 0;
238 238
239 // Indicates whether the adapter is currently discovering new devices. 239 // Indicates whether the adapter is currently discovering new devices.
240 virtual bool IsDiscovering() const = 0; 240 virtual bool IsDiscovering() const = 0;
241 241
242 // Requests the adapter to start a new discovery session. On success, a new 242 // Requests the adapter to start a new discovery session. On success, a new
243 // instance of BluetoothDiscoverySession will be returned to the caller via 243 // instance of BluetoothDiscoverySession will be returned to the caller via
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
414 std::set<BluetoothDiscoverySession*> discovery_sessions_; 414 std::set<BluetoothDiscoverySession*> discovery_sessions_;
415 415
416 // Note: This should remain the last member so it'll be destroyed and 416 // Note: This should remain the last member so it'll be destroyed and
417 // invalidate its weak pointers before any other members are destroyed. 417 // invalidate its weak pointers before any other members are destroyed.
418 base::WeakPtrFactory<BluetoothAdapter> weak_ptr_factory_; 418 base::WeakPtrFactory<BluetoothAdapter> weak_ptr_factory_;
419 }; 419 };
420 420
421 } // namespace device 421 } // namespace device
422 422
423 #endif // DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_H_ 423 #endif // DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_H_
OLDNEW
« no previous file with comments | « no previous file | device/bluetooth/bluetooth_gatt_characteristic.h » ('j') | device/bluetooth/bluetooth_gatt_service.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698