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

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

Issue 1542163002: Switch to standard integer types in device/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: win Created 4 years, 12 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_BLUEZ_H_ 5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_BLUEZ_H_
6 #define DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_BLUEZ_H_ 6 #define DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_BLUEZ_H_
7 7
8 #include <stdint.h>
9
8 #include <map> 10 #include <map>
9 #include <queue> 11 #include <queue>
10 #include <string> 12 #include <string>
11 #include <utility> 13 #include <utility>
12 #include <vector> 14 #include <vector>
13 15
14 #include "base/macros.h" 16 #include "base/macros.h"
15 #include "base/memory/weak_ptr.h" 17 #include "base/memory/weak_ptr.h"
16 #include "dbus/object_path.h" 18 #include "dbus/object_path.h"
17 #include "device/bluetooth/bluetooth_adapter.h" 19 #include "device/bluetooth/bluetooth_adapter.h"
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 void NotifyGattCharacteristicAdded( 135 void NotifyGattCharacteristicAdded(
134 BluetoothRemoteGattCharacteristicBlueZ* characteristic); 136 BluetoothRemoteGattCharacteristicBlueZ* characteristic);
135 void NotifyGattCharacteristicRemoved( 137 void NotifyGattCharacteristicRemoved(
136 BluetoothRemoteGattCharacteristicBlueZ* characteristic); 138 BluetoothRemoteGattCharacteristicBlueZ* characteristic);
137 void NotifyGattDescriptorAdded( 139 void NotifyGattDescriptorAdded(
138 BluetoothRemoteGattDescriptorBlueZ* descriptor); 140 BluetoothRemoteGattDescriptorBlueZ* descriptor);
139 void NotifyGattDescriptorRemoved( 141 void NotifyGattDescriptorRemoved(
140 BluetoothRemoteGattDescriptorBlueZ* descriptor); 142 BluetoothRemoteGattDescriptorBlueZ* descriptor);
141 void NotifyGattCharacteristicValueChanged( 143 void NotifyGattCharacteristicValueChanged(
142 BluetoothRemoteGattCharacteristicBlueZ* characteristic, 144 BluetoothRemoteGattCharacteristicBlueZ* characteristic,
143 const std::vector<uint8>& value); 145 const std::vector<uint8_t>& value);
144 void NotifyGattDescriptorValueChanged( 146 void NotifyGattDescriptorValueChanged(
145 BluetoothRemoteGattDescriptorBlueZ* descriptor, 147 BluetoothRemoteGattDescriptorBlueZ* descriptor,
146 const std::vector<uint8>& value); 148 const std::vector<uint8_t>& value);
147 149
148 // Returns the object path of the adapter. 150 // Returns the object path of the adapter.
149 const dbus::ObjectPath& object_path() const { return object_path_; } 151 const dbus::ObjectPath& object_path() const { return object_path_; }
150 152
151 // Request a profile on the adapter for a custom service with a 153 // Request a profile on the adapter for a custom service with a
152 // specific UUID for the device at |device_path| to be sent to |delegate|. 154 // specific UUID for the device at |device_path| to be sent to |delegate|.
153 // If |device_path| is the empty string, incoming connections will be 155 // If |device_path| is the empty string, incoming connections will be
154 // assigned to |delegate|. When the profile is 156 // assigned to |delegate|. When the profile is
155 // successfully registered, |success_callback| will be called with a pointer 157 // successfully registered, |success_callback| will be called with a pointer
156 // to the profile which is managed by BluetoothAdapterBlueZ. On failure, 158 // to the profile which is managed by BluetoothAdapterBlueZ. On failure,
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 214
213 // bluez::BluetoothAgentServiceProvider::Delegate override. 215 // bluez::BluetoothAgentServiceProvider::Delegate override.
214 void Released() override; 216 void Released() override;
215 void RequestPinCode(const dbus::ObjectPath& device_path, 217 void RequestPinCode(const dbus::ObjectPath& device_path,
216 const PinCodeCallback& callback) override; 218 const PinCodeCallback& callback) override;
217 void DisplayPinCode(const dbus::ObjectPath& device_path, 219 void DisplayPinCode(const dbus::ObjectPath& device_path,
218 const std::string& pincode) override; 220 const std::string& pincode) override;
219 void RequestPasskey(const dbus::ObjectPath& device_path, 221 void RequestPasskey(const dbus::ObjectPath& device_path,
220 const PasskeyCallback& callback) override; 222 const PasskeyCallback& callback) override;
221 void DisplayPasskey(const dbus::ObjectPath& device_path, 223 void DisplayPasskey(const dbus::ObjectPath& device_path,
222 uint32 passkey, 224 uint32_t passkey,
223 uint16 entered) override; 225 uint16_t entered) override;
224 void RequestConfirmation(const dbus::ObjectPath& device_path, 226 void RequestConfirmation(const dbus::ObjectPath& device_path,
225 uint32 passkey, 227 uint32_t passkey,
226 const ConfirmationCallback& callback) override; 228 const ConfirmationCallback& callback) override;
227 void RequestAuthorization(const dbus::ObjectPath& device_path, 229 void RequestAuthorization(const dbus::ObjectPath& device_path,
228 const ConfirmationCallback& callback) override; 230 const ConfirmationCallback& callback) override;
229 void AuthorizeService(const dbus::ObjectPath& device_path, 231 void AuthorizeService(const dbus::ObjectPath& device_path,
230 const std::string& uuid, 232 const std::string& uuid,
231 const ConfirmationCallback& callback) override; 233 const ConfirmationCallback& callback) override;
232 void Cancel() override; 234 void Cancel() override;
233 235
234 // Called by dbus:: on completion of the D-Bus method call to register the 236 // Called by dbus:: on completion of the D-Bus method call to register the
235 // pairing agent. 237 // pairing agent.
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
396 // Note: This should remain the last member so it'll be destroyed and 398 // Note: This should remain the last member so it'll be destroyed and
397 // invalidate its weak pointers before any other members are destroyed. 399 // invalidate its weak pointers before any other members are destroyed.
398 base::WeakPtrFactory<BluetoothAdapterBlueZ> weak_ptr_factory_; 400 base::WeakPtrFactory<BluetoothAdapterBlueZ> weak_ptr_factory_;
399 401
400 DISALLOW_COPY_AND_ASSIGN(BluetoothAdapterBlueZ); 402 DISALLOW_COPY_AND_ASSIGN(BluetoothAdapterBlueZ);
401 }; 403 };
402 404
403 } // namespace bluez 405 } // namespace bluez
404 406
405 #endif // DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_BLUEZ_H_ 407 #endif // DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_BLUEZ_H_
OLDNEW
« no previous file with comments | « device/bluetooth/bluetooth_adapter_android.h ('k') | device/bluetooth/bluetooth_adapter_bluez.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698