
Since Result is an enum and not an enum class, it is very easy to mix up this enum and ints. To prepare for making Result an enum class, start using it in some callbacks. This forces the compiler to be stricter about type checking. Then use Result in more places to fix the compile errors. For url_loader_unittest.cc in particular, split the existing mock callback variable into two separate variables for open and read operations. Change-Id: I1c830fd88aba39542fa60508d9e1c26ed1744e5c Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6216483 Reviewed-by: Andy Phan <andyphan@chromium.org> Commit-Queue: Lei Zhang <thestig@chromium.org> Cr-Commit-Position: refs/heads/main@{#1413268}
//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/40186598): Remove existing //content
dependencies.