chromium/third_party/blink/renderer/modules/payments/goods/dom_window_digital_goods.cc

// Copyright 2020 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/payments/goods/dom_window_digital_goods.h"

#include <utility>

#include "base/metrics/histogram_functions.h"
#include "third_party/blink/public/mojom/permissions_policy/permissions_policy_feature.mojom-blink.h"
#include "third_party/blink/public/platform/browser_interface_broker_proxy.h"
#include "third_party/blink/renderer/bindings/core/v8/script_promise_resolver.h"
#include "third_party/blink/renderer/core/dom/dom_exception.h"
#include "third_party/blink/renderer/core/execution_context/execution_context.h"
#include "third_party/blink/renderer/core/frame/local_dom_window.h"
#include "third_party/blink/renderer/modules/payments/goods/digital_goods_service.h"
#include "third_party/blink/renderer/modules/payments/goods/digital_goods_type_converters.h"
#include "third_party/blink/renderer/modules/payments/goods/util.h"
#include "third_party/blink/renderer/platform/bindings/exception_code.h"
#include "third_party/blink/renderer/platform/bindings/v8_throw_exception.h"
#include "third_party/blink/renderer/platform/wtf/text/wtf_string.h"

namespace blink {

namespace {

LogConsoleError;
CreateDigitalGoodsResponseCode;

void OnCreateDigitalGoodsResponse(
    ScriptPromiseResolver<DigitalGoodsService>* resolver,
    CreateDigitalGoodsResponseCode code,
    mojo::PendingRemote<payments::mojom::blink::DigitalGoods> pending_remote) {}

}  // namespace

const char DOMWindowDigitalGoods::kSupplementName[] =;

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

ScriptPromise<DigitalGoodsService>
DOMWindowDigitalGoods::getDigitalGoodsService(ScriptState* script_state,
                                              LocalDOMWindow& window,
                                              const String& payment_method,
                                              ExceptionState& exception_state) {}

ScriptPromise<DigitalGoodsService>
DOMWindowDigitalGoods::GetDigitalGoodsService(ScriptState* script_state,
                                              LocalDOMWindow& window,
                                              const String& payment_method,
                                              ExceptionState& exception_state) {}

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

// static
DOMWindowDigitalGoods* DOMWindowDigitalGoods::FromState(
    LocalDOMWindow* window) {}

}  // namespace blink