From 1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c Mon Sep 17 00:00:00 2001 From: Lorry Tar Creator Date: Tue, 27 Jun 2017 06:07:23 +0000 Subject: webkitgtk-2.16.5 --- Source/WebCore/inspector/PageConsoleAgent.h | 27 ++++++++++----------------- 1 file changed, 10 insertions(+), 17 deletions(-) (limited to 'Source/WebCore/inspector/PageConsoleAgent.h') 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 - -#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) -- cgit v1.2.1