// Copyright 2012 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CONTENT_PUBLIC_RENDERER_V8_VALUE_CONVERTER_H_ #define CONTENT_PUBLIC_RENDERER_V8_VALUE_CONVERTER_H_ #include <memory> #include "base/functional/callback.h" #include "content/common/content_export.h" #include "third_party/blink/public/platform/web_v8_value_converter.h" #include "v8/include/v8-forward.h" namespace base { class Value; class ValueView; } namespace content { // Converts between v8::Value (JavaScript values in the v8 heap) and Chrome's // values (from base/values.h). Lists and dictionaries are converted // recursively. // // The JSON types (null, boolean, string, number, array, and object) as well as // binary values are supported. For binary values, we convert to WebKit // ArrayBuffers, and support converting from an ArrayBuffer or any of the // ArrayBufferView subclasses (Uint8Array, etc.). class CONTENT_EXPORT V8ValueConverter : public blink::WebV8ValueConverter { … }; } // namespace content #endif // CONTENT_PUBLIC_RENDERER_V8_VALUE_CONVERTER_H_