]> git.saurik.com Git - apple/javascriptcore.git/blobdiff - inspector/InspectorAgentBase.h
JavaScriptCore-7601.1.46.3.tar.gz
[apple/javascriptcore.git] / inspector / InspectorAgentBase.h
index f6b6c55cbcf5849f2672d3665213ed072d397a6e..63404cf54254ad6a3eaa1a5f27c49b91772c8514 100644 (file)
 
 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)