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

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

Issue 256413003: chrome.bluetoothLowEnergy: Implement getService and getServices. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 6 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_REMOTE_GATT_SERVICE_CHROMEOS_H_ 5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_REMOTE_GATT_SERVICE_CHROMEOS_H_
6 #define DEVICE_BLUETOOTH_BLUETOOTH_REMOTE_GATT_SERVICE_CHROMEOS_H_ 6 #define DEVICE_BLUETOOTH_BLUETOOTH_REMOTE_GATT_SERVICE_CHROMEOS_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 26 matching lines...) Expand all
37 public: 37 public:
38 // device::BluetoothGattService overrides. 38 // device::BluetoothGattService overrides.
39 virtual void AddObserver( 39 virtual void AddObserver(
40 device::BluetoothGattService::Observer* observer) OVERRIDE; 40 device::BluetoothGattService::Observer* observer) OVERRIDE;
41 virtual void RemoveObserver( 41 virtual void RemoveObserver(
42 device::BluetoothGattService::Observer* observer) OVERRIDE; 42 device::BluetoothGattService::Observer* observer) OVERRIDE;
43 virtual std::string GetIdentifier() const OVERRIDE; 43 virtual std::string GetIdentifier() const OVERRIDE;
44 virtual device::BluetoothUUID GetUUID() const OVERRIDE; 44 virtual device::BluetoothUUID GetUUID() const OVERRIDE;
45 virtual bool IsLocal() const OVERRIDE; 45 virtual bool IsLocal() const OVERRIDE;
46 virtual bool IsPrimary() const OVERRIDE; 46 virtual bool IsPrimary() const OVERRIDE;
47 virtual device::BluetoothDevice* GetDevice() const OVERRIDE;
47 virtual std::vector<device::BluetoothGattCharacteristic*> 48 virtual std::vector<device::BluetoothGattCharacteristic*>
48 GetCharacteristics() const OVERRIDE; 49 GetCharacteristics() const OVERRIDE;
49 virtual std::vector<device::BluetoothGattService*> 50 virtual std::vector<device::BluetoothGattService*>
50 GetIncludedServices() const OVERRIDE; 51 GetIncludedServices() const OVERRIDE;
51 virtual device::BluetoothGattCharacteristic* GetCharacteristic( 52 virtual device::BluetoothGattCharacteristic* GetCharacteristic(
52 const std::string& identifier) OVERRIDE; 53 const std::string& identifier) const OVERRIDE;
53 virtual bool AddCharacteristic( 54 virtual bool AddCharacteristic(
54 device::BluetoothGattCharacteristic* characteristic) OVERRIDE; 55 device::BluetoothGattCharacteristic* characteristic) OVERRIDE;
55 virtual bool AddIncludedService( 56 virtual bool AddIncludedService(
56 device::BluetoothGattService* service) OVERRIDE; 57 device::BluetoothGattService* service) OVERRIDE;
57 virtual void Register(const base::Closure& callback, 58 virtual void Register(const base::Closure& callback,
58 const ErrorCallback& error_callback) OVERRIDE; 59 const ErrorCallback& error_callback) OVERRIDE;
59 virtual void Unregister(const base::Closure& callback, 60 virtual void Unregister(const base::Closure& callback,
60 const ErrorCallback& error_callback) OVERRIDE; 61 const ErrorCallback& error_callback) OVERRIDE;
61 62
62 // Object path of the underlying service. 63 // Object path of the underlying service.
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 // Note: This should remain the last member so it'll be destroyed and 109 // Note: This should remain the last member so it'll be destroyed and
109 // invalidate its weak pointers before any other members are destroyed. 110 // invalidate its weak pointers before any other members are destroyed.
110 base::WeakPtrFactory<BluetoothRemoteGattServiceChromeOS> weak_ptr_factory_; 111 base::WeakPtrFactory<BluetoothRemoteGattServiceChromeOS> weak_ptr_factory_;
111 112
112 DISALLOW_COPY_AND_ASSIGN(BluetoothRemoteGattServiceChromeOS); 113 DISALLOW_COPY_AND_ASSIGN(BluetoothRemoteGattServiceChromeOS);
113 }; 114 };
114 115
115 } // namespace chromeos 116 } // namespace chromeos
116 117
117 #endif // DEVICE_BLUETOOTH_BLUETOOTH_REMOTE_GATT_SERVICE_CHROMEOS_H_ 118 #endif // DEVICE_BLUETOOTH_BLUETOOTH_REMOTE_GATT_SERVICE_CHROMEOS_H_
OLDNEW
« no previous file with comments | « device/bluetooth/bluetooth_gatt_service.h ('k') | device/bluetooth/bluetooth_remote_gatt_service_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698