summaryrefslogtreecommitdiff
path: root/Source/WebCore/inspector/WebDebuggerAgent.cpp
diff options
context:
space:
mode:
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)