#include "content/browser/service_worker/service_worker_process_manager.h"
#include <stddef.h>
#include <algorithm>
#include <utility>
#include "base/containers/contains.h"
#include "content/browser/process_lock.h"
#include "content/browser/service_worker/service_worker_context_wrapper.h"
#include "content/browser/site_instance_impl.h"
#include "content/browser/storage_partition_impl.h"
#include "content/public/browser/browser_task_traits.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/child_process_host.h"
#include "content/public/browser/render_process_host.h"
#include "content/public/browser/site_instance.h"
#include "content/public/browser/site_isolation_policy.h"
#include "content/public/common/content_client.h"
#include "url/gurl.h"
namespace content {
ServiceWorkerProcessManager::ServiceWorkerProcessManager()
: … { … }
ServiceWorkerProcessManager::~ServiceWorkerProcessManager() { … }
void ServiceWorkerProcessManager::Shutdown() { … }
bool ServiceWorkerProcessManager::IsShutdown() { … }
blink::ServiceWorkerStatusCode
ServiceWorkerProcessManager::AllocateWorkerProcess(
int embedded_worker_id,
const GURL& script_url,
network::mojom::CrossOriginEmbedderPolicyValue coep_value,
bool can_use_existing_process,
blink::mojom::AncestorFrameType ancestor_frame_type,
AllocatedProcessInfo* out_info) { … }
void ServiceWorkerProcessManager::ReleaseWorkerProcess(int embedded_worker_id) { … }
base::WeakPtr<ServiceWorkerProcessManager>
ServiceWorkerProcessManager::GetWeakPtr() { … }
SiteInstance* ServiceWorkerProcessManager::GetSiteInstanceForWorker(
int embedded_worker_id) { … }
}
namespace std {
void default_delete<content::ServiceWorkerProcessManager>::operator()(
content::ServiceWorkerProcessManager* ptr) const { … }
}