* Gets result about link subscription from a web page on Android * Fixes code review suggestions
32 lines
922 B
C++
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_
|