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

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

Issue 1681853003: Add BluetoothRemoteGattServiceWin to BluetoothDeviceWin (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add PlatformSupportsLowEnergy check in the unittests Created 4 years, 10 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
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_DEVICE_H_ 5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_H_
6 #define DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_H_ 6 #define DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 439 matching lines...) Expand 10 before | Expand all | Expand 10 after
450 virtual base::BinaryValue* GetServiceData(BluetoothUUID serviceUUID) const; 450 virtual base::BinaryValue* GetServiceData(BluetoothUUID serviceUUID) const;
451 451
452 // Returns the list UUIDs of services that have service data. 452 // Returns the list UUIDs of services that have service data.
453 virtual UUIDList GetServiceDataUUIDs() const; 453 virtual UUIDList GetServiceDataUUIDs() const;
454 454
455 // Returns the |address| in the canonical format: XX:XX:XX:XX:XX:XX, where 455 // Returns the |address| in the canonical format: XX:XX:XX:XX:XX:XX, where
456 // each 'X' is a hex digit. If the input |address| is invalid, returns an 456 // each 'X' is a hex digit. If the input |address| is invalid, returns an
457 // empty string. 457 // empty string.
458 static std::string CanonicalizeAddress(const std::string& address); 458 static std::string CanonicalizeAddress(const std::string& address);
459 459
460 // Return associated BluetoothAdapter.
461 BluetoothAdapter* GetAdapter() { return adapter_; }
462
460 protected: 463 protected:
461 // BluetoothGattConnection is a friend to call Add/RemoveGattConnection. 464 // BluetoothGattConnection is a friend to call Add/RemoveGattConnection.
462 friend BluetoothGattConnection; 465 friend BluetoothGattConnection;
463 FRIEND_TEST_ALL_PREFIXES( 466 FRIEND_TEST_ALL_PREFIXES(
464 BluetoothTest, 467 BluetoothTest,
465 BluetoothGattConnection_DisconnectGatt_SimulateConnect); 468 BluetoothGattConnection_DisconnectGatt_SimulateConnect);
466 FRIEND_TEST_ALL_PREFIXES( 469 FRIEND_TEST_ALL_PREFIXES(
467 BluetoothTest, 470 BluetoothTest,
468 BluetoothGattConnection_DisconnectGatt_SimulateDisconnect); 471 BluetoothGattConnection_DisconnectGatt_SimulateDisconnect);
469 FRIEND_TEST_ALL_PREFIXES(BluetoothTest, 472 FRIEND_TEST_ALL_PREFIXES(BluetoothTest,
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
536 539
537 private: 540 private:
538 // Returns a localized string containing the device's bluetooth address and 541 // Returns a localized string containing the device's bluetooth address and
539 // a device type for display when |name_| is empty. 542 // a device type for display when |name_| is empty.
540 base::string16 GetAddressWithLocalizedDeviceTypeName() const; 543 base::string16 GetAddressWithLocalizedDeviceTypeName() const;
541 }; 544 };
542 545
543 } // namespace device 546 } // namespace device
544 547
545 #endif // DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_H_ 548 #endif // DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_H_
OLDNEW
« no previous file with comments | « device/bluetooth/bluetooth_adapter_bluez.cc ('k') | device/bluetooth/bluetooth_device_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698