| Index: third_party/WebKit/Source/platform/v8_inspector/InjectedScriptHost.cpp
|
| diff --git a/third_party/WebKit/Source/platform/v8_inspector/InjectedScriptHost.cpp b/third_party/WebKit/Source/platform/v8_inspector/InjectedScriptHost.cpp
|
| index a301b38be2aa7719df5c0c472513e9ea52f33bf6..a84b44dc9ac79845ae7184b17cf4b76ade49255b 100644
|
| --- a/third_party/WebKit/Source/platform/v8_inspector/InjectedScriptHost.cpp
|
| +++ b/third_party/WebKit/Source/platform/v8_inspector/InjectedScriptHost.cpp
|
| @@ -32,10 +32,8 @@
|
|
|
| #include "platform/inspector_protocol/String16.h"
|
| #include "platform/inspector_protocol/Values.h"
|
| -#include "platform/v8_inspector/V8DebuggerAgentImpl.h"
|
| #include "platform/v8_inspector/V8InspectorSessionImpl.h"
|
| #include "platform/v8_inspector/V8RuntimeAgentImpl.h"
|
| -#include "platform/v8_inspector/public/V8Debugger.h"
|
|
|
| namespace blink {
|
|
|
| @@ -61,12 +59,6 @@ void InjectedScriptHost::inspectImpl(PassOwnPtr<protocol::Value> object, PassOwn
|
| m_session->runtimeAgentImpl()->inspect(remoteObject.release(), protocol::DictionaryValue::cast(hints));
|
| }
|
|
|
| -void InjectedScriptHost::clearConsoleMessages()
|
| -{
|
| - if (m_session->clearConsoleCallback())
|
| - (*m_session->clearConsoleCallback())();
|
| -}
|
| -
|
| void InjectedScriptHost::addInspectedObject(PassOwnPtr<V8RuntimeAgent::Inspectable> object)
|
| {
|
| m_inspectedObjects.prepend(object);
|
| @@ -86,31 +78,4 @@ V8RuntimeAgent::Inspectable* InjectedScriptHost::inspectedObject(unsigned num)
|
| return m_inspectedObjects[num].get();
|
| }
|
|
|
| -void InjectedScriptHost::debugFunction(const String16& scriptId, int lineNumber, int columnNumber)
|
| -{
|
| - m_session->debuggerAgentImpl()->setBreakpointAt(scriptId, lineNumber, columnNumber, V8DebuggerAgentImpl::DebugCommandBreakpointSource);
|
| -}
|
| -
|
| -void InjectedScriptHost::undebugFunction(const String16& scriptId, int lineNumber, int columnNumber)
|
| -{
|
| - m_session->debuggerAgentImpl()->removeBreakpointAt(scriptId, lineNumber, columnNumber, V8DebuggerAgentImpl::DebugCommandBreakpointSource);
|
| -}
|
| -
|
| -void InjectedScriptHost::monitorFunction(const String16& scriptId, int lineNumber, int columnNumber, const String16& functionName)
|
| -{
|
| - String16Builder builder;
|
| - builder.append("console.log(\"function ");
|
| - if (functionName.isEmpty())
|
| - builder.append("(anonymous function)");
|
| - else
|
| - builder.append(functionName);
|
| - builder.append(" called\" + (arguments.length > 0 ? \" with arguments: \" + Array.prototype.join.call(arguments, \", \") : \"\")) && false");
|
| - m_session->debuggerAgentImpl()->setBreakpointAt(scriptId, lineNumber, columnNumber, V8DebuggerAgentImpl::MonitorCommandBreakpointSource, builder.toString());
|
| -}
|
| -
|
| -void InjectedScriptHost::unmonitorFunction(const String16& scriptId, int lineNumber, int columnNumber)
|
| -{
|
| - m_session->debuggerAgentImpl()->removeBreakpointAt(scriptId, lineNumber, columnNumber, V8DebuggerAgentImpl::MonitorCommandBreakpointSource);
|
| -}
|
| -
|
| } // namespace blink
|
|
|