11cb0ef41Sopenharmony_ci// Copyright 2022 the V8 project authors. All rights reserved. 21cb0ef41Sopenharmony_ci// Use of this source code is governed by a BSD-style license that can be 31cb0ef41Sopenharmony_ci// found in the LICENSE file. 41cb0ef41Sopenharmony_ci 51cb0ef41Sopenharmony_ci#ifndef V8_INSPECTOR_V8_WEBDRIVER_SERIALIZER_H_ 61cb0ef41Sopenharmony_ci#define V8_INSPECTOR_V8_WEBDRIVER_SERIALIZER_H_ 71cb0ef41Sopenharmony_ci 81cb0ef41Sopenharmony_ci#include "include/v8-container.h" 91cb0ef41Sopenharmony_ci#include "include/v8-context.h" 101cb0ef41Sopenharmony_ci#include "include/v8-exception.h" 111cb0ef41Sopenharmony_ci#include "include/v8-regexp.h" 121cb0ef41Sopenharmony_ci#include "src/inspector/protocol/Runtime.h" 131cb0ef41Sopenharmony_ci#include "src/inspector/v8-value-utils.h" 141cb0ef41Sopenharmony_ci 151cb0ef41Sopenharmony_cinamespace v8_inspector { 161cb0ef41Sopenharmony_ciclass V8WebDriverSerializer { 171cb0ef41Sopenharmony_ci public: 181cb0ef41Sopenharmony_ci static protocol::Response serializeV8Value( 191cb0ef41Sopenharmony_ci v8::Local<v8::Object> value, v8::Local<v8::Context> context, 201cb0ef41Sopenharmony_ci int max_depth, 211cb0ef41Sopenharmony_ci std::unique_ptr<protocol::Runtime::WebDriverValue>* result); 221cb0ef41Sopenharmony_ci}; 231cb0ef41Sopenharmony_ci} // namespace v8_inspector 241cb0ef41Sopenharmony_ci 251cb0ef41Sopenharmony_ci#endif // V8_INSPECTOR_V8_WEBDRIVER_SERIALIZER_H_ 26