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

Unified Diff: device/bluetooth/bluetooth_gatt_service.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 5 years 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 side-by-side diff with in-line comments
Download patch
Index: device/bluetooth/bluetooth_gatt_service.h
diff --git a/device/bluetooth/bluetooth_gatt_service.h b/device/bluetooth/bluetooth_gatt_service.h
index 35ec16de056bd2e2ac52688683d1159d9103e1e5..fe4bf1c5dd0fdc30fa49c3f04fd64bfc862cb48d 100644
--- a/device/bluetooth/bluetooth_gatt_service.h
+++ b/device/bluetooth/bluetooth_gatt_service.h
@@ -5,10 +5,12 @@
#ifndef DEVICE_BLUETOOTH_BLUETOOTH_GATT_SERVICE_H_
#define DEVICE_BLUETOOTH_BLUETOOTH_GATT_SERVICE_H_
+#include <stdint.h>
+
#include <vector>
-#include "base/basictypes.h"
#include "base/callback.h"
+#include "base/macros.h"
#include "device/bluetooth/bluetooth_export.h"
#include "device/bluetooth/bluetooth_uuid.h"
@@ -40,7 +42,7 @@ class DEVICE_BLUETOOTH_EXPORT BluetoothGattService {
class Delegate {
public:
// Callbacks used for communicating GATT request responses.
- typedef base::Callback<void(const std::vector<uint8>)> ValueCallback;
+ typedef base::Callback<void(const std::vector<uint8_t>)> ValueCallback;
typedef base::Closure ErrorCallback;
// Called when a remote device in the central role requests to read the
@@ -79,7 +81,7 @@ class DEVICE_BLUETOOTH_EXPORT BluetoothGattService {
virtual void OnCharacteristicWriteRequest(
const BluetoothGattService* service,
const BluetoothGattCharacteristic* characteristic,
- const std::vector<uint8>& value,
+ const std::vector<uint8_t>& value,
int offset,
const ValueCallback& callback,
const ErrorCallback& error_callback) = 0;
@@ -120,7 +122,7 @@ class DEVICE_BLUETOOTH_EXPORT BluetoothGattService {
virtual void OnDescriptorWriteRequest(
const BluetoothGattService* service,
const BluetoothGattDescriptor* descriptor,
- const std::vector<uint8>& value,
+ const std::vector<uint8_t>& value,
int offset,
const ValueCallback& callback,
const ErrorCallback& error_callback) = 0;
« no previous file with comments | « device/bluetooth/bluetooth_gatt_notify_session.h ('k') | device/bluetooth/bluetooth_gatt_service_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698