#include "third_party/blink/renderer/modules/web_install/navigator_web_install.h"
#include "base/task/sequenced_task_runner.h"
#include "base/task/single_thread_task_runner.h"
#include "third_party/blink/public/common/scheme_registry.h"
#include "third_party/blink/public/mojom/web_install/web_install.mojom-blink.h"
#include "third_party/blink/renderer/bindings/core/v8/script_promise.h"
#include "third_party/blink/renderer/bindings/core/v8/script_promise_resolver.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_web_install_result.h"
#include "third_party/blink/renderer/core/dom/dom_exception.h"
#include "third_party/blink/renderer/core/frame/local_dom_window.h"
#include "third_party/blink/renderer/core/page/page.h"
#include "third_party/blink/renderer/platform/bindings/exception_code.h"
#include "third_party/blink/renderer/platform/bindings/exception_state.h"
#include "third_party/blink/renderer/platform/heap/collection_support/heap_vector.h"
#include "third_party/blink/renderer/platform/mojo/heap_mojo_remote.h"
namespace blink {
const char NavigatorWebInstall::kSupplementName[] = …;
void OnInstallResponse(ScriptPromiseResolver<WebInstallResult>* resolver,
mojom::blink::WebInstallServiceResult result,
const KURL& manifest_id) { … }
NavigatorWebInstall::NavigatorWebInstall(Navigator& navigator)
: … { … }
ScriptPromise<WebInstallResult> NavigatorWebInstall::install(
ScriptState* script_state,
Navigator& navigator,
const String& manifest_id,
ExceptionState& exception_state) { … }
ScriptPromise<WebInstallResult> NavigatorWebInstall::install(
ScriptState* script_state,
Navigator& navigator,
const String& manifest_id,
const String& install_url,
ExceptionState& exception_state) { … }
ScriptPromise<WebInstallResult> NavigatorWebInstall::InstallImpl(
ScriptState* script_state,
const String& manifest_id,
ExceptionState& exception_state) { … }
ScriptPromise<WebInstallResult> NavigatorWebInstall::InstallImpl(
ScriptState* script_state,
const String& manifest_id,
const String& install_url,
ExceptionState& exception_state) { … }
void NavigatorWebInstall::Trace(Visitor* visitor) const { … }
NavigatorWebInstall& NavigatorWebInstall::From(Navigator& navigator) { … }
HeapMojoRemote<mojom::blink::WebInstallService>&
NavigatorWebInstall::GetService() { … }
void NavigatorWebInstall::OnConnectionError() { … }
bool NavigatorWebInstall::CheckPreconditionsMaybeThrow(
ScriptState* script_state,
ExceptionState& exception_state) { … }
KURL NavigatorWebInstall::ResolveManifestId(const String& manifest_id,
ExceptionState& exception_state) { … }
}