#include "content/public/test/service_worker_host_interceptor.h"
#include <utility>
#include "base/functional/callback.h"
#include "base/location.h"
#include "base/run_loop.h"
#include "content/browser/service_worker/service_worker_context_wrapper.h"
#include "content/browser/service_worker/service_worker_version.h"
#include "content/public/browser/browser_context.h"
#include "content/public/browser/storage_partition.h"
#include "third_party/blink/public/common/storage_key/storage_key.h"
namespace content {
ServiceWorkerHostInterceptor::ServiceWorkerHostInterceptor() = default;
ServiceWorkerHostInterceptor::~ServiceWorkerHostInterceptor() = default;
blink::ServiceWorkerStatusCode
ServiceWorkerHostInterceptor::InterceptServiceWorkerHostWithScope(
BrowserContext* browser_context,
const GURL& scope,
int* service_worker_process_id_out) { … }
bool ServiceWorkerHostInterceptor::WillOpenPaymentHandlerWindow(GURL* url) { … }
blink::mojom::ServiceWorkerHost*
ServiceWorkerHostInterceptor::GetForwardingInterface() { … }
void ServiceWorkerHostInterceptor::OpenPaymentHandlerWindow(
const GURL& url,
OpenPaymentHandlerWindowCallback callback) { … }
void ServiceWorkerHostInterceptor::FindRegistration(
scoped_refptr<ServiceWorkerContextWrapper> context,
const GURL& scope,
base::OnceClosure done) { … }
void ServiceWorkerHostInterceptor::OnFoundRegistration(
base::OnceClosure done,
blink::ServiceWorkerStatusCode status,
scoped_refptr<ServiceWorkerRegistration> registration) { … }
}