#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
}
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) { … }
bool Agent::IsCrossOriginIsolated() { … }
void Agent::SetIsCrossOriginIsolated(bool value) { … }
bool Agent::IsWebSecurityDisabled() { … }
void Agent::SetIsWebSecurityDisabled(bool value) { … }
bool Agent::IsIsolatedContext() { … }
void Agent::ResetIsIsolatedContextForTest() { … }
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() { … }
}