summaryrefslogtreecommitdiff
path: root/Source/WebCore/inspector/PageConsoleAgent.h
diff options
context:
space:
mode:
authorLorry Tar Creator <lorry-tar-importer@lorry>2017-06-27 06:07:23 +0000
committerLorry Tar Creator <lorry-tar-importer@lorry>2017-06-27 06:07:23 +0000
commit1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c (patch)
tree46dcd36c86e7fbc6e5df36deb463b33e9967a6f7 /Source/WebCore/inspector/PageConsoleAgent.h
parent32761a6cee1d0dee366b885b7b9c777e67885688 (diff)
downloadWebKitGtk-tarball-master.tar.gz
Diffstat (limited to 'Source/WebCore/inspector/PageConsoleAgent.h')
-rw-r--r--Source/WebCore/inspector/PageConsoleAgent.h27
1 files changed, 10 insertions, 17 deletions
diff --git a/Source/WebCore/inspector/PageConsoleAgent.h b/Source/WebCore/inspector/PageConsoleAgent.h
index d557f1a8b..3177dc0fc 100644
--- a/Source/WebCore/inspector/PageConsoleAgent.h
+++ b/Source/WebCore/inspector/PageConsoleAgent.h
@@ -1,5 +1,6 @@
/*
* Copyright (C) 2011 Google Inc. All rights reserved.
+ * Copyright (C) 2015 Apple Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
@@ -28,35 +29,27 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef PageConsoleAgent_h
-#define PageConsoleAgent_h
+#pragma once
-#include "InspectorConsoleAgent.h"
-#include <wtf/PassOwnPtr.h>
-
-#if ENABLE(INSPECTOR)
+#include "InspectorWebAgentBase.h"
+#include "WebConsoleAgent.h"
namespace WebCore {
class InspectorDOMAgent;
-class PageConsoleAgent : public InspectorConsoleAgent {
+class PageConsoleAgent final : public WebConsoleAgent {
WTF_MAKE_NONCOPYABLE(PageConsoleAgent);
+ WTF_MAKE_FAST_ALLOCATED;
public:
- PageConsoleAgent(InstrumentingAgents*, PageInjectedScriptManager*, InspectorDOMAgent*);
- virtual ~PageConsoleAgent();
-
- virtual bool isWorkerAgent() override { return false; }
+ PageConsoleAgent(WebAgentContext&, Inspector::InspectorHeapAgent*, InspectorDOMAgent*);
+ virtual ~PageConsoleAgent() { }
private:
- virtual void clearMessages(ErrorString*) override;
- virtual void addInspectedNode(ErrorString*, int nodeId) override;
+ void clearMessages(ErrorString&) override;
+ void addInspectedNode(ErrorString&, int nodeId) override;
InspectorDOMAgent* m_inspectorDOMAgent;
};
} // namespace WebCore
-
-#endif // ENABLE(INSPECTOR)
-
-#endif // !defined(PageConsoleAgent_h)