#ifndef InspectorMemoryAgent_h
#define InspectorMemoryAgent_h
-#include "InspectorFrontend.h"
+#include "core/InspectorFrontend.h"
#include "core/inspector/InspectorBaseAgent.h"
#include "wtf/PassOwnPtr.h"
-namespace WebCore {
-
-class InstrumentingAgents;
+namespace blink {
typedef String ErrorString;
-class InspectorMemoryAgent : public InspectorBaseAgent<InspectorMemoryAgent>, public InspectorBackendDispatcher::MemoryCommandHandler {
+class InspectorMemoryAgent final : public InspectorBaseAgent<InspectorMemoryAgent>, public InspectorBackendDispatcher::MemoryCommandHandler {
WTF_MAKE_NONCOPYABLE(InspectorMemoryAgent);
public:
- typedef Vector<OwnPtr<InspectorBaseAgentInterface> > InspectorAgents;
-
- static PassOwnPtr<InspectorMemoryAgent> create(InstrumentingAgents* instrumentingAgents, InspectorCompositeState* state)
+ static PassOwnPtrWillBeRawPtr<InspectorMemoryAgent> create()
{
- return adoptPtr(new InspectorMemoryAgent(instrumentingAgents, state));
+ return adoptPtrWillBeNoop(new InspectorMemoryAgent());
}
virtual ~InspectorMemoryAgent();
- virtual void getDOMCounters(ErrorString*, int* documents, int* nodes, int* jsEventListeners);
+ virtual void getDOMCounters(ErrorString*, int* documents, int* nodes, int* jsEventListeners) override;
- virtual void setFrontend(InspectorFrontend*);
- virtual void clearFrontend();
+ virtual void setFrontend(InspectorFrontend*) override;
+ virtual void clearFrontend() override;
private:
- InspectorMemoryAgent(InstrumentingAgents*, InspectorCompositeState*);
+ InspectorMemoryAgent();
InspectorFrontend::Memory* m_frontend;
};
-} // namespace WebCore
+} // namespace blink
#endif // !defined(InspectorMemoryAgent_h)