#include "chrome/browser/web_applications/externally_managed_app_registration_task.h"
#include "base/functional/callback_helpers.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/web_applications/externally_managed_app_manager.h"
#include "components/webapps/browser/web_contents/web_app_url_loader.h"
#include "content/public/browser/browser_context.h"
#include "content/public/browser/service_worker_context.h"
#include "content/public/browser/storage_partition.h"
#include "content/public/browser/web_contents.h"
#include "third_party/blink/public/common/storage_key/storage_key.h"
#include "url/origin.h"
#include "url/url_constants.h"
namespace web_app {
ExternallyManagedAppRegistrationTaskBase::
ExternallyManagedAppRegistrationTaskBase(
GURL install_url,
const base::TimeDelta registration_timeout)
: … { … }
ExternallyManagedAppRegistrationTaskBase::
~ExternallyManagedAppRegistrationTaskBase() = default;
ExternallyManagedAppRegistrationTask::ExternallyManagedAppRegistrationTask(
GURL install_url,
const base::TimeDelta registration_timeout,
webapps::WebAppUrlLoader* url_loader,
content::WebContents* web_contents,
RegistrationCallback callback)
: … { … }
void ExternallyManagedAppRegistrationTask::Start() { … }
ExternallyManagedAppRegistrationTask::~ExternallyManagedAppRegistrationTask() { … }
void ExternallyManagedAppRegistrationTask::OnRegistrationCompleted(
const GURL& scope) { … }
void ExternallyManagedAppRegistrationTask::OnDestruct(
content::ServiceWorkerContext* context) { … }
void ExternallyManagedAppRegistrationTask::CheckHasServiceWorker() { … }
void ExternallyManagedAppRegistrationTask::OnDidCheckHasServiceWorker(
content::ServiceWorkerCapability capability) { … }
void ExternallyManagedAppRegistrationTask::OnRegistrationTimeout() { … }
}