chromium/v8/include/v8-context.h

// Copyright 2021 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef INCLUDE_V8_CONTEXT_H_
#define INCLUDE_V8_CONTEXT_H_

#include <stdint.h>

#include <vector>

#include "v8-data.h"          // NOLINT(build/include_directory)
#include "v8-local-handle.h"  // NOLINT(build/include_directory)
#include "v8-maybe.h"         // NOLINT(build/include_directory)
#include "v8-snapshot.h"      // NOLINT(build/include_directory)
#include "v8config.h"         // NOLINT(build/include_directory)

namespace v8 {

class Function;
class MicrotaskQueue;
class Object;
class ObjectTemplate;
class Value;
class String;

/**
 * A container for extension names.
 */
class V8_EXPORT ExtensionConfiguration {};

/**
 * A sandboxed execution context with its own set of built-in objects
 * and functions.
 */
class V8_EXPORT Context : public Data {};

// --- Implementation ---

Local<Value> Context::GetEmbedderData(int index) {}

void* Context::GetAlignedPointerFromEmbedderData(Isolate* isolate, int index) {}

void* Context::GetAlignedPointerFromEmbedderData(int index) {}

template <class T>
MaybeLocal<T> Context::GetDataFromSnapshotOnce(size_t index) {}

Context* Context::Cast(v8::Data* data) {}

}  // namespace v8

#endif  // INCLUDE_V8_CONTEXT_H_