Files
brave-core/gin/converter_specializations.h
T
Serg d504a4e2c6 Gets result about link subscription from a web page on Android (#27423)
* Gets result about link subscription from a web page on Android

* Fixes code review suggestions
2025-02-07 09:12:45 -05:00

32 lines
922 B
C++

/* Copyright (c) 2024 The Brave Authors. All rights reserved.
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at https://mozilla.org/MPL/2.0/. */
#ifndef BRAVE_GIN_CONVERTER_SPECIALIZATIONS_H_
#define BRAVE_GIN_CONVERTER_SPECIALIZATIONS_H_
#include "base/values.h"
#include "gin/converter.h"
#include "v8/include/v8.h"
namespace gin {
template <>
struct Converter<base::Value::List> {
static bool FromV8(v8::Isolate* isolate,
v8::Local<v8::Value> v8_value,
base::Value::List* out);
};
template <>
struct Converter<base::Value::Dict> {
static bool FromV8(v8::Isolate* isolate,
v8::Local<v8::Value> v8_value,
base::Value::Dict* out);
};
} // namespace gin
#endif // BRAVE_GIN_CONVERTER_SPECIALIZATIONS_H_