X-Git-Url: https://git.saurik.com/apple/javascriptcore.git/blobdiff_plain/2d39b0e377c0896910ee49ae70082ba665faf986..refs/heads/master:/inspector/InspectorAgentRegistry.h diff --git a/inspector/InspectorAgentRegistry.h b/inspector/InspectorAgentRegistry.h index 17d65e7..962f006 100644 --- a/inspector/InspectorAgentRegistry.h +++ b/inspector/InspectorAgentRegistry.h @@ -28,31 +28,41 @@ #define InspectorAgentRegistry_h #include +#include namespace Inspector { +class BackendDispatcher; +class FrontendChannel; class InspectorAgentBase; -class InspectorBackendDispatcher; -class InspectorFrontendChannel; -enum class InspectorDisconnectReason; -class JS_EXPORT_PRIVATE InspectorAgentRegistry { +enum class DisconnectReason; + +class JS_EXPORT_PRIVATE AgentRegistry { public: - InspectorAgentRegistry(); + AgentRegistry(); void append(std::unique_ptr); - void didCreateFrontendAndBackend(InspectorFrontendChannel*, InspectorBackendDispatcher*); - void willDestroyFrontendAndBackend(InspectorDisconnectReason reason); + void didCreateFrontendAndBackend(FrontendChannel*, BackendDispatcher*); + void willDestroyFrontendAndBackend(DisconnectReason); void discardAgents(); +#if ENABLE(INSPECTOR_ALTERNATE_DISPATCHERS) + void appendExtraAgent(std::unique_ptr); + Vector extraDomains() const { return m_extraDomains; } +#endif + private: // These are declared here to avoid MSVC from trying to create default iplementations which would // involve generating a copy constructor and copy assignment operator for the Vector of std::unique_ptrs. - InspectorAgentRegistry(const InspectorAgentRegistry&) = delete; - InspectorAgentRegistry& operator=(const InspectorAgentRegistry&) = delete; + AgentRegistry(const AgentRegistry&) = delete; + AgentRegistry& operator=(const AgentRegistry&) = delete; Vector> m_agents; +#if ENABLE(INSPECTOR_ALTERNATE_DISPATCHERS) + Vector m_extraDomains; +#endif }; } // namespace Inspector