| 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 m_defaultInspectableObject = adoptPtrWillBeNoop(new InspectableObject()); | 57 m_defaultInspectableObject = adoptPtrWillBeNoop(new InspectableObject()); |
| 58 } | 58 } |
| 59 | 59 |
| 60 InjectedScriptHost::~InjectedScriptHost() | 60 InjectedScriptHost::~InjectedScriptHost() |
| 61 { | 61 { |
| 62 } | 62 } |
| 63 | 63 |
| 64 DEFINE_TRACE(InjectedScriptHost) | 64 DEFINE_TRACE(InjectedScriptHost) |
| 65 { | 65 { |
| 66 visitor->trace(m_consoleAgent); | 66 visitor->trace(m_consoleAgent); |
| 67 visitor->trace(m_debuggerAgent); | |
| 68 visitor->trace(m_inspectedObjects); | 67 visitor->trace(m_inspectedObjects); |
| 69 visitor->trace(m_defaultInspectableObject); | 68 visitor->trace(m_defaultInspectableObject); |
| 70 } | 69 } |
| 71 | 70 |
| 72 void InjectedScriptHost::disconnect() | 71 void InjectedScriptHost::disconnect() |
| 73 { | 72 { |
| 74 m_consoleAgent = nullptr; | 73 m_consoleAgent = nullptr; |
| 75 m_debuggerAgent = nullptr; | 74 m_debuggerAgent = nullptr; |
| 76 m_inspectCallback = nullptr; | 75 m_inspectCallback = nullptr; |
| 77 m_debugger = nullptr; | 76 m_debugger = nullptr; |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 m_debuggerAgent->setBreakpoint(scriptId, lineNumber, columnNumber, V8Deb
uggerAgent::MonitorCommandBreakpointSource, builder.toString()); | 146 m_debuggerAgent->setBreakpoint(scriptId, lineNumber, columnNumber, V8Deb
uggerAgent::MonitorCommandBreakpointSource, builder.toString()); |
| 148 } | 147 } |
| 149 | 148 |
| 150 void InjectedScriptHost::unmonitorFunction(const String& scriptId, int lineNumbe
r, int columnNumber) | 149 void InjectedScriptHost::unmonitorFunction(const String& scriptId, int lineNumbe
r, int columnNumber) |
| 151 { | 150 { |
| 152 if (m_debuggerAgent) | 151 if (m_debuggerAgent) |
| 153 m_debuggerAgent->removeBreakpoint(scriptId, lineNumber, columnNumber, V8
DebuggerAgent::MonitorCommandBreakpointSource); | 152 m_debuggerAgent->removeBreakpoint(scriptId, lineNumber, columnNumber, V8
DebuggerAgent::MonitorCommandBreakpointSource); |
| 154 } | 153 } |
| 155 | 154 |
| 156 } // namespace blink | 155 } // namespace blink |
| OLD | NEW |