#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) { … }
const char ManifestManager::kSupplementName[] = …;
void WebManifestManager::RequestManifestForTesting(WebLocalFrame* web_frame,
Callback callback) { … }
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 { … }
}