#include "chrome/browser/profiles/profile_avatar_downloader.h"
#include <memory>
#include <string>
#include "base/files/file_path.h"
#include "base/functional/callback.h"
#include "chrome/browser/browser_process.h"
#include "chrome/browser/net/system_network_context_manager.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/profiles/profile_avatar_icon_util.h"
#include "net/base/load_flags.h"
#include "net/traffic_annotation/network_traffic_annotation.h"
#include "net/url_request/referrer_policy.h"
#include "ui/gfx/image/image.h"
namespace {
const char kHighResAvatarDownloadUrlPrefix[] = …;
}
ProfileAvatarDownloader::ProfileAvatarDownloader(size_t icon_index,
FetchCompleteCallback callback)
: … { … }
ProfileAvatarDownloader::~ProfileAvatarDownloader() = default;
void ProfileAvatarDownloader::Start() { … }
void ProfileAvatarDownloader::OnFetchComplete(const GURL& url,
const SkBitmap* bitmap) { … }