chromium/extensions/browser/updater/extension_downloader_delegate.cc

// Copyright 2012 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "extensions/browser/updater/extension_downloader_delegate.h"

#include "base/version.h"
#include "net/base/net_errors.h"

namespace extensions {

ExtensionDownloaderDelegate::PingResult::PingResult() :{}

ExtensionDownloaderDelegate::PingResult::~PingResult() = default;

ExtensionDownloaderDelegate::FailureData::FailureData()
    :{}

// static
ExtensionDownloaderDelegate::FailureData
ExtensionDownloaderDelegate::FailureData::CreateFromNetworkResponse(
    int net_error,
    int response_code,
    int failure_count) {}

ExtensionDownloaderDelegate::FailureData::FailureData(
    const FailureData& other) = default;
ExtensionDownloaderDelegate::FailureData::FailureData(const int net_error_code,
                                                      const int fetch_attempts)
    :{}

ExtensionDownloaderDelegate::FailureData::FailureData(
    const int net_error_code,
    const std::optional<int> response,
    const int fetch_attempts)
    :{}

ExtensionDownloaderDelegate::FailureData::FailureData(
    ManifestInvalidError manifest_invalid_error)
    :{}

ExtensionDownloaderDelegate::FailureData::FailureData(
    ManifestInvalidError manifest_invalid_error,
    const std::string& app_status_error)
    :{}

ExtensionDownloaderDelegate::FailureData::FailureData(
    const std::string& additional_info)
    :{}

ExtensionDownloaderDelegate::FailureData::~FailureData() = default;

ExtensionDownloaderDelegate::~ExtensionDownloaderDelegate() = default;

void ExtensionDownloaderDelegate::OnExtensionDownloadStageChanged(
    const ExtensionId& id,
    Stage stage) {}

void ExtensionDownloaderDelegate::OnExtensionUpdateFound(
    const ExtensionId& id,
    const std::set<int>& request_ids,
    const base::Version& version) {}

void ExtensionDownloaderDelegate::OnExtensionDownloadCacheStatusRetrieved(
    const ExtensionId& id,
    CacheStatus cache_status) {}

void ExtensionDownloaderDelegate::OnExtensionDownloadFailed(
    const ExtensionId& id,
    Error error,
    const PingResult& ping_result,
    const std::set<int>& request_id,
    const FailureData& data) {}

void ExtensionDownloaderDelegate::OnExtensionDownloadRetry(
    const ExtensionId& id,
    const FailureData& data) {}

void ExtensionDownloaderDelegate::OnExtensionDownloadRetryForTests() {}

bool ExtensionDownloaderDelegate::GetPingDataForExtension(
    const ExtensionId& id,
    DownloadPingData* ping) {}

ExtensionDownloaderDelegate::RequestRollbackResult
ExtensionDownloaderDelegate::RequestRollback(const ExtensionId& id) {}

}  // namespace extensions