// Copyright 2019 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef THIRD_PARTY_BLINK_RENDERER_PLATFORM_BINDINGS_V8_VALUE_OR_SCRIPT_WRAPPABLE_ADAPTER_H_ #define THIRD_PARTY_BLINK_RENDERER_PLATFORM_BINDINGS_V8_VALUE_OR_SCRIPT_WRAPPABLE_ADAPTER_H_ #include "third_party/blink/renderer/platform/heap/persistent.h" #include "third_party/blink/renderer/platform/platform_export.h" #include "third_party/blink/renderer/platform/wtf/allocator/allocator.h" #include "v8/include/v8.h" namespace blink { class ScriptState; class ScriptWrappable; namespace bindings { // V8ValueOrScriptWrappableAdapter is an adapter to make bindings functions take // either of v8::Local<v8::Value> or ScriptWrappable*. // // This class is only designed to be used as function argument types in bindings // layer. Please refrain from abuse for other purpose and/or outside bindings. class PLATFORM_EXPORT V8ValueOrScriptWrappableAdapter { … }; } // namespace bindings } // namespace blink #endif // THIRD_PARTY_BLINK_RENDERER_PLATFORM_BINDINGS_V8_VALUE_OR_SCRIPT_WRAPPABLE_ADAPTER_H_