| OLD | NEW |
| 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_LOW_ENERGY_WIN_H_ | 5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_LOW_ENERGY_WIN_H_ |
| 6 #define DEVICE_BLUETOOTH_BLUETOOTH_LOW_ENERGY_WIN_H_ | 6 #define DEVICE_BLUETOOTH_BLUETOOTH_LOW_ENERGY_WIN_H_ |
| 7 | 7 |
| 8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "base/memory/scoped_vector.h" | 10 #include "base/memory/scoped_vector.h" |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 // Represents the value associated to a DEVPROPKEY. | 50 // Represents the value associated to a DEVPROPKEY. |
| 51 class DEVICE_BLUETOOTH_EXPORT DevicePropertyValue { | 51 class DEVICE_BLUETOOTH_EXPORT DevicePropertyValue { |
| 52 public: | 52 public: |
| 53 // Creates a property value instance, where |property_type| is one of | 53 // Creates a property value instance, where |property_type| is one of |
| 54 // DEVPROP_TYPE_xxx value type , |value| is a byte array containing the | 54 // DEVPROP_TYPE_xxx value type , |value| is a byte array containing the |
| 55 // property value and |value_size| is the number of bytes in |value|. Note the | 55 // property value and |value_size| is the number of bytes in |value|. Note the |
| 56 // returned instance takes ownership of the bytes in |value|. | 56 // returned instance takes ownership of the bytes in |value|. |
| 57 DevicePropertyValue(DEVPROPTYPE property_type, | 57 DevicePropertyValue(DEVPROPTYPE property_type, |
| 58 scoped_ptr<uint8_t[]> value, | 58 scoped_ptr<uint8_t[]> value, |
| 59 size_t value_size); | 59 size_t value_size); |
| 60 ~DevicePropertyValue(); |
| 60 | 61 |
| 61 DEVPROPTYPE property_type() const { return property_type_; } | 62 DEVPROPTYPE property_type() const { return property_type_; } |
| 62 | 63 |
| 63 uint32_t AsUint32() const; | 64 uint32_t AsUint32() const; |
| 64 | 65 |
| 65 private: | 66 private: |
| 66 DEVPROPTYPE property_type_; | 67 DEVPROPTYPE property_type_; |
| 67 scoped_ptr<uint8_t[]> value_; | 68 scoped_ptr<uint8_t[]> value_; |
| 68 size_t value_size_; | 69 size_t value_size_; |
| 69 | 70 |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 bool DEVICE_BLUETOOTH_EXPORT | 116 bool DEVICE_BLUETOOTH_EXPORT |
| 116 ExtractBluetoothAddressFromDeviceInstanceIdForTesting( | 117 ExtractBluetoothAddressFromDeviceInstanceIdForTesting( |
| 117 const std::string& instance_id, | 118 const std::string& instance_id, |
| 118 BLUETOOTH_ADDRESS* btha, | 119 BLUETOOTH_ADDRESS* btha, |
| 119 std::string* error); | 120 std::string* error); |
| 120 | 121 |
| 121 } // namespace win | 122 } // namespace win |
| 122 } // namespace device | 123 } // namespace device |
| 123 | 124 |
| 124 #endif // DEVICE_BLUETOOTH_BLUETOOTH_LOW_ENERGY_WIN_H_ | 125 #endif // DEVICE_BLUETOOTH_BLUETOOTH_LOW_ENERGY_WIN_H_ |
| OLD | NEW |