chromium/third_party/blink/renderer/modules/managed_device/navigator_managed_data.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/managed_device/navigator_managed_data.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/dom/events/event.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/core/frame/navigator.h"
#include "third_party/blink/renderer/core/inspector/console_message.h"
#include "third_party/blink/renderer/modules/event_target_modules.h"

namespace blink {

namespace {

const char kNotHighTrustedAppExceptionMessage[] =;

#if BUILDFLAG(IS_ANDROID)
const char kManagedConfigNotSupported[] =
    "Managed Configuration API is not supported on this platform.";
#endif  // BUILDFLAG(IS_ANDROID)

}  // namespace

const char NavigatorManagedData::kSupplementName[] =;

NavigatorManagedData* NavigatorManagedData::managed(Navigator& navigator) {}

NavigatorManagedData::NavigatorManagedData(Navigator& navigator)
    :{}

const AtomicString& NavigatorManagedData::InterfaceName() const {}

ExecutionContext* NavigatorManagedData::GetExecutionContext() const {}

bool NavigatorManagedData::HasPendingActivity() const {}

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

mojom::blink::DeviceAPIService* NavigatorManagedData::GetService() {}

#if !BUILDFLAG(IS_ANDROID)
mojom::blink::ManagedConfigurationService*
NavigatorManagedData::GetManagedConfigurationService() {}
#endif  // !BUILDFLAG(IS_ANDROID)

void NavigatorManagedData::OnServiceConnectionError() {}

ScriptPromise<IDLRecord<IDLString, IDLAny>>
NavigatorManagedData::getManagedConfiguration(ScriptState* script_state,
                                              Vector<String> keys) {}

ScriptPromise<IDLNullable<IDLString>> NavigatorManagedData::getDirectoryId(
    ScriptState* script_state) {}

ScriptPromise<IDLNullable<IDLString>> NavigatorManagedData::getHostname(
    ScriptState* script_state) {}

ScriptPromise<IDLNullable<IDLString>> NavigatorManagedData::getSerialNumber(
    ScriptState* script_state) {}

ScriptPromise<IDLNullable<IDLString>> NavigatorManagedData::getAnnotatedAssetId(
    ScriptState* script_state) {}

ScriptPromise<IDLNullable<IDLString>>
NavigatorManagedData::getAnnotatedLocation(ScriptState* script_state) {}

void NavigatorManagedData::OnConfigurationReceived(
    ScriptPromiseResolver<IDLRecord<IDLString, IDLAny>>* resolver,
    const std::optional<HashMap<String, String>>& configurations) {}

void NavigatorManagedData::OnAttributeReceived(
    ScriptState* script_state,
    ScriptPromiseResolver<IDLNullable<IDLString>>* resolver,
    mojom::blink::DeviceAttributeResultPtr result) {}

void NavigatorManagedData::OnConfigurationChanged() {}

void NavigatorManagedData::AddedEventListener(
    const AtomicString& event_type,
    RegisteredEventListener& registered_listener) {}

void NavigatorManagedData::RemovedEventListener(
    const AtomicString& event_type,
    const RegisteredEventListener& registered_listener) {}

void NavigatorManagedData::StopObserving() {}

}  // namespace blink