chromium/third_party/blink/renderer/core/execution_context/agent.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/core/execution_context/agent.h"

#include "third_party/blink/renderer/bindings/core/v8/rejected_promises.h"
#include "third_party/blink/renderer/core/dom/document.h"
#include "third_party/blink/renderer/core/dom/mutation_observer.h"
#include "third_party/blink/renderer/core/execution_context/execution_context.h"

namespace blink {

namespace {
bool is_cross_origin_isolated =;
bool is_isolated_context =;
bool is_web_security_disabled =;

#if DCHECK_IS_ON()
bool is_cross_origin_isolated_set =;
bool is_isolated_context_set =;
bool is_web_security_disabled_set =;
#endif
}  // namespace

Agent::Agent(v8::Isolate* isolate,
             const base::UnguessableToken& cluster_id,
             std::unique_ptr<v8::MicrotaskQueue> microtask_queue)
    :{}

Agent::Agent(v8::Isolate* isolate,
             const base::UnguessableToken& cluster_id,
             std::unique_ptr<v8::MicrotaskQueue> microtask_queue,
             bool is_origin_agent_cluster,
             bool origin_agent_cluster_left_as_default)
    :{}

Agent::~Agent() = default;

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

void Agent::AttachContext(ExecutionContext* context) {}

void Agent::DetachContext(ExecutionContext* context) {}

// static
bool Agent::IsCrossOriginIsolated() {}

// static
void Agent::SetIsCrossOriginIsolated(bool value) {}

// static
bool Agent::IsWebSecurityDisabled() {}

// static
void Agent::SetIsWebSecurityDisabled(bool value) {}

// static
bool Agent::IsIsolatedContext() {}

// static
void Agent::ResetIsIsolatedContextForTest() {}

// static
void Agent::SetIsIsolatedContext(bool value) {}

bool Agent::IsOriginKeyed() const {}

bool Agent::IsOriginKeyedForInheritance() const {}

bool Agent::IsOriginOrSiteKeyedBasedOnDefault() const {}

void Agent::ForceOriginKeyedBecauseOfInheritance() {}

bool Agent::IsWindowAgent() const {}

void Agent::PerformMicrotaskCheckpoint() {}

void Agent::Dispose() {}

RejectedPromises& Agent::GetRejectedPromises() {}

void Agent::NotifyRejectedPromises() {}

}  // namespace blink