#include "chrome/browser/extensions/updater/chrome_extension_downloader_factory.h"
#include <string>
#include <utility>
#include "base/command_line.h"
#include "build/branding_buildflags.h"
#include "chrome/browser/extensions/updater/extension_updater_switches.h"
#include "chrome/browser/google/google_brand.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/signin/identity_manager_factory.h"
#include "components/crx_file/crx_verifier.h"
#include "components/signin/public/identity_manager/identity_manager.h"
#include "components/update_client/update_query_params.h"
#include "content/public/browser/storage_partition.h"
#include "extensions/browser/extension_prefs.h"
#include "extensions/browser/updater/extension_downloader.h"
#include "extensions/common/verifier_formats.h"
#include "services/network/public/cpp/shared_url_loader_factory.h"
ExtensionDownloader;
ExtensionDownloaderDelegate;
UpdateQueryParams;
std::unique_ptr<ExtensionDownloader>
ChromeExtensionDownloaderFactory::CreateForURLLoaderFactory(
scoped_refptr<network::SharedURLLoaderFactory> url_loader_factory,
ExtensionDownloaderDelegate* delegate,
crx_file::VerifierFormat required_verifier_format,
const base::FilePath& profile_path) { … }
std::unique_ptr<ExtensionDownloader>
ChromeExtensionDownloaderFactory::CreateForProfile(
Profile* profile,
ExtensionDownloaderDelegate* delegate) { … }