We currently are a haphazard mix of StringPiece and const uint8_t * pointers. The discussion in issue #559302 went back and forth a bit, but the one clear agreement is that people generally prefer not encouraging binary data in StringPiece, so StringPiece is out.
Passing pointer/length pairs is cumbersome and also invites users to mix up the two, whereas base::span<const uint8_t> is fun, shiny, and can benefit from work such as issue #817982.
Therefore, let's inch things towards base::span<const uint8_t>.
Comment 1 by bugdroid1@chromium.org
, Apr 13 2018