#include "extensions/renderer/bindings/api_type_reference_map.h"
#include <ostream>
#include "base/containers/contains.h"
#include "extensions/renderer/bindings/api_signature.h"
#include "extensions/renderer/bindings/argument_spec.h"
namespace extensions {
APITypeReferenceMap::APITypeReferenceMap(InitializeTypeCallback initialize_type)
: … { … }
APITypeReferenceMap::~APITypeReferenceMap() = default;
void APITypeReferenceMap::AddSpec(const std::string& name,
std::unique_ptr<ArgumentSpec> spec) { … }
const ArgumentSpec* APITypeReferenceMap::GetSpec(
const std::string& name) const { … }
void APITypeReferenceMap::AddAPIMethodSignature(
const std::string& name,
std::unique_ptr<APISignature> signature) { … }
const APISignature* APITypeReferenceMap::GetAPIMethodSignature(
const std::string& name) const { … }
void APITypeReferenceMap::AddTypeMethodSignature(
const std::string& name,
std::unique_ptr<APISignature> signature) { … }
const APISignature* APITypeReferenceMap::GetTypeMethodSignature(
const std::string& name) const { … }
bool APITypeReferenceMap::HasTypeMethodSignature(
const std::string& name) const { … }
const APISignature* APITypeReferenceMap::GetAsyncResponseSignature(
const std::string& name) const { … }
void APITypeReferenceMap::AddCustomSignature(
const std::string& name,
std::unique_ptr<APISignature> signature) { … }
const APISignature* APITypeReferenceMap::GetCustomSignature(
const std::string& name) const { … }
void APITypeReferenceMap::AddEventSignature(
const std::string& event_name,
std::unique_ptr<APISignature> signature) { … }
const APISignature* APITypeReferenceMap::GetEventSignature(
const std::string& event_name) const { … }
}