X-Git-Url: https://git.saurik.com/apple/javascriptcore.git/blobdiff_plain/81345200c95645a1b0d2635520f96ad55dfde63f..ed1e77d3adeb83d26fd1dfb16dd84cabdcefd250:/inspector/InspectorAgentBase.h diff --git a/inspector/InspectorAgentBase.h b/inspector/InspectorAgentBase.h index f6b6c55..63404cf 100644 --- a/inspector/InspectorAgentBase.h +++ b/inspector/InspectorAgentBase.h @@ -31,10 +31,10 @@ namespace Inspector { -class InspectorBackendDispatcher; -class InspectorFrontendChannel; +class BackendDispatcher; +class FrontendChannel; -enum class InspectorDisconnectReason { +enum class DisconnectReason { InspectedTargetDestroyed, InspectorDestroyed }; @@ -43,8 +43,10 @@ class InspectorAgentBase { public: virtual ~InspectorAgentBase() { } - virtual void didCreateFrontendAndBackend(InspectorFrontendChannel*, InspectorBackendDispatcher*) = 0; - virtual void willDestroyFrontendAndBackend(InspectorDisconnectReason reason) = 0; + String domainName() const { return m_name; } + + virtual void didCreateFrontendAndBackend(FrontendChannel*, BackendDispatcher*) = 0; + virtual void willDestroyFrontendAndBackend(DisconnectReason) = 0; virtual void discardAgent() { } protected: @@ -55,7 +57,7 @@ protected: String m_name; }; - + } // namespace Inspector #endif // !defined(InspectorAgentBase_h)