Replace WTF::move with WTFMove
[WebKit-https.git] / Source / JavaScriptCore / inspector / scripts / tests / expected / type-declaration-object-type.json-result
index 029ef8a..86051c6 100644 (file)
 #if ENABLE(INSPECTOR_ALTERNATE_DISPATCHERS)
 
 #include "InspectorProtocolTypes.h"
+#include <inspector/InspectorFrontendRouter.h>
 #include <JavaScriptCore/InspectorBackendDispatcher.h>
 
 namespace Inspector {
 
-class AlternateInspectorBackendDispatcher {
+class AlternateBackendDispatcher {
 public:
-    void setBackendDispatcher(PassRefPtr<InspectorBackendDispatcher> dispatcher) { m_backendDispatcher = dispatcher; }
-    InspectorBackendDispatcher* backendDispatcher() const { return m_backendDispatcher.get(); }
+    void setBackendDispatcher(RefPtr<BackendDispatcher>&& dispatcher) { m_backendDispatcher = WTFMove(dispatcher); }
+    BackendDispatcher* backendDispatcher() const { return m_backendDispatcher.get(); }
 private:
-    RefPtr<InspectorBackendDispatcher> m_backendDispatcher;
+    RefPtr<BackendDispatcher> m_backendDispatcher;
 };
 
 
@@ -123,11 +124,8 @@ private:
 #ifndef InspectorBackendDispatchers_h
 #define InspectorBackendDispatchers_h
 
-#if ENABLE(INSPECTOR)
-
 #include "InspectorProtocolObjects.h"
 #include <inspector/InspectorBackendDispatcher.h>
-#include <wtf/PassRefPtr.h>
 #include <wtf/text/WTFString.h>
 
 namespace Inspector {
@@ -138,8 +136,6 @@ typedef String ErrorString;
 
 } // namespace Inspector
 
-#endif // ENABLE(INSPECTOR)
-
 #endif // !defined(InspectorBackendDispatchers_h)
 ### End File: InspectorBackendDispatchers.h
 
@@ -177,10 +173,9 @@ typedef String ErrorString;
 #include "config.h"
 #include "InspectorBackendDispatchers.h"
 
-#if ENABLE(INSPECTOR)
-
-#include <inspector/InspectorFrontendChannel.h>
+#include <inspector/InspectorFrontendRouter.h>
 #include <inspector/InspectorValues.h>
+#include <wtf/NeverDestroyed.h>
 #include <wtf/text/CString.h>
 
 #if ENABLE(INSPECTOR_ALTERNATE_DISPATCHERS)
@@ -193,8 +188,6 @@ namespace Inspector {
 
 } // namespace Inspector
 
-#endif // ENABLE(INSPECTOR)
-
 ### End File: InspectorBackendDispatchers.cpp
 
 ### Begin File: InspectorFrontendDispatchers.h
@@ -231,22 +224,16 @@ namespace Inspector {
 #ifndef InspectorFrontendDispatchers_h
 #define InspectorFrontendDispatchers_h
 
-#if ENABLE(INSPECTOR)
-
 #include "InspectorProtocolObjects.h"
-#include <inspector/InspectorFrontendChannel.h>
 #include <inspector/InspectorValues.h>
-#include <wtf/PassRefPtr.h>
 #include <wtf/text/WTFString.h>
 
 namespace Inspector {
 
-
+class FrontendRouter;
 
 } // namespace Inspector
 
-#endif // ENABLE(INSPECTOR)
-
 #endif // !defined(InspectorFrontendDispatchers_h)
 ### End File: InspectorFrontendDispatchers.h
 
@@ -284,16 +271,13 @@ namespace Inspector {
 #include "config.h"
 #include "InspectorFrontendDispatchers.h"
 
-#if ENABLE(INSPECTOR)
-
+#include "InspectorFrontendRouter.h"
 #include <wtf/text/CString.h>
 
 namespace Inspector {
 
 } // namespace Inspector
 
-#endif // ENABLE(INSPECTOR)
-
 ### End File: InspectorFrontendDispatchers.cpp
 
 ### Begin File: InspectorProtocolObjects.h
@@ -330,11 +314,8 @@ namespace Inspector {
 #ifndef InspectorProtocolObjects_h
 #define InspectorProtocolObjects_h
 
-#if ENABLE(INSPECTOR)
-
 #include <inspector/InspectorProtocolTypes.h>
 #include <wtf/Assertions.h>
-#include <wtf/PassRefPtr.h>
 
 namespace Inspector {
 
@@ -357,7 +338,11 @@ class ParameterBundle;
 // End of forward declarations.
 
 
-
+// Typedefs.
+namespace Database {
+typedef Inspector::Protocol::Array<Inspector::Protocol::Database::Error> ErrorList;
+} // Database
+// End of typedefs.
 
 String getEnumConstantValue(int code);
 
@@ -380,17 +365,17 @@ public:
     template<int STATE>
     class Builder {
     private:
-        RefPtr<Inspector::InspectorObject> m_result;
+        RefPtr<InspectorObject> m_result;
 
         template<int STEP> Builder<STATE | STEP>& castState()
         {
             return *reinterpret_cast<Builder<STATE | STEP>*>(this);
         }
 
-        Builder(PassRefPtr</*Error*/Inspector::InspectorObject> ptr)
+        Builder(Ref</*Error*/InspectorObject>&& object)
+            : m_result(WTFMove(object))
         {
             COMPILE_ASSERT(STATE == NoFieldsSet, builder_created_in_non_init_state);
-            m_result = ptr;
         }
         friend class Error;
     public:
@@ -409,30 +394,27 @@ public:
             return castState<CodeSet>();
         }
 
-        operator RefPtr<Error>& ()
+        Ref<Error> release()
         {
             COMPILE_ASSERT(STATE == AllFieldsSet, result_is_not_ready);
-            COMPILE_ASSERT(sizeof(Error) == sizeof(Inspector::InspectorObject), cannot_cast);
-            return *reinterpret_cast<RefPtr<Error>*>(&m_result);
-        }
+            COMPILE_ASSERT(sizeof(Error) == sizeof(InspectorObject), cannot_cast);
 
-        PassRefPtr<Error> release()
-        {
-            return RefPtr<Error>(*this).release();
+            Ref<InspectorObject> result = m_result.releaseNonNull();
+            return WTFMove(*reinterpret_cast<Ref<Error>*>(&result));
         }
     };
 
     /*
      * Synthetic constructor:
-     * RefPtr<Error> result = Error::create()
+     * Ref<Error> result = Error::create()
      *     .setMessage(...)
-     *     .setCode(...);
+     *     .setCode(...)
+     *     .release();
      */
     static Builder<NoFieldsSet> create()
     {
-        return Builder<NoFieldsSet>(Inspector::InspectorObject::create());
+        return Builder<NoFieldsSet>(InspectorObject::create());
     }
-    typedef Inspector::Protocol::StructItemTraits ItemTraits;
 };
 
 class OptionalParameterBundle : public Inspector::InspectorObjectBase {
@@ -445,47 +427,44 @@ public:
     template<int STATE>
     class Builder {
     private:
-        RefPtr<Inspector::InspectorObject> m_result;
+        RefPtr<InspectorObject> m_result;
 
         template<int STEP> Builder<STATE | STEP>& castState()
         {
             return *reinterpret_cast<Builder<STATE | STEP>*>(this);
         }
 
-        Builder(PassRefPtr</*OptionalParameterBundle*/Inspector::InspectorObject> ptr)
+        Builder(Ref</*OptionalParameterBundle*/InspectorObject>&& object)
+            : m_result(WTFMove(object))
         {
             COMPILE_ASSERT(STATE == NoFieldsSet, builder_created_in_non_init_state);
-            m_result = ptr;
         }
         friend class OptionalParameterBundle;
     public:
 
-        operator RefPtr<OptionalParameterBundle>& ()
+        Ref<OptionalParameterBundle> release()
         {
             COMPILE_ASSERT(STATE == AllFieldsSet, result_is_not_ready);
-            COMPILE_ASSERT(sizeof(OptionalParameterBundle) == sizeof(Inspector::InspectorObject), cannot_cast);
-            return *reinterpret_cast<RefPtr<OptionalParameterBundle>*>(&m_result);
-        }
+            COMPILE_ASSERT(sizeof(OptionalParameterBundle) == sizeof(InspectorObject), cannot_cast);
 
-        PassRefPtr<OptionalParameterBundle> release()
-        {
-            return RefPtr<OptionalParameterBundle>(*this).release();
+            Ref<InspectorObject> result = m_result.releaseNonNull();
+            return WTFMove(*reinterpret_cast<Ref<OptionalParameterBundle>*>(&result));
         }
     };
 
     /*
      * Synthetic constructor:
-     * RefPtr<OptionalParameterBundle> result = OptionalParameterBundle::create();
+     * Ref<OptionalParameterBundle> result = OptionalParameterBundle::create()
+     *     .release();
      */
     static Builder<NoFieldsSet> create()
     {
-        return Builder<NoFieldsSet>(Inspector::InspectorObject::create());
+        return Builder<NoFieldsSet>(InspectorObject::create());
     }
-    typedef Inspector::Protocol::StructItemTraits ItemTraits;
 
-    void setColumnNames(PassRefPtr<Inspector::Protocol::Array<String>> value)
+    void setColumnNames(RefPtr<Inspector::Protocol::Array<String>> value)
     {
-        InspectorObjectBase::setArray(ASCIILiteral("columnNames"), value);
+        InspectorObjectBase::setArray(ASCIILiteral("columnNames"), WTFMove(value));
     }
 
     void setNotes(const String& value)
@@ -498,19 +477,24 @@ public:
         InspectorObjectBase::setDouble(ASCIILiteral("timestamp"), value);
     }
 
-    void setValues(PassRefPtr<Inspector::InspectorObject> value)
+    void setValues(RefPtr<Inspector::InspectorObject> value)
+    {
+        InspectorObjectBase::setObject(ASCIILiteral("values"), WTFMove(value));
+    }
+
+    void setPayload(RefPtr<Inspector::InspectorValue> value)
     {
-        InspectorObjectBase::setObject(ASCIILiteral("values"), value);
+        InspectorObjectBase::setValue(ASCIILiteral("payload"), WTFMove(value));
     }
 
-    void setPayload(PassRefPtr<Inspector::InspectorValue> value)
+    void setError(RefPtr<Inspector::Protocol::Database::Error> value)
     {
-        InspectorObjectBase::setValue(ASCIILiteral("payload"), value);
+        InspectorObjectBase::setObject(ASCIILiteral("error"), WTFMove(value));
     }
 
-    void setError(PassRefPtr<Inspector::Protocol::Database::Error> value)
+    void setErrorList(RefPtr<Inspector::Protocol::Database::ErrorList> value)
     {
-        InspectorObjectBase::setObject(ASCIILiteral("error"), value);
+        InspectorObjectBase::setArray(ASCIILiteral("errorList"), WTFMove(value));
     }
 };
 
@@ -524,28 +508,29 @@ public:
         ValuesSet = 1 << 3,
         PayloadSet = 1 << 4,
         ErrorSet = 1 << 5,
-        AllFieldsSet = (ColumnNamesSet | NotesSet | TimestampSet | ValuesSet | PayloadSet | ErrorSet)
+        ErrorListSet = 1 << 6,
+        AllFieldsSet = (ColumnNamesSet | NotesSet | TimestampSet | ValuesSet | PayloadSet | ErrorSet | ErrorListSet)
     };
 
     template<int STATE>
     class Builder {
     private:
-        RefPtr<Inspector::InspectorObject> m_result;
+        RefPtr<InspectorObject> m_result;
 
         template<int STEP> Builder<STATE | STEP>& castState()
         {
             return *reinterpret_cast<Builder<STATE | STEP>*>(this);
         }
 
-        Builder(PassRefPtr</*ParameterBundle*/Inspector::InspectorObject> ptr)
+        Builder(Ref</*ParameterBundle*/InspectorObject>&& object)
+            : m_result(WTFMove(object))
         {
             COMPILE_ASSERT(STATE == NoFieldsSet, builder_created_in_non_init_state);
-            m_result = ptr;
         }
         friend class ParameterBundle;
     public:
 
-        Builder<STATE | ColumnNamesSet>& setColumnNames(PassRefPtr<Inspector::Protocol::Array<String>> value)
+        Builder<STATE | ColumnNamesSet>& setColumnNames(RefPtr<Inspector::Protocol::Array<String>> value)
         {
             COMPILE_ASSERT(!(STATE & ColumnNamesSet), property_columnNames_already_set);
             m_result->setArray(ASCIILiteral("columnNames"), value);
@@ -566,55 +551,60 @@ public:
             return castState<TimestampSet>();
         }
 
-        Builder<STATE | ValuesSet>& setValues(PassRefPtr<Inspector::InspectorObject> value)
+        Builder<STATE | ValuesSet>& setValues(RefPtr<Inspector::InspectorObject> value)
         {
             COMPILE_ASSERT(!(STATE & ValuesSet), property_values_already_set);
             m_result->setObject(ASCIILiteral("values"), value);
             return castState<ValuesSet>();
         }
 
-        Builder<STATE | PayloadSet>& setPayload(PassRefPtr<Inspector::InspectorValue> value)
+        Builder<STATE | PayloadSet>& setPayload(RefPtr<Inspector::InspectorValue> value)
         {
             COMPILE_ASSERT(!(STATE & PayloadSet), property_payload_already_set);
             m_result->setValue(ASCIILiteral("payload"), value);
             return castState<PayloadSet>();
         }
 
-        Builder<STATE | ErrorSet>& setError(PassRefPtr<Inspector::Protocol::Database::Error> value)
+        Builder<STATE | ErrorSet>& setError(RefPtr<Inspector::Protocol::Database::Error> value)
         {
             COMPILE_ASSERT(!(STATE & ErrorSet), property_error_already_set);
             m_result->setObject(ASCIILiteral("error"), value);
             return castState<ErrorSet>();
         }
 
-        operator RefPtr<ParameterBundle>& ()
+        Builder<STATE | ErrorListSet>& setErrorList(RefPtr<Inspector::Protocol::Database::ErrorList> value)
         {
-            COMPILE_ASSERT(STATE == AllFieldsSet, result_is_not_ready);
-            COMPILE_ASSERT(sizeof(ParameterBundle) == sizeof(Inspector::InspectorObject), cannot_cast);
-            return *reinterpret_cast<RefPtr<ParameterBundle>*>(&m_result);
+            COMPILE_ASSERT(!(STATE & ErrorListSet), property_errorList_already_set);
+            m_result->setArray(ASCIILiteral("errorList"), value);
+            return castState<ErrorListSet>();
         }
 
-        PassRefPtr<ParameterBundle> release()
+        Ref<ParameterBundle> release()
         {
-            return RefPtr<ParameterBundle>(*this).release();
+            COMPILE_ASSERT(STATE == AllFieldsSet, result_is_not_ready);
+            COMPILE_ASSERT(sizeof(ParameterBundle) == sizeof(InspectorObject), cannot_cast);
+
+            Ref<InspectorObject> result = m_result.releaseNonNull();
+            return WTFMove(*reinterpret_cast<Ref<ParameterBundle>*>(&result));
         }
     };
 
     /*
      * Synthetic constructor:
-     * RefPtr<ParameterBundle> result = ParameterBundle::create()
+     * Ref<ParameterBundle> result = ParameterBundle::create()
      *     .setColumnNames(...)
      *     .setNotes(...)
      *     .setTimestamp(...)
      *     .setValues(...)
      *     .setPayload(...)
-     *     .setError(...);
+     *     .setError(...)
+     *     .setErrorList(...)
+     *     .release();
      */
     static Builder<NoFieldsSet> create()
     {
-        return Builder<NoFieldsSet>(Inspector::InspectorObject::create());
+        return Builder<NoFieldsSet>(InspectorObject::create());
     }
-    typedef Inspector::Protocol::StructItemTraits ItemTraits;
 };
 
 /* Conflicted names may cause generated getters/setters to clash with built-in InspectorObject methods. */
@@ -633,17 +623,17 @@ public:
     template<int STATE>
     class Builder {
     private:
-        RefPtr<Inspector::InspectorObject> m_result;
+        RefPtr<InspectorObject> m_result;
 
         template<int STEP> Builder<STATE | STEP>& castState()
         {
             return *reinterpret_cast<Builder<STATE | STEP>*>(this);
         }
 
-        Builder(PassRefPtr</*ObjectWithPropertyNameConflicts*/Inspector::InspectorObject> ptr)
+        Builder(Ref</*ObjectWithPropertyNameConflicts*/InspectorObject>&& object)
+            : m_result(WTFMove(object))
         {
             COMPILE_ASSERT(STATE == NoFieldsSet, builder_created_in_non_init_state);
-            m_result = ptr;
         }
         friend class ObjectWithPropertyNameConflicts;
     public:
@@ -683,33 +673,30 @@ public:
             return castState<ObjectSet>();
         }
 
-        operator RefPtr<ObjectWithPropertyNameConflicts>& ()
+        Ref<ObjectWithPropertyNameConflicts> release()
         {
             COMPILE_ASSERT(STATE == AllFieldsSet, result_is_not_ready);
-            COMPILE_ASSERT(sizeof(ObjectWithPropertyNameConflicts) == sizeof(Inspector::InspectorObject), cannot_cast);
-            return *reinterpret_cast<RefPtr<ObjectWithPropertyNameConflicts>*>(&m_result);
-        }
+            COMPILE_ASSERT(sizeof(ObjectWithPropertyNameConflicts) == sizeof(InspectorObject), cannot_cast);
 
-        PassRefPtr<ObjectWithPropertyNameConflicts> release()
-        {
-            return RefPtr<ObjectWithPropertyNameConflicts>(*this).release();
+            Ref<InspectorObject> result = m_result.releaseNonNull();
+            return WTFMove(*reinterpret_cast<Ref<ObjectWithPropertyNameConflicts>*>(&result));
         }
     };
 
     /*
      * Synthetic constructor:
-     * RefPtr<ObjectWithPropertyNameConflicts> result = ObjectWithPropertyNameConflicts::create()
+     * Ref<ObjectWithPropertyNameConflicts> result = ObjectWithPropertyNameConflicts::create()
      *     .setInteger(...)
      *     .setArray(...)
      *     .setString(...)
      *     .setValue(...)
-     *     .setObject(...);
+     *     .setObject(...)
+     *     .release();
      */
     static Builder<NoFieldsSet> create()
     {
-        return Builder<NoFieldsSet>(Inspector::InspectorObject::create());
+        return Builder<NoFieldsSet>(InspectorObject::create());
     }
-    typedef Inspector::Protocol::StructItemTraits ItemTraits;
 };
 
 } // Database
@@ -731,22 +718,22 @@ public:
     template<int STATE>
     class Builder {
     private:
-        RefPtr<Inspector::InspectorObject> m_result;
+        RefPtr<InspectorObject> m_result;
 
         template<int STEP> Builder<STATE | STEP>& castState()
         {
             return *reinterpret_cast<Builder<STATE | STEP>*>(this);
         }
 
-        Builder(PassRefPtr</*ParameterBundle*/Inspector::InspectorObject> ptr)
+        Builder(Ref</*ParameterBundle*/InspectorObject>&& object)
+            : m_result(WTFMove(object))
         {
             COMPILE_ASSERT(STATE == NoFieldsSet, builder_created_in_non_init_state);
-            m_result = ptr;
         }
         friend class ParameterBundle;
     public:
 
-        Builder<STATE | ColumnNamesSet>& setColumnNames(PassRefPtr<Inspector::Protocol::Array<String>> value)
+        Builder<STATE | ColumnNamesSet>& setColumnNames(RefPtr<Inspector::Protocol::Array<String>> value)
         {
             COMPILE_ASSERT(!(STATE & ColumnNamesSet), property_columnNames_already_set);
             m_result->setArray(ASCIILiteral("columnNames"), value);
@@ -767,55 +754,52 @@ public:
             return castState<TimestampSet>();
         }
 
-        Builder<STATE | ValuesSet>& setValues(PassRefPtr<Inspector::InspectorObject> value)
+        Builder<STATE | ValuesSet>& setValues(RefPtr<Inspector::InspectorObject> value)
         {
             COMPILE_ASSERT(!(STATE & ValuesSet), property_values_already_set);
             m_result->setObject(ASCIILiteral("values"), value);
             return castState<ValuesSet>();
         }
 
-        Builder<STATE | PayloadSet>& setPayload(PassRefPtr<Inspector::InspectorValue> value)
+        Builder<STATE | PayloadSet>& setPayload(RefPtr<Inspector::InspectorValue> value)
         {
             COMPILE_ASSERT(!(STATE & PayloadSet), property_payload_already_set);
             m_result->setValue(ASCIILiteral("payload"), value);
             return castState<PayloadSet>();
         }
 
-        Builder<STATE | ErrorSet>& setError(PassRefPtr<Inspector::Protocol::Database::Error> value)
+        Builder<STATE | ErrorSet>& setError(RefPtr<Inspector::Protocol::Database::Error> value)
         {
             COMPILE_ASSERT(!(STATE & ErrorSet), property_error_already_set);
             m_result->setObject(ASCIILiteral("error"), value);
             return castState<ErrorSet>();
         }
 
-        operator RefPtr<ParameterBundle>& ()
+        Ref<ParameterBundle> release()
         {
             COMPILE_ASSERT(STATE == AllFieldsSet, result_is_not_ready);
-            COMPILE_ASSERT(sizeof(ParameterBundle) == sizeof(Inspector::InspectorObject), cannot_cast);
-            return *reinterpret_cast<RefPtr<ParameterBundle>*>(&m_result);
-        }
+            COMPILE_ASSERT(sizeof(ParameterBundle) == sizeof(InspectorObject), cannot_cast);
 
-        PassRefPtr<ParameterBundle> release()
-        {
-            return RefPtr<ParameterBundle>(*this).release();
+            Ref<InspectorObject> result = m_result.releaseNonNull();
+            return WTFMove(*reinterpret_cast<Ref<ParameterBundle>*>(&result));
         }
     };
 
     /*
      * Synthetic constructor:
-     * RefPtr<ParameterBundle> result = ParameterBundle::create()
+     * Ref<ParameterBundle> result = ParameterBundle::create()
      *     .setColumnNames(...)
      *     .setNotes(...)
      *     .setTimestamp(...)
      *     .setValues(...)
      *     .setPayload(...)
-     *     .setError(...);
+     *     .setError(...)
+     *     .release();
      */
     static Builder<NoFieldsSet> create()
     {
-        return Builder<NoFieldsSet>(Inspector::InspectorObject::create());
+        return Builder<NoFieldsSet>(InspectorObject::create());
     }
-    typedef Inspector::Protocol::StructItemTraits ItemTraits;
 };
 
 } // Test
@@ -826,8 +810,6 @@ public:
 
 } // namespace Inspector
 
-#endif // ENABLE(INSPECTOR)
-
 #endif // !defined(InspectorProtocolObjects_h)
 ### End File: InspectorProtocolObjects.h
 
@@ -865,8 +847,6 @@ public:
 #include "config.h"
 #include "InspectorProtocolObjects.h"
 
-#if ENABLE(INSPECTOR)
-
 #include <wtf/text/CString.h>
 
 namespace Inspector {
@@ -886,8 +866,6 @@ String getEnumConstantValue(int code) {
 
 } // namespace Inspector
 
-#endif // ENABLE(INSPECTOR)
-
 ### End File: InspectorProtocolObjects.cpp
 
 ### Begin File: RWIProtocolBackendDispatchers.h
@@ -924,8 +902,7 @@ String getEnumConstantValue(int code) {
 #include <JavaScriptCore/InspectorAlternateBackendDispatchers.h>
 #include <wtf/RetainPtr.h>
 
-@protocol RWIProtocolDatabaseDomainHandler;
-@protocol RWIProtocolTestDomainHandler;
+
 
 namespace Inspector {
 
@@ -1037,8 +1014,9 @@ using namespace Inspector;
 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-object-type.json
 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py
 
-#import "RWIProtocol.h"
+#import <WebInspector/RWIProtocol.h>
 
+__attribute__((visibility ("default")))
 @interface RWIProtocolConfiguration : NSObject
 @end
 
@@ -1081,7 +1059,6 @@ using namespace Inspector;
 
 #include "RWIProtocolInternal.h"
 #include "RWIProtocolEnumConversionHelpers.h"
-#include <JavaScriptCore/InspectorFrontendChannel.h>
 #include <JavaScriptCore/InspectorValues.h>
 
 namespace Inspector {
@@ -1130,7 +1107,7 @@ namespace Inspector {
 namespace Inspector {
 
 template<typename ObjCEnumType>
-ObjCEnumType fromProtocolString(String value);
+ObjCEnumType fromProtocolString(const String& value);
 
 
 
@@ -1175,7 +1152,6 @@ ObjCEnumType fromProtocolString(String value);
 #import "RWIProtocolInternal.h"
 
 #import "RWIProtocolEnumConversionHelpers.h"
-#import <JavaScriptCore/InspectorFrontendChannel.h>
 #import <JavaScriptCore/InspectorValues.h>
 
 using namespace Inspector;
@@ -1233,12 +1209,14 @@ using namespace Inspector;
 
 
 
+__attribute__((visibility ("default")))
 @interface RWIProtocolDatabaseError : RWIProtocolJSONObject
-- (instancetype)initWithMessage:(NSString *)message code:(NSInteger)code;
+- (instancetype)initWithMessage:(NSString *)message code:(int)code;
 /* required */ @property (nonatomic, copy) NSString *message;
-/* required */ @property (nonatomic, assign) NSInteger code;
+/* required */ @property (nonatomic, assign) int code;
 @end
 
+__attribute__((visibility ("default")))
 @interface RWIProtocolDatabaseOptionalParameterBundle : RWIProtocolJSONObject
 /* optional */ @property (nonatomic, copy) NSArray/*<NSString>*/ *columnNames;
 /* optional */ @property (nonatomic, copy) NSString *notes;
@@ -1246,18 +1224,22 @@ using namespace Inspector;
 /* optional */ @property (nonatomic, retain) RWIProtocolJSONObject *values;
 /* optional */ @property (nonatomic, retain) RWIProtocolJSONObject *payload;
 /* optional */ @property (nonatomic, retain) RWIProtocolDatabaseError *error;
+/* optional */ @property (nonatomic, copy) NSArray/*<RWIProtocolDatabaseError>*/ *errorList;
 @end
 
+__attribute__((visibility ("default")))
 @interface RWIProtocolDatabaseParameterBundle : RWIProtocolJSONObject
-- (instancetype)initWithColumnNames:(NSArray/*<NSString>*/ *)columnNames notes:(NSString *)notes timestamp:(double)timestamp values:(RWIProtocolJSONObject *)values payload:(RWIProtocolJSONObject *)payload error:(RWIProtocolDatabaseError *)error;
+- (instancetype)initWithColumnNames:(NSArray/*<NSString>*/ *)columnNames notes:(NSString *)notes timestamp:(double)timestamp values:(RWIProtocolJSONObject *)values payload:(RWIProtocolJSONObject *)payload error:(RWIProtocolDatabaseError *)error errorList:(NSArray/*<RWIProtocolDatabaseError>*/ *)errorList;
 /* required */ @property (nonatomic, copy) NSArray/*<NSString>*/ *columnNames;
 /* required */ @property (nonatomic, copy) NSString *notes;
 /* required */ @property (nonatomic, assign) double timestamp;
 /* required */ @property (nonatomic, retain) RWIProtocolJSONObject *values;
 /* required */ @property (nonatomic, retain) RWIProtocolJSONObject *payload;
 /* required */ @property (nonatomic, retain) RWIProtocolDatabaseError *error;
+/* required */ @property (nonatomic, copy) NSArray/*<RWIProtocolDatabaseError>*/ *errorList;
 @end
 
+__attribute__((visibility ("default")))
 @interface RWIProtocolDatabaseObjectWithPropertyNameConflicts : RWIProtocolJSONObject
 - (instancetype)initWithInteger:(NSString *)integer array:(NSString *)array string:(NSString *)string value:(NSString *)value object:(NSString *)object;
 /* required */ @property (nonatomic, copy) NSString *integer;
@@ -1267,9 +1249,11 @@ using namespace Inspector;
 /* required */ @property (nonatomic, copy) NSString *object;
 @end
 
+__attribute__((visibility ("default")))
 @interface RWIProtocolDatabaseDummyObject : RWIProtocolJSONObject
 @end
 
+__attribute__((visibility ("default")))
 @interface RWIProtocolTestParameterBundle : RWIProtocolJSONObject
 - (instancetype)initWithColumnNames:(NSArray/*<NSString>*/ *)columnNames notes:(NSString *)notes timestamp:(double)timestamp values:(RWIProtocolJSONObject *)values payload:(RWIProtocolJSONObject *)payload error:(RWIProtocolDatabaseError *)error;
 /* required */ @property (nonatomic, copy) NSArray/*<NSString>*/ *columnNames;
@@ -1324,19 +1308,20 @@ using namespace Inspector;
 #import "RWIProtocolEnumConversionHelpers.h"
 #import <JavaScriptCore/InspectorValues.h>
 #import <wtf/Assertions.h>
-#import <wtf/PassRefPtr.h>
 
 using namespace Inspector;
 
 
 @implementation RWIProtocolDatabaseError
 
-- (instancetype)initWithMessage:(NSString *)message code:(NSInteger)code;
+- (instancetype)initWithMessage:(NSString *)message code:(int)code;
 {
     self = [super init];
     if (!self)
         return nil;
 
+    THROW_EXCEPTION_FOR_REQUIRED_PROPERTY(message, @"message");
+
     self.message = message;
     self.code = code;
 
@@ -1353,12 +1338,12 @@ using namespace Inspector;
     return [super stringForKey:@"message"];
 }
 
-- (void)setCode:(NSInteger)code
+- (void)setCode:(int)code
 {
     [super setInteger:code forKey:@"code"];
 }
 
-- (NSInteger)code
+- (int)code
 {
     return [super integerForKey:@"code"];
 }
@@ -1427,22 +1412,42 @@ using namespace Inspector;
     return (RWIProtocolDatabaseError *)[super objectForKey:@"error"];
 }
 
+- (void)setErrorList:(NSArray/*<RWIProtocolDatabaseError>*/ *)errorList
+{
+    THROW_EXCEPTION_FOR_BAD_TYPE_IN_ARRAY(errorList, [RWIProtocolDatabaseError class]);
+    [super setInspectorArray:inspectorObjectArray(errorList) forKey:@"errorList"];
+}
+
+- (NSArray/*<RWIProtocolDatabaseError>*/ *)errorList
+{
+    return objcArray<RWIProtocolDatabaseError>([super inspectorArrayForKey:@"errorList"]);
+}
+
 @end
 
 @implementation RWIProtocolDatabaseParameterBundle
 
-- (instancetype)initWithColumnNames:(NSArray/*<NSString>*/ *)columnNames notes:(NSString *)notes timestamp:(double)timestamp values:(RWIProtocolJSONObject *)values payload:(RWIProtocolJSONObject *)payload error:(RWIProtocolDatabaseError *)error;
+- (instancetype)initWithColumnNames:(NSArray/*<NSString>*/ *)columnNames notes:(NSString *)notes timestamp:(double)timestamp values:(RWIProtocolJSONObject *)values payload:(RWIProtocolJSONObject *)payload error:(RWIProtocolDatabaseError *)error errorList:(NSArray/*<RWIProtocolDatabaseError>*/ *)errorList;
 {
     self = [super init];
     if (!self)
         return nil;
 
+    THROW_EXCEPTION_FOR_REQUIRED_PROPERTY(columnNames, @"columnNames");
+    THROW_EXCEPTION_FOR_REQUIRED_PROPERTY(notes, @"notes");
+    THROW_EXCEPTION_FOR_REQUIRED_PROPERTY(values, @"values");
+    THROW_EXCEPTION_FOR_REQUIRED_PROPERTY(payload, @"payload");
+    THROW_EXCEPTION_FOR_REQUIRED_PROPERTY(error, @"error");
+    THROW_EXCEPTION_FOR_REQUIRED_PROPERTY(errorList, @"errorList");
+    THROW_EXCEPTION_FOR_BAD_TYPE_IN_ARRAY(errorList, [RWIProtocolDatabaseError class]);
+
     self.columnNames = columnNames;
     self.notes = notes;
     self.timestamp = timestamp;
     self.values = values;
     self.payload = payload;
     self.error = error;
+    self.errorList = errorList;
 
     return self;
 }
@@ -1507,6 +1512,17 @@ using namespace Inspector;
     return (RWIProtocolDatabaseError *)[super objectForKey:@"error"];
 }
 
+- (void)setErrorList:(NSArray/*<RWIProtocolDatabaseError>*/ *)errorList
+{
+    THROW_EXCEPTION_FOR_BAD_TYPE_IN_ARRAY(errorList, [RWIProtocolDatabaseError class]);
+    [super setInspectorArray:inspectorObjectArray(errorList) forKey:@"errorList"];
+}
+
+- (NSArray/*<RWIProtocolDatabaseError>*/ *)errorList
+{
+    return objcArray<RWIProtocolDatabaseError>([super inspectorArrayForKey:@"errorList"]);
+}
+
 @end
 
 @implementation RWIProtocolDatabaseObjectWithPropertyNameConflicts
@@ -1517,6 +1533,12 @@ using namespace Inspector;
     if (!self)
         return nil;
 
+    THROW_EXCEPTION_FOR_REQUIRED_PROPERTY(integer, @"integer");
+    THROW_EXCEPTION_FOR_REQUIRED_PROPERTY(array, @"array");
+    THROW_EXCEPTION_FOR_REQUIRED_PROPERTY(string, @"string");
+    THROW_EXCEPTION_FOR_REQUIRED_PROPERTY(value, @"value");
+    THROW_EXCEPTION_FOR_REQUIRED_PROPERTY(object, @"object");
+
     self.integer = integer;
     self.array = array;
     self.string = string;
@@ -1591,6 +1613,12 @@ using namespace Inspector;
     if (!self)
         return nil;
 
+    THROW_EXCEPTION_FOR_REQUIRED_PROPERTY(columnNames, @"columnNames");
+    THROW_EXCEPTION_FOR_REQUIRED_PROPERTY(notes, @"notes");
+    THROW_EXCEPTION_FOR_REQUIRED_PROPERTY(values, @"values");
+    THROW_EXCEPTION_FOR_REQUIRED_PROPERTY(payload, @"payload");
+    THROW_EXCEPTION_FOR_REQUIRED_PROPERTY(error, @"error");
+
     self.columnNames = columnNames;
     self.notes = notes;
     self.timestamp = timestamp;