summaryrefslogtreecommitdiff
path: root/Source/WebCore/inspector/WebDebuggerAgent.cpp
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/WebDebuggerAgent.cpp
parent32761a6cee1d0dee366b885b7b9c777e67885688 (diff)
downloadWebKitGtk-tarball-master.tar.gz
Diffstat (limited to 'Source/WebCore/inspector/WebDebuggerAgent.cpp')
-rw-r--r--Source/WebCore/inspector/WebDebuggerAgent.cpp16
1 files changed, 6 insertions, 10 deletions
diff --git a/Source/WebCore/inspector/WebDebuggerAgent.cpp b/Source/WebCore/inspector/WebDebuggerAgent.cpp
index 57d21744c..e6648e757 100644
--- a/Source/WebCore/inspector/WebDebuggerAgent.cpp
+++ b/Source/WebCore/inspector/WebDebuggerAgent.cpp
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2014 Apple Inc. All rights reserved.
+ * Copyright (C) 2014, 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
@@ -26,32 +26,28 @@
#include "config.h"
#include "WebDebuggerAgent.h"
-#if ENABLE(INSPECTOR)
-
#include "InstrumentingAgents.h"
using namespace Inspector;
namespace WebCore {
-WebDebuggerAgent::WebDebuggerAgent(InjectedScriptManager* injectedScriptManager, InstrumentingAgents* instrumentingAgents)
- : InspectorDebuggerAgent(injectedScriptManager)
- , m_instrumentingAgents(instrumentingAgents)
+WebDebuggerAgent::WebDebuggerAgent(WebAgentContext& context)
+ : InspectorDebuggerAgent(context)
+ , m_instrumentingAgents(context.instrumentingAgents)
{
}
void WebDebuggerAgent::enable()
{
InspectorDebuggerAgent::enable();
- m_instrumentingAgents->setInspectorDebuggerAgent(this);
+ m_instrumentingAgents.setInspectorDebuggerAgent(this);
}
void WebDebuggerAgent::disable(bool isBeingDestroyed)
{
InspectorDebuggerAgent::disable(isBeingDestroyed);
- m_instrumentingAgents->setInspectorDebuggerAgent(nullptr);
+ m_instrumentingAgents.setInspectorDebuggerAgent(nullptr);
}
} // namespace WebCore
-
-#endif // ENABLE(INSPECTOR)