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

Side by Side Diff: device/bluetooth/bluez/bluetooth_service_attribute_value_bluez.h

Issue 2287023002: device/bluetooth: Fix = operator and copy constructor of BluetoothServiceAttributeValueBlueZ (Closed)
Patch Set: change bug number Created 4 years, 3 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
« no previous file with comments | « no previous file | device/bluetooth/bluez/bluetooth_service_attribute_value_bluez.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_BLUEZ_BLUETOOTH_SERVICE_ATTRIBUTE_VALUE_BLUEZ_H_ 5 #ifndef DEVICE_BLUETOOTH_BLUEZ_BLUETOOTH_SERVICE_ATTRIBUTE_VALUE_BLUEZ_H_
6 #define DEVICE_BLUETOOTH_BLUEZ_BLUETOOTH_SERVICE_ATTRIBUTE_VALUE_BLUEZ_H_ 6 #define DEVICE_BLUETOOTH_BLUEZ_BLUETOOTH_SERVICE_ATTRIBUTE_VALUE_BLUEZ_H_
7 7
8 #include <cstddef> 8 #include <cstddef>
9 #include <memory> 9 #include <memory>
10 #include <vector> 10 #include <vector>
(...skipping 20 matching lines...) Expand all
31 using Sequence = std::vector<BluetoothServiceAttributeValueBlueZ>; 31 using Sequence = std::vector<BluetoothServiceAttributeValueBlueZ>;
32 32
33 BluetoothServiceAttributeValueBlueZ(); 33 BluetoothServiceAttributeValueBlueZ();
34 BluetoothServiceAttributeValueBlueZ(Type type, 34 BluetoothServiceAttributeValueBlueZ(Type type,
35 size_t size, 35 size_t size,
36 std::unique_ptr<base::Value> value); 36 std::unique_ptr<base::Value> value);
37 explicit BluetoothServiceAttributeValueBlueZ( 37 explicit BluetoothServiceAttributeValueBlueZ(
38 std::unique_ptr<Sequence> sequence); 38 std::unique_ptr<Sequence> sequence);
39 BluetoothServiceAttributeValueBlueZ( 39 BluetoothServiceAttributeValueBlueZ(
40 const BluetoothServiceAttributeValueBlueZ& attribute); 40 const BluetoothServiceAttributeValueBlueZ& attribute);
41 BluetoothServiceAttributeValueBlueZ operator=( 41 BluetoothServiceAttributeValueBlueZ& operator=(
42 const BluetoothServiceAttributeValueBlueZ& attribute); 42 const BluetoothServiceAttributeValueBlueZ& attribute);
43 ~BluetoothServiceAttributeValueBlueZ(); 43 ~BluetoothServiceAttributeValueBlueZ();
44 44
45 Type type() const { return type_; } 45 Type type() const { return type_; }
46 size_t size() const { return size_; } 46 size_t size() const { return size_; }
47 const Sequence& sequence() const { return *sequence_.get(); } 47 const Sequence& sequence() const { return *sequence_.get(); }
48 const base::Value& value() const { return *value_.get(); } 48 const base::Value& value() const { return *value_.get(); }
49 49
50 private: 50 private:
51 Type type_; 51 Type type_;
52 size_t size_; 52 size_t size_;
53 std::unique_ptr<base::Value> value_; 53 std::unique_ptr<base::Value> value_;
54 std::unique_ptr<Sequence> sequence_; 54 std::unique_ptr<Sequence> sequence_;
55 }; 55 };
56 56
57 } // namespace bluez 57 } // namespace bluez
58 58
59 #endif // DEVICE_BLUETOOTH_BLUEZ_BLUETOOTH_SERVICE_ATTRIBUTE_VALUE_BLUEZ_H_ 59 #endif // DEVICE_BLUETOOTH_BLUEZ_BLUETOOTH_SERVICE_ATTRIBUTE_VALUE_BLUEZ_H_
OLDNEW
« no previous file with comments | « no previous file | device/bluetooth/bluez/bluetooth_service_attribute_value_bluez.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698