chromium/third_party/blink/common/fenced_frame/fenced_frame_utils.cc

// Copyright 2022 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/public/common/fenced_frame/fenced_frame_utils.h"

#include <cstring>
#include <string_view>

#include "base/metrics/histogram_functions.h"
#include "base/strings/string_util.h"
#include "base/uuid.h"
#include "net/base/url_util.h"
#include "third_party/blink/public/common/frame/fenced_frame_sandbox_flags.h"
#include "url/gurl.h"

namespace blink {

bool IsValidFencedFrameURL(const GURL& url) {}

const char kURNUUIDprefix[] =;

bool IsValidUrnUuidURL(const GURL& url) {}

void RecordFencedFrameCreationOutcome(
    const FencedFrameCreationOutcome outcome) {}

void RecordOpaqueFencedFrameSizeCoercion(bool did_coerce) {}

void RecordFencedFrameResizedAfterSizeFrozen() {}

void RecordFencedFrameUnsandboxedFlags(network::mojom::WebSandboxFlags flags) {}

void RecordFencedFrameFailedSandboxLoadInTopLevelFrame(bool is_main_frame) {}

// If more event types besides click are supported for fenced events, this
// function should operate on a global map of unfenced event_type_name ->
// fenced event_type_name. Also, these functions use raw string literals to
// represent event types. While this isn't ideal, the already-defined constants
// for event types (in the blink::event_type_names namespace) aren't exported
// by Blink's public interface. Wrapping the equivalent literals in this
// function ensures that if names need to be changed later, changes are only
// needed in one file.
bool CanNotifyEventTypeAcrossFence(const std::string& event_type) {}

}  // namespace blink