| 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 |
| 44 namespace WebCore { | 46 namespace WebCore { |
| 45 | 47 |
| 46 PassRefPtr<InjectedScriptHost> InjectedScriptHost::create() | 48 PassRefPtr<InjectedScriptHost> InjectedScriptHost::create() |
| 47 { | 49 { |
| 48 return adoptRef(new InjectedScriptHost()); | 50 return adoptRef(new InjectedScriptHost()); |
| 49 } | 51 } |
| 50 | 52 |
| 51 InjectedScriptHost::InjectedScriptHost() | 53 InjectedScriptHost::InjectedScriptHost() |
| 52 : m_instrumentingAgents(0) | 54 : m_instrumentingAgents(0) |
| 53 , m_scriptDebugServer(0) | 55 , m_scriptDebugServer(0) |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 } | 139 } |
| 138 | 140 |
| 139 void InjectedScriptHost::unmonitorFunction(const String& scriptId, int lineNumbe
r, int columnNumber) | 141 void InjectedScriptHost::unmonitorFunction(const String& scriptId, int lineNumbe
r, int columnNumber) |
| 140 { | 142 { |
| 141 if (InspectorDebuggerAgent* debuggerAgent = m_instrumentingAgents ? m_instru
mentingAgents->inspectorDebuggerAgent() : 0) | 143 if (InspectorDebuggerAgent* debuggerAgent = m_instrumentingAgents ? m_instru
mentingAgents->inspectorDebuggerAgent() : 0) |
| 142 debuggerAgent->removeBreakpoint(scriptId, lineNumber, columnNumber, Insp
ectorDebuggerAgent::MonitorCommandBreakpointSource); | 144 debuggerAgent->removeBreakpoint(scriptId, lineNumber, columnNumber, Insp
ectorDebuggerAgent::MonitorCommandBreakpointSource); |
| 143 } | 145 } |
| 144 | 146 |
| 145 } // namespace WebCore | 147 } // namespace WebCore |
| 146 | 148 |
| OLD | NEW |