chromium/third_party/blink/renderer/modules/service_worker/install_event.cc

// Copyright 2015 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "third_party/blink/renderer/modules/service_worker/install_event.h"

#include "third_party/blink/public/common/service_worker/service_worker_router_rule.h"
#include "third_party/blink/public/mojom/service_worker/service_worker_router_rule.mojom-blink.h"
#include "third_party/blink/public/platform/web_security_origin.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/core/v8/v8_throw_dom_exception.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_union_routerrule_routerrulesequence.h"
#include "third_party/blink/renderer/core/execution_context/execution_context.h"
#include "third_party/blink/renderer/core/inspector/console_message.h"
#include "third_party/blink/renderer/modules/service_worker/service_worker_global_scope.h"
#include "third_party/blink/renderer/modules/service_worker/service_worker_router_type_converter.h"
#include "third_party/blink/renderer/platform/bindings/exception_code.h"
#include "third_party/blink/renderer/platform/bindings/script_state.h"
#include "third_party/blink/renderer/platform/bindings/v8_throw_exception.h"

namespace blink {

namespace {

void DidAddRoutes(ScriptPromiseResolver<IDLUndefined>* resolver,
                  bool is_parse_error) {}

}  // namespace

InstallEvent* InstallEvent::Create(const AtomicString& type,
                                   const ExtendableEventInit* event_init) {}

InstallEvent* InstallEvent::Create(const AtomicString& type,
                                   const ExtendableEventInit* event_init,
                                   int event_id,
                                   WaitUntilObserver* observer) {}

InstallEvent::~InstallEvent() = default;

const AtomicString& InstallEvent::InterfaceName() const {}

InstallEvent::InstallEvent(const AtomicString& type,
                           const ExtendableEventInit* initializer)
    :{}

InstallEvent::InstallEvent(const AtomicString& type,
                           const ExtendableEventInit* initializer,
                           int event_id,
                           WaitUntilObserver* observer)
    :{}

ScriptPromise<IDLUndefined> InstallEvent::addRoutes(
    ScriptState* script_state,
    const V8UnionRouterRuleOrRouterRuleSequence* v8_rules,
    ExceptionState& exception_state) {}

void InstallEvent::ConvertServiceWorkerRouterRules(
    ScriptState* script_state,
    const V8UnionRouterRuleOrRouterRuleSequence* v8_rules,
    ExceptionState& exception_state,
    const KURL& base_url,
    mojom::blink::ServiceWorkerFetchHandlerType fetch_handler_type,
    blink::ServiceWorkerRouterRules& rules) {}
}  // namespace blink