#include "components/performance_manager/service_worker_context_adapter.h"
#include "base/check_op.h"
#include "base/memory/raw_ptr.h"
#include "base/no_destructor.h"
#include "base/notreached.h"
#include "base/observer_list.h"
#include "base/scoped_observation.h"
#include "base/task/single_thread_task_runner.h"
#include "content/public/browser/render_process_host.h"
#include "content/public/browser/render_process_host_observer.h"
#include "third_party/blink/public/common/associated_interfaces/associated_interface_provider.h"
namespace performance_manager {
class ServiceWorkerContextAdapterImpl::RunningServiceWorker
: content::RenderProcessHostObserver { … };
ServiceWorkerContextAdapterImpl::RunningServiceWorker::RunningServiceWorker(
int64_t version_id,
ServiceWorkerContextAdapterImpl* adapter)
: … { … }
ServiceWorkerContextAdapterImpl::RunningServiceWorker::~RunningServiceWorker() { … }
void ServiceWorkerContextAdapterImpl::RunningServiceWorker::Subscribe(
content::RenderProcessHost* worker_process_host) { … }
void ServiceWorkerContextAdapterImpl::RunningServiceWorker::Unsubscribe() { … }
void ServiceWorkerContextAdapterImpl::RunningServiceWorker::RenderProcessExited(
content::RenderProcessHost* host,
const content::ChildProcessTerminationInfo& info) { … }
void ServiceWorkerContextAdapterImpl::RunningServiceWorker::
InProcessRendererExiting(content::RenderProcessHost* host) { … }
void ServiceWorkerContextAdapterImpl::RunningServiceWorker::
RenderProcessHostDestroyed(content::RenderProcessHost* host) { … }
ServiceWorkerContextAdapterImpl::ServiceWorkerContextAdapterImpl(
content::ServiceWorkerContext* underlying_context) { … }
ServiceWorkerContextAdapterImpl::~ServiceWorkerContextAdapterImpl() { … }
void ServiceWorkerContextAdapterImpl::AddObserver(
content::ServiceWorkerContextObserver* observer) { … }
void ServiceWorkerContextAdapterImpl::RemoveObserver(
content::ServiceWorkerContextObserver* observer) { … }
void ServiceWorkerContextAdapterImpl::OnVersionStartedRunning(
int64_t version_id,
const content::ServiceWorkerRunningInfo& running_info) { … }
void ServiceWorkerContextAdapterImpl::OnVersionStoppedRunning(
int64_t version_id) { … }
void ServiceWorkerContextAdapterImpl::OnControlleeAdded(
int64_t version_id,
const std::string& client_uuid,
const content::ServiceWorkerClientInfo& client_info) { … }
void ServiceWorkerContextAdapterImpl::OnControlleeRemoved(
int64_t version_id,
const std::string& client_uuid) { … }
void ServiceWorkerContextAdapterImpl::OnControlleeNavigationCommitted(
int64_t version_id,
const std::string& client_uuid,
content::GlobalRenderFrameHostId render_frame_host_id) { … }
void ServiceWorkerContextAdapterImpl::OnRenderProcessExited(
int64_t version_id) { … }
void ServiceWorkerContextAdapterImpl::AddRunningServiceWorker(
int64_t version_id,
content::RenderProcessHost* worker_process_host) { … }
bool ServiceWorkerContextAdapterImpl::MaybeRemoveRunningServiceWorker(
int64_t version_id) { … }
}