There are two very similar types named ImageDataFetcherCallback defined in components/image_fetcher/core:
ImageFetcher::ImageDataFetcherCallback
ImageDataFetcher::ImageDataFetcherCallback
They are both callback of type void(const std::string& image_data, const RequestMetadata& request_metadata), but one is a repeating callback while the other is a once callback.
Since they are both only invoked once, they should probably be merged and ImageDataFetcher fixed to receive the callback by value instead of const reference.
Comment 1 by bugdroid1@chromium.org
, Jun 6 2018