#include "extensions/renderer/chrome_setting.h"
#include "base/strings/stringprintf.h"
#include "base/values.h"
#include "extensions/renderer/bindings/api_binding_util.h"
#include "extensions/renderer/bindings/api_event_handler.h"
#include "extensions/renderer/bindings/api_invocation_errors.h"
#include "extensions/renderer/bindings/api_request_handler.h"
#include "extensions/renderer/bindings/api_signature.h"
#include "extensions/renderer/bindings/api_type_reference_map.h"
#include "extensions/renderer/bindings/binding_access_checker.h"
#include "gin/arguments.h"
#include "gin/handle.h"
#include "gin/object_template_builder.h"
#include "v8/include/v8-object.h"
namespace extensions {
v8::Local<v8::Object> ChromeSetting::Create(
v8::Isolate* isolate,
const std::string& property_name,
const base::Value::List* property_values,
APIRequestHandler* request_handler,
APIEventHandler* event_handler,
APITypeReferenceMap* type_refs,
const BindingAccessChecker* access_checker) { … }
ChromeSetting::ChromeSetting(APIRequestHandler* request_handler,
APIEventHandler* event_handler,
const APITypeReferenceMap* type_refs,
const BindingAccessChecker* access_checker,
const std::string& pref_name,
const base::Value::Dict& set_value_spec)
: … { … }
ChromeSetting::~ChromeSetting() = default;
gin::WrapperInfo ChromeSetting::kWrapperInfo = …;
gin::ObjectTemplateBuilder ChromeSetting::GetObjectTemplateBuilder(
v8::Isolate* isolate) { … }
const char* ChromeSetting::GetTypeName() { … }
void ChromeSetting::Get(gin::Arguments* arguments) { … }
void ChromeSetting::Set(gin::Arguments* arguments) { … }
void ChromeSetting::Clear(gin::Arguments* arguments) { … }
v8::Local<v8::Value> ChromeSetting::GetOnChangeEvent(
gin::Arguments* arguments) { … }
void ChromeSetting::HandleFunction(const std::string& method_name,
gin::Arguments* arguments) { … }
}