#include "chrome/browser/extensions/webstore_install_helper.h"
#include <memory>
#include "base/functional/bind.h"
#include "base/values.h"
#include "chrome/browser/bitmap_fetcher/bitmap_fetcher.h"
#include "content/public/browser/browser_thread.h"
#include "net/base/load_flags.h"
#include "net/traffic_annotation/network_traffic_annotation.h"
#include "net/url_request/referrer_policy.h"
#include "services/network/public/mojom/url_response_head.mojom.h"
BrowserThread;
namespace {
const char kImageDecodeError[] = …;
}
namespace extensions {
WebstoreInstallHelper::WebstoreInstallHelper(Delegate* delegate,
const std::string& id,
const std::string& manifest,
const GURL& icon_url)
: … { … }
WebstoreInstallHelper::~WebstoreInstallHelper() { … }
void WebstoreInstallHelper::Start(
network::mojom::URLLoaderFactory* loader_factory) { … }
void WebstoreInstallHelper::OnFetchComplete(const GURL& url,
const SkBitmap* image) { … }
void WebstoreInstallHelper::OnJSONParsed(
data_decoder::DataDecoder::ValueOrError result) { … }
void WebstoreInstallHelper::ReportResultsIfComplete() { … }
}