• Jun Choi's avatar
    Consolidate shared device constants · ed572c2b
    Jun Choi authored
    Clean up {Hid, Ble}Device by consolidating shared constructs and
    rename constants with prefix U2f to have prefix Fido. More specifically,
     1) Consolidate HidDevice::State / BleDevice::State into U2fDevice
        interface.
     2) Rename BLE constants (e.g. service id) to have fido as prefix.
     3) Move U2fDevice::ProtocolVersion to fido_constants.h
     4) Delete u2f_command_type.h file. This contents in this file is
        neither U2F nor correct. U2fCommandType enum currently mixes
        HID command type and BLE command types. Remove the file and
        add separate command type enums in fido_constants.h
    
    Bug: 821215
    Change-Id: I45bce9323ac95d83c31e7b90a2548b745d9e00b2
    Reviewed-on: https://chromium-review.googlesource.com/961618
    Commit-Queue: Jun Choi <hongjunchoi@chromium.org>
    Reviewed-by: default avatarJan Wilken Dörrie <jdoerrie@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#543400}
    ed572c2b
fido_hid_packet.cc 5.18 KB