#ifndef CONTENT_PUBLIC_BROWSER_BACKGROUND_FETCH_DESCRIPTION_H_
#define CONTENT_PUBLIC_BROWSER_BACKGROUND_FETCH_DESCRIPTION_H_
#include <stdint.h>
#include <optional>
#include <vector>
#include "content/common/content_export.h"
#include "net/base/isolation_info.h"
#include "third_party/skia/include/core/SkBitmap.h"
#include "url/origin.h"
namespace content {
struct CONTENT_EXPORT BackgroundFetchDescription {
BackgroundFetchDescription(const std::string& job_unique_id,
const url::Origin& origin,
const std::string& title,
const SkBitmap& icon,
int completed_requests,
int total_requests,
uint64_t downloaded_bytes,
uint64_t uploaded_bytes,
uint64_t download_total_bytes,
uint64_t upload_total_bytes,
std::vector<std::string> outstanding_guids,
bool start_paused,
std::optional<net::IsolationInfo> isolation_info);
BackgroundFetchDescription(const BackgroundFetchDescription&) = delete;
BackgroundFetchDescription& operator=(const BackgroundFetchDescription&) =
delete;
~BackgroundFetchDescription();
const std::string job_unique_id;
const url::Origin origin;
std::string title;
SkBitmap icon;
int completed_requests;
int total_requests;
uint64_t downloaded_bytes;
uint64_t uploaded_bytes;
uint64_t download_total_bytes;
uint64_t upload_total_bytes;
std::vector<std::string> outstanding_guids;
bool start_paused;
std::optional<net::IsolationInfo> isolation_info;
};
}
#endif