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

Side by Side Diff: components/proximity_auth/ble/bluetooth_low_energy_connection.h

Issue 1728033002: components: Add out-of-line copy ctors for complex classes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 COMPONENTS_PROXIMITY_AUTH_BLE_BLUETOOTH_LOW_ENERGY_CONNECTION_H_ 5 #ifndef COMPONENTS_PROXIMITY_AUTH_BLE_BLUETOOTH_LOW_ENERGY_CONNECTION_H_
6 #define COMPONENTS_PROXIMITY_AUTH_BLE_BLUETOOTH_LOW_ENERGY_CONNECTION_H_ 6 #define COMPONENTS_PROXIMITY_AUTH_BLE_BLUETOOTH_LOW_ENERGY_CONNECTION_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 131
132 private: 132 private:
133 // Represents a request to write |value| to a some characteristic. 133 // Represents a request to write |value| to a some characteristic.
134 // |is_last_write_for_wire_messsage| indicates whether this request 134 // |is_last_write_for_wire_messsage| indicates whether this request
135 // corresponds to the last write request for some wire message. 135 // corresponds to the last write request for some wire message.
136 // A WireMessage corresponds to exactly two WriteRequest: the first containing 136 // A WireMessage corresponds to exactly two WriteRequest: the first containing
137 // a kSendSignal + the size of the WireMessage, and the second containing a 137 // a kSendSignal + the size of the WireMessage, and the second containing a
138 // SendStatusSignal + the serialized WireMessage. 138 // SendStatusSignal + the serialized WireMessage.
139 struct WriteRequest { 139 struct WriteRequest {
140 WriteRequest(const std::vector<uint8_t>& val, bool flag); 140 WriteRequest(const std::vector<uint8_t>& val, bool flag);
141 WriteRequest(const WriteRequest& other);
141 ~WriteRequest(); 142 ~WriteRequest();
142 143
143 std::vector<uint8_t> value; 144 std::vector<uint8_t> value;
144 bool is_last_write_for_wire_message; 145 bool is_last_write_for_wire_message;
145 int number_of_failed_attempts; 146 int number_of_failed_attempts;
146 }; 147 };
147 148
148 // Creates the GATT connection with |remote_device|. 149 // Creates the GATT connection with |remote_device|.
149 void CreateGattConnection(); 150 void CreateGattConnection();
150 151
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
303 base::TimeTicks start_time_; 304 base::TimeTicks start_time_;
304 305
305 base::WeakPtrFactory<BluetoothLowEnergyConnection> weak_ptr_factory_; 306 base::WeakPtrFactory<BluetoothLowEnergyConnection> weak_ptr_factory_;
306 307
307 DISALLOW_COPY_AND_ASSIGN(BluetoothLowEnergyConnection); 308 DISALLOW_COPY_AND_ASSIGN(BluetoothLowEnergyConnection);
308 }; 309 };
309 310
310 } // namespace proximity_auth 311 } // namespace proximity_auth
311 312
312 #endif // COMPONENTS_PROXIMITY_AUTH_BLE_BLUETOOTH_LOW_ENERGY_CONNECTION_H_ 313 #endif // COMPONENTS_PROXIMITY_AUTH_BLE_BLUETOOTH_LOW_ENERGY_CONNECTION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698