#include "content/browser/service_worker/service_worker_job_coordinator.h"
#include <stddef.h>
#include <memory>
#include <utility>
#include "base/memory/ptr_util.h"
#include "base/not_fatal_until.h"
#include "content/browser/service_worker/service_worker_register_job_base.h"
#include "third_party/blink/public/mojom/loader/fetch_client_settings_object.mojom.h"
#include "third_party/blink/public/mojom/service_worker/service_worker_registration.mojom.h"
#include "third_party/blink/public/mojom/service_worker/service_worker_registration_options.mojom.h"
namespace content {
ServiceWorkerJobCoordinator::JobQueue::JobQueue() = default;
ServiceWorkerJobCoordinator::JobQueue::JobQueue(JobQueue&&) = default;
ServiceWorkerJobCoordinator::JobQueue::~JobQueue() { … }
ServiceWorkerRegisterJobBase* ServiceWorkerJobCoordinator::JobQueue::Push(
std::unique_ptr<ServiceWorkerRegisterJobBase> job) { … }
void ServiceWorkerJobCoordinator::JobQueue::Pop(
ServiceWorkerRegisterJobBase* job) { … }
void ServiceWorkerJobCoordinator::JobQueue::StartOneJob() { … }
void ServiceWorkerJobCoordinator::JobQueue::AbortAll() { … }
ServiceWorkerJobCoordinator::ServiceWorkerJobCoordinator(
ServiceWorkerContextCore* context)
: … { … }
ServiceWorkerJobCoordinator::~ServiceWorkerJobCoordinator() { … }
void ServiceWorkerJobCoordinator::Register(
const GURL& script_url,
const blink::mojom::ServiceWorkerRegistrationOptions& options,
const blink::StorageKey& key,
blink::mojom::FetchClientSettingsObjectPtr
outside_fetch_client_settings_object,
const GlobalRenderFrameHostId& requesting_frame_id,
blink::mojom::AncestorFrameType ancestor_frame_type,
ServiceWorkerRegisterJob::RegistrationCallback callback,
const PolicyContainerPolicies& policy_container_policies) { … }
void ServiceWorkerJobCoordinator::Unregister(
const GURL& scope,
const blink::StorageKey& key,
bool is_immediate,
ServiceWorkerUnregisterJob::UnregistrationCallback callback) { … }
void ServiceWorkerJobCoordinator::Update(
ServiceWorkerRegistration* registration,
bool force_bypass_cache,
bool skip_script_comparison,
blink::mojom::FetchClientSettingsObjectPtr
outside_fetch_client_settings_object,
ServiceWorkerRegisterJob::RegistrationCallback callback) { … }
void ServiceWorkerJobCoordinator::Abort(const GURL& scope,
const blink::StorageKey& key) { … }
void ServiceWorkerJobCoordinator::AbortAll() { … }
void ServiceWorkerJobCoordinator::FinishJob(const GURL& scope,
const blink::StorageKey& key,
ServiceWorkerRegisterJobBase* job) { … }
}