chromium/third_party/blink/renderer/modules/smart_card/smart_card_resource_manager.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/renderer/modules/smart_card/smart_card_resource_manager.h"

#include "services/device/public/mojom/smart_card.mojom-blink.h"
#include "third_party/blink/public/mojom/permissions_policy/permissions_policy_feature.mojom-shared.h"
#include "third_party/blink/public/mojom/smart_card/smart_card.mojom-blink.h"
#include "third_party/blink/renderer/core/execution_context/navigator_base.h"
#include "third_party/blink/renderer/modules/event_target_modules.h"
#include "third_party/blink/renderer/modules/smart_card/smart_card_context.h"
#include "third_party/blink/renderer/modules/smart_card/smart_card_error.h"
#include "third_party/blink/renderer/platform/bindings/exception_code.h"
#include "third_party/blink/renderer/platform/wtf/functional.h"

namespace blink {

namespace {
constexpr char kContextGone[] =;
constexpr char kFeaturePolicyBlocked[] =;
constexpr char kNotSufficientlyIsolated[] =;
constexpr char kServiceDisconnected[] =;

bool ShouldBlockSmartCardServiceCall(ExecutionContext* context,
                                     ExceptionState& exception_state) {}

}  // namespace

const char SmartCardResourceManager::kSupplementName[] =;

SmartCardResourceManager* SmartCardResourceManager::smartCard(
    NavigatorBase& navigator) {}

SmartCardResourceManager::SmartCardResourceManager(NavigatorBase& navigator)
    :{}

void SmartCardResourceManager::ContextDestroyed() {}

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

ScriptPromise<SmartCardContext> SmartCardResourceManager::establishContext(
    ScriptState* script_state,
    ExceptionState& exception_state) {}

void SmartCardResourceManager::EnsureServiceConnection() {}

void SmartCardResourceManager::OnCreateContextDone(
    ScriptPromiseResolver<SmartCardContext>* resolver,
    device::mojom::blink::SmartCardCreateContextResultPtr result) {}

void SmartCardResourceManager::CloseServiceConnection() {}

}  // namespace blink