#include "content/browser/service_worker/service_worker_installed_scripts_sender.h"
#include "base/memory/ref_counted.h"
#include "base/stl_util.h"
#include "base/trace_event/trace_event.h"
#include "content/browser/service_worker/service_worker_consts.h"
#include "content/browser/service_worker/service_worker_context_core.h"
#include "content/browser/service_worker/service_worker_script_cache_map.h"
namespace content {
ServiceWorkerInstalledScriptsSender::ServiceWorkerInstalledScriptsSender(
ServiceWorkerVersion* owner)
: … { … }
ServiceWorkerInstalledScriptsSender::~ServiceWorkerInstalledScriptsSender() { … }
blink::mojom::ServiceWorkerInstalledScriptsInfoPtr
ServiceWorkerInstalledScriptsSender::CreateInfoAndBind() { … }
void ServiceWorkerInstalledScriptsSender::Start() { … }
void ServiceWorkerInstalledScriptsSender::StartSendingScript(
int64_t resource_id,
const GURL& script_url) { … }
void ServiceWorkerInstalledScriptsSender::OnStarted(
network::mojom::URLResponseHeadPtr response_head,
std::optional<mojo_base::BigBuffer> metadata,
mojo::ScopedDataPipeConsumerHandle body_handle,
mojo::ScopedDataPipeConsumerHandle meta_data_handle) { … }
void ServiceWorkerInstalledScriptsSender::OnFinished(
ServiceWorkerInstalledScriptReader::FinishedReason reason) { … }
void ServiceWorkerInstalledScriptsSender::Abort(
ServiceWorkerInstalledScriptReader::FinishedReason reason) { … }
void ServiceWorkerInstalledScriptsSender::UpdateFinishedReasonAndBecomeIdle(
ServiceWorkerInstalledScriptReader::FinishedReason reason) { … }
void ServiceWorkerInstalledScriptsSender::RequestInstalledScript(
const GURL& script_url) { … }
bool ServiceWorkerInstalledScriptsSender::IsSendingMainScript() const { … }
void ServiceWorkerInstalledScriptsSender::SetFinishCallback(
base::OnceClosure callback) { … }
}