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

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

Issue 681193002: Fix typos in device/bluetooth headers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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 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"
11 #include "base/win/scoped_handle.h" 11 #include "base/win/scoped_handle.h"
12 #include "device/bluetooth/bluetooth_low_energy_defs_win.h" 12 #include "device/bluetooth/bluetooth_low_energy_defs_win.h"
13 13
14 namespace device { 14 namespace device {
15 namespace win { 15 namespace win {
16 16
17 // Represents a device registry property value 17 // Represents a device registry property value
18 class DeviceRegistryPropertyValue { 18 class DeviceRegistryPropertyValue {
19 public: 19 public:
20 // Creates a property value instance, where |property_type| is one of REG_xxx 20 // Creates a property value instance, where |property_type| is one of REG_xxx
21 // registry value type (e.g. REG_SZ, REG_DWORD), |value| is a byte array 21 // registry value type (e.g. REG_SZ, REG_DWORD), |value| is a byte array
22 // containing the propery value and |value_size| is the number of bytes in 22 // containing the property value and |value_size| is the number of bytes in
23 // |value|. Note the returned instance takes ownership of the bytes in 23 // |value|. Note the returned instance takes ownership of the bytes in
24 // |value|. 24 // |value|.
25 static scoped_ptr<DeviceRegistryPropertyValue> Create( 25 static scoped_ptr<DeviceRegistryPropertyValue> Create(
26 DWORD property_type, 26 DWORD property_type,
27 scoped_ptr<uint8_t[]> value, 27 scoped_ptr<uint8_t[]> value,
28 size_t value_size); 28 size_t value_size);
29 ~DeviceRegistryPropertyValue(); 29 ~DeviceRegistryPropertyValue();
30 30
31 // Returns the vaue type a REG_xxx value (e.g. REG_SZ, REG_DWORD, ...) 31 // Returns the vaue type a REG_xxx value (e.g. REG_SZ, REG_DWORD, ...)
32 DWORD property_type() const { return property_type_; } 32 DWORD property_type() const { return property_type_; }
(...skipping 11 matching lines...) Expand all
44 size_t value_size_; 44 size_t value_size_;
45 45
46 DISALLOW_COPY_AND_ASSIGN(DeviceRegistryPropertyValue); 46 DISALLOW_COPY_AND_ASSIGN(DeviceRegistryPropertyValue);
47 }; 47 };
48 48
49 // Represents the value associated to a DEVPROPKEY. 49 // Represents the value associated to a DEVPROPKEY.
50 class DevicePropertyValue { 50 class DevicePropertyValue {
51 public: 51 public:
52 // Creates a property value instance, where |property_type| is one of 52 // Creates a property value instance, where |property_type| is one of
53 // DEVPROP_TYPE_xxx value type , |value| is a byte array containing the 53 // DEVPROP_TYPE_xxx value type , |value| is a byte array containing the
54 // propery value and |value_size| is the number of bytes in |value|. Note the 54 // property value and |value_size| is the number of bytes in |value|. Note the
55 // returned instance takes ownership of the bytes in |value|. 55 // returned instance takes ownership of the bytes in |value|.
56 DevicePropertyValue(DEVPROPTYPE property_type, 56 DevicePropertyValue(DEVPROPTYPE property_type,
57 scoped_ptr<uint8_t[]> value, 57 scoped_ptr<uint8_t[]> value,
58 size_t value_size); 58 size_t value_size);
59 59
60 DEVPROPTYPE property_type() const { return property_type_; } 60 DEVPROPTYPE property_type() const { return property_type_; }
61 61
62 uint32_t AsUint32() const; 62 uint32_t AsUint32() const;
63 63
64 private: 64 private:
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 113
114 bool ExtractBluetoothAddressFromDeviceInstanceIdForTesting( 114 bool ExtractBluetoothAddressFromDeviceInstanceIdForTesting(
115 const std::string& instance_id, 115 const std::string& instance_id,
116 BLUETOOTH_ADDRESS* btha, 116 BLUETOOTH_ADDRESS* btha,
117 std::string* error); 117 std::string* error);
118 118
119 } // namespace win 119 } // namespace win
120 } // namespace device 120 } // namespace device
121 121
122 #endif // DEVICE_BLUETOOTH_BLUETOOTH_LOW_ENERGY_WIN_H_ 122 #endif // DEVICE_BLUETOOTH_BLUETOOTH_LOW_ENERGY_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698