chromium/third_party/blink/renderer/modules/manifest/manifest_manager.cc

// Copyright 2014 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/manifest/manifest_manager.h"

#include <utility>

#include "base/functional/bind.h"
#include "third_party/blink/public/platform/interface_registry.h"
#include "third_party/blink/renderer/core/dom/document.h"
#include "third_party/blink/renderer/core/frame/frame_console.h"
#include "third_party/blink/renderer/core/frame/local_dom_window.h"
#include "third_party/blink/renderer/core/frame/local_frame_client.h"
#include "third_party/blink/renderer/core/frame/web_feature.h"
#include "third_party/blink/renderer/core/frame/web_local_frame_impl.h"
#include "third_party/blink/renderer/core/html/html_link_element.h"
#include "third_party/blink/renderer/core/inspector/console_message.h"
#include "third_party/blink/renderer/modules/manifest/manifest_change_notifier.h"
#include "third_party/blink/renderer/modules/manifest/manifest_fetcher.h"
#include "third_party/blink/renderer/modules/manifest/manifest_parser.h"
#include "third_party/blink/renderer/platform/heap/garbage_collected.h"
#include "third_party/blink/renderer/platform/loader/fetch/resource_response.h"
#include "third_party/blink/renderer/platform/weborigin/kurl.h"

namespace blink {

ManifestManager::Result::Result(mojom::blink::ManifestRequestResult result,
                                KURL manifest_url,
                                mojom::blink::ManifestPtr manifest)
    :{}

ManifestManager::Result::Result(Result&&) = default;
ManifestManager::Result& ManifestManager::Result::operator=(Result&&) = default;

void ManifestManager::Result::SetManifest(mojom::blink::ManifestPtr manifest) {}

// static
const char ManifestManager::kSupplementName[] =;

// static
void WebManifestManager::RequestManifestForTesting(WebLocalFrame* web_frame,
                                                   Callback callback) {}

// static
ManifestManager* ManifestManager::From(LocalDOMWindow& window) {}

ManifestManager::ManifestManager(LocalDOMWindow& window)
    :{}

ManifestManager::~ManifestManager() = default;

void ManifestManager::RequestManifest(RequestManifestCallback callback) {}

void ManifestManager::RequestManifestDebugInfo(
    RequestManifestDebugInfoCallback callback) {}

void ManifestManager::ParseManifestFromString(
    const KURL& document_url,
    const KURL& manifest_url,
    const String& manifest_contents,
    ParseManifestFromStringCallback callback) {}

void ManifestManager::RequestManifestForTesting(
    WebManifestManager::Callback callback) {}

bool ManifestManager::CanFetchManifest() {}

void ManifestManager::RequestManifestImpl(
    InternalRequestManifestCallback callback) {}

void ManifestManager::DidChangeManifest() {}

void ManifestManager::FetchManifest() {}

void ManifestManager::OnManifestFetchComplete(const KURL& document_url,
                                              const ResourceResponse& response,
                                              const String& data) {}

void ManifestManager::ParseManifestFromPage(const KURL& document_url,
                                            std::optional<KURL> manifest_url,
                                            const String& data) {}

void ManifestManager::RecordMetrics(const mojom::blink::Manifest& manifest) {}

void ManifestManager::ResolveCallbacks(Result result) {}

KURL ManifestManager::ManifestURL() const {}

bool ManifestManager::ManifestUseCredentials() const {}

void ManifestManager::BindReceiver(
    mojo::PendingReceiver<mojom::blink::ManifestManager> receiver) {}

mojom::blink::ManifestPtr ManifestManager::DefaultManifest() {}

void ManifestManager::ContextDestroyed() {}

void ManifestManager::Trace(Visitor* visitor) const {}

}  // namespace blink