chromium/third_party/blink/renderer/modules/nfc/ndef_message.cc

// Copyright 2019 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/nfc/ndef_message.h"

#include "services/device/public/mojom/nfc.mojom-blink.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_ndef_message_init.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_ndef_record_init.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_union_arraybuffer_arraybufferview_ndefmessageinit_string.h"
#include "third_party/blink/renderer/modules/nfc/ndef_record.h"
#include "third_party/blink/renderer/platform/bindings/exception_state.h"
#include "third_party/blink/renderer/platform/bindings/script_state.h"

namespace blink {

namespace {

// Spec-defined maximum recursion depth for NDEF messages.
// https://w3c.github.io/web-nfc/#creating-ndef-message
constexpr uint8_t kMaxRecursionDepth =;

constexpr char kRecursionLimitExceededErrorMessage[] =;

}  // namespace

// static
NDEFMessage* NDEFMessage::Create(const ScriptState* script_state,
                                 const NDEFMessageInit* init,
                                 ExceptionState& exception_state,
                                 uint8_t records_depth,
                                 bool is_embedded) {}

// static
NDEFMessage* NDEFMessage::Create(const ScriptState* script_state,
                                 const V8NDEFMessageSource* source,
                                 ExceptionState& exception_state) {}

// static
NDEFMessage* NDEFMessage::CreateAsPayloadOfSmartPoster(
    const ScriptState* script_state,
    const NDEFMessageInit* init,
    ExceptionState& exception_state,
    uint8_t records_depth) {}

NDEFMessage::NDEFMessage() = default;

NDEFMessage::NDEFMessage(const device::mojom::blink::NDEFMessage& message) {}

const HeapVector<Member<NDEFRecord>>& NDEFMessage::records() const {}

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

}  // namespace blink