
Separating out ptr/data pairs is both less safe and less ergnomic. If we keep values in paired up view types as much as possible, there's less risk of lengths and data getting mixed up. This also avoids needing separate overloads for all variations on string. string_view (or optional<u16string_view> for FromUTF16) is a sink type that can accept all variations. Change-Id: I36c44b3f6052a62369ee351492dac7e542ec06ef Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4892056 Reviewed-by: Philip Rogers <pdr@chromium.org> Owners-Override: Daniel Cheng <dcheng@chromium.org> Reviewed-by: Daniel Cheng <dcheng@chromium.org> Commit-Queue: David Benjamin <davidben@chromium.org> Code-Coverage: findit-for-me@appspot.gserviceaccount.com <findit-for-me@appspot.gserviceaccount.com> Cr-Commit-Position: refs/heads/main@{#1206605}
//pdf
contains the PDF plugin, its Blink-based replacement, as well as PDF
utility functions that leverage PDFium. It can use low-level components that
live below the content layer, as well as other foundational code like
//printing
. It should not use //content
or anything in //components
that
lives above the content layer. Code that lives above the content layer should
live in //components/pdf
, or in the embedder. All the code here should run in
sandboxed child processes.
TODO(crbug.com/1220865): Remove existing //content
dependencies.