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

Side by Side Diff: components/cryptauth/ble/bluetooth_low_energy_weave_packet_generator.h

Issue 2561203002: Migrate weave-related classes from proximity_auth/ble to cryptauth/ble. (Closed)
Patch Set: Created 4 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 unified diff | Download patch
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 COMPONENTS_PROXIMITY_AUTH_BLE_BLUETOOTH_LOW_ENERGY_WEAVE_PACKET_GENERATO R_H_ 5 #ifndef COMPONENTS_CRYPTAUTH_BLE_BLUETOOTH_LOW_ENERGY_WEAVE_PACKET_GENERATOR_H_
6 #define COMPONENTS_PROXIMITY_AUTH_BLE_BLUETOOTH_LOW_ENERGY_WEAVE_PACKET_GENERATO R_H_ 6 #define COMPONENTS_CRYPTAUTH_BLE_BLUETOOTH_LOW_ENERGY_WEAVE_PACKET_GENERATOR_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
11 #include <memory> 11 #include <memory>
12 #include <string> 12 #include <string>
13 #include <vector> 13 #include <vector>
14 14
15 #include "components/proximity_auth/ble/bluetooth_low_energy_weave_defines.h" 15 #include "components/cryptauth/ble/bluetooth_low_energy_weave_defines.h"
16 #include "build/build_config.h" 16 #include "build/build_config.h"
17 17
18 namespace proximity_auth { 18 namespace cryptauth {
19 namespace weave { 19 namespace weave {
20 20
21 // Generates the messages sent using the uWeave protocol. 21 // Generates the messages sent using the uWeave protocol.
22 class BluetoothLowEnergyWeavePacketGenerator { 22 class BluetoothLowEnergyWeavePacketGenerator {
23 public: 23 public:
24 class Factory { 24 class Factory {
25 public: 25 public:
26 static std::unique_ptr<BluetoothLowEnergyWeavePacketGenerator> 26 static std::unique_ptr<BluetoothLowEnergyWeavePacketGenerator>
27 NewInstance(); 27 NewInstance();
28 28
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 // The default max packet length is 20 unless SetDataPacketLength() is called 62 // The default max packet length is 20 unless SetDataPacketLength() is called
63 // and specified otherwise. 63 // and specified otherwise.
64 uint16_t max_packet_size_; 64 uint16_t max_packet_size_;
65 65
66 // Counter for the number of packets sent, starting at 0. 66 // Counter for the number of packets sent, starting at 0.
67 uint8_t next_packet_counter_; 67 uint8_t next_packet_counter_;
68 }; 68 };
69 69
70 } // namespace weave 70 } // namespace weave
71 71
72 } // namespace proximity_auth 72 } // namespace cryptauth
73 73
74 #endif // COMPONENTS_PROXIMITY_AUTH_BLE_BLUETOOTH_LOW_ENERGY_WEAVE_PACKET_GENER ATOR_H_ 74 #endif // COMPONENTS_CRYPTAUTH_BLE_BLUETOOTH_LOW_ENERGY_WEAVE_PACKET_GENERATOR_ H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698