1 // Copyright 2022 the V8 project authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #ifndef V8_INSPECTOR_V8_WEBDRIVER_SERIALIZER_H_ 6 #define V8_INSPECTOR_V8_WEBDRIVER_SERIALIZER_H_ 7 8 #include "include/v8-container.h" 9 #include "include/v8-context.h" 10 #include "include/v8-exception.h" 11 #include "include/v8-regexp.h" 12 #include "src/inspector/protocol/Runtime.h" 13 #include "src/inspector/v8-value-utils.h" 14 15 namespace v8_inspector { 16 class V8WebDriverSerializer { 17 public: 18 static protocol::Response serializeV8Value( 19 v8::Local<v8::Object> value, v8::Local<v8::Context> context, 20 int max_depth, 21 std::unique_ptr<protocol::Runtime::WebDriverValue>* result); 22 }; 23 } // namespace v8_inspector 24 25 #endif // V8_INSPECTOR_V8_WEBDRIVER_SERIALIZER_H_ 26