| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2008 Matt Lilek <webkit@mattlilek.com> | 3 * Copyright (C) 2008 Matt Lilek <webkit@mattlilek.com> |
| 4 * Copyright (C) 2010 Google Inc. All rights reserved. | 4 * Copyright (C) 2010 Google Inc. All rights reserved. |
| 5 * | 5 * |
| 6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
| 7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
| 8 * are met: | 8 * are met: |
| 9 * | 9 * |
| 10 * 1. Redistributions of source code must retain the above copyright | 10 * 1. Redistributions of source code must retain the above copyright |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 #include "core/inspector/InspectorConsoleAgent.h" | 34 #include "core/inspector/InspectorConsoleAgent.h" |
| 35 #include "core/inspector/InspectorDOMAgent.h" | 35 #include "core/inspector/InspectorDOMAgent.h" |
| 36 #include "core/inspector/InspectorDebuggerAgent.h" | 36 #include "core/inspector/InspectorDebuggerAgent.h" |
| 37 #include "core/inspector/InspectorInspectorAgent.h" | 37 #include "core/inspector/InspectorInspectorAgent.h" |
| 38 #include "core/inspector/InstrumentingAgents.h" | 38 #include "core/inspector/InstrumentingAgents.h" |
| 39 #include "platform/JSONValues.h" | 39 #include "platform/JSONValues.h" |
| 40 | 40 |
| 41 #include "wtf/RefPtr.h" | 41 #include "wtf/RefPtr.h" |
| 42 #include "wtf/text/StringBuilder.h" | 42 #include "wtf/text/StringBuilder.h" |
| 43 | 43 |
| 44 using namespace std; | |
| 45 | |
| 46 namespace WebCore { | 44 namespace WebCore { |
| 47 | 45 |
| 48 PassRefPtr<InjectedScriptHost> InjectedScriptHost::create() | 46 PassRefPtr<InjectedScriptHost> InjectedScriptHost::create() |
| 49 { | 47 { |
| 50 return adoptRef(new InjectedScriptHost()); | 48 return adoptRef(new InjectedScriptHost()); |
| 51 } | 49 } |
| 52 | 50 |
| 53 InjectedScriptHost::InjectedScriptHost() | 51 InjectedScriptHost::InjectedScriptHost() |
| 54 : m_instrumentingAgents(0) | 52 : m_instrumentingAgents(0) |
| 55 , m_scriptDebugServer(0) | 53 , m_scriptDebugServer(0) |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 } | 137 } |
| 140 | 138 |
| 141 void InjectedScriptHost::unmonitorFunction(const String& scriptId, int lineNumbe
r, int columnNumber) | 139 void InjectedScriptHost::unmonitorFunction(const String& scriptId, int lineNumbe
r, int columnNumber) |
| 142 { | 140 { |
| 143 if (InspectorDebuggerAgent* debuggerAgent = m_instrumentingAgents ? m_instru
mentingAgents->inspectorDebuggerAgent() : 0) | 141 if (InspectorDebuggerAgent* debuggerAgent = m_instrumentingAgents ? m_instru
mentingAgents->inspectorDebuggerAgent() : 0) |
| 144 debuggerAgent->removeBreakpoint(scriptId, lineNumber, columnNumber, Insp
ectorDebuggerAgent::MonitorCommandBreakpointSource); | 142 debuggerAgent->removeBreakpoint(scriptId, lineNumber, columnNumber, Insp
ectorDebuggerAgent::MonitorCommandBreakpointSource); |
| 145 } | 143 } |
| 146 | 144 |
| 147 } // namespace WebCore | 145 } // namespace WebCore |
| 148 | 146 |
| OLD | NEW |