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

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

Issue 2561203002: Migrate weave-related classes from proximity_auth/ble to cryptauth/ble. (Closed)
Patch Set: Rebase. 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_DEFINES_H_ 5 #ifndef COMPONENTS_CRYPTAUTH_BLE_BLUETOOTH_LOW_ENERGY_WEAVE_DEFINES_H_
6 #define COMPONENTS_PROXIMITY_AUTH_BLE_BLUETOOTH_LOW_ENERGY_WEAVE_DEFINES_H_ 6 #define COMPONENTS_CRYPTAUTH_BLE_BLUETOOTH_LOW_ENERGY_WEAVE_DEFINES_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
11 #include <vector> 11 #include <vector>
12 12
13 namespace proximity_auth { 13 namespace cryptauth {
14 namespace weave { 14 namespace weave {
15 15
16 enum PacketType { DATA = 0x00, CONTROL = 0x01 }; 16 enum PacketType { DATA = 0x00, CONTROL = 0x01 };
17 17
18 // Identify the action intended by the control packet. 18 // Identify the action intended by the control packet.
19 enum ControlCommand { 19 enum ControlCommand {
20 CONNECTION_REQUEST = 0x00, 20 CONNECTION_REQUEST = 0x00,
21 CONNECTION_RESPONSE = 0x01, 21 CONNECTION_RESPONSE = 0x01,
22 CONNECTION_CLOSE = 0x02 22 CONNECTION_CLOSE = 0x02
23 }; 23 };
(...skipping 19 matching lines...) Expand all
43 const uint16_t kSelectMaxPacketSize = 0; 43 const uint16_t kSelectMaxPacketSize = 0;
44 const uint8_t kMaxPacketCounter = 8; 44 const uint8_t kMaxPacketCounter = 8;
45 45
46 // Used only for tests. 46 // Used only for tests.
47 const uint8_t kByteDefaultMaxPacketSize = 20; 47 const uint8_t kByteDefaultMaxPacketSize = 20;
48 const uint8_t kByteWeaveVersion = 1; 48 const uint8_t kByteWeaveVersion = 1;
49 const uint8_t kByteSelectMaxPacketSize = 0; 49 const uint8_t kByteSelectMaxPacketSize = 0;
50 const uint8_t kEmptyUpperByte = 0; 50 const uint8_t kEmptyUpperByte = 0;
51 51
52 } // namespace weave 52 } // namespace weave
53 } // namespace proximity_auth 53 } // namespace cryptauth
54 54
55 #endif // COMPONENTS_PROXIMITY_AUTH_BLE_BLUETOOTH_LOW_ENERGY_WEAVE_DEFINES_H_ 55 #endif // COMPONENTS_CRYPTAUTH_BLE_BLUETOOTH_LOW_ENERGY_WEAVE_DEFINES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698