#include "extensions/renderer/bindings/binding_access_checker.h"
#include "base/strings/stringprintf.h"
#include "gin/converter.h"
namespace extensions {
BindingAccessChecker::BindingAccessChecker(
APIAvailabilityCallback api_available,
PromiseAvailabilityCallback promises_available)
: … { … }
BindingAccessChecker::~BindingAccessChecker() = default;
bool BindingAccessChecker::HasAccess(v8::Local<v8::Context> context,
const std::string& full_name) const { … }
bool BindingAccessChecker::HasAccessOrThrowError(
v8::Local<v8::Context> context,
const std::string& full_name) const { … }
bool BindingAccessChecker::HasPromiseAccess(
v8::Local<v8::Context> context) const { … }
}