| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Apple Inc. All rights reserved. | 2 * Copyright (C) 2010 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2010-2011 Google Inc. All rights reserved. | 3 * Copyright (C) 2013 Google Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * | 8 * |
| 9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| 11 * 2. Redistributions in binary form must reproduce the above copyright | 11 * 2. Redistributions in binary form must reproduce the above copyright |
| 12 * notice, this list of conditions and the following disclaimer in the | 12 * notice, this list of conditions and the following disclaimer in the |
| 13 * documentation and/or other materials provided with the distribution. | 13 * documentation and/or other materials provided with the distribution. |
| (...skipping 724 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 738 m_asyncCallStackTracker.willHandleEvent(eventTarget, eventType, listener
, useCapture); | 738 m_asyncCallStackTracker.willHandleEvent(eventTarget, eventType, listener
, useCapture); |
| 739 } | 739 } |
| 740 | 740 |
| 741 void InspectorDebuggerAgent::didHandleEvent() | 741 void InspectorDebuggerAgent::didHandleEvent() |
| 742 { | 742 { |
| 743 if (m_asyncCallStackTracker.isEnabled()) | 743 if (m_asyncCallStackTracker.isEnabled()) |
| 744 m_asyncCallStackTracker.didFireAsyncCall(); | 744 m_asyncCallStackTracker.didFireAsyncCall(); |
| 745 cancelPauseOnNextStatement(); | 745 cancelPauseOnNextStatement(); |
| 746 } | 746 } |
| 747 | 747 |
| 748 void InspectorDebuggerAgent::willLoadXHR(XMLHttpRequest* xhr, ThreadableLoaderCl
ient*, const AtomicString&, const KURL&, bool async, PassRefPtr<FormData>, const
HTTPHeaderMap&, bool) |
| 749 { |
| 750 if (m_asyncCallStackTracker.isEnabled() && async) |
| 751 m_asyncCallStackTracker.willLoadXHR(xhr, scriptDebugServer().currentCall
Frames()); |
| 752 } |
| 753 |
| 748 void InspectorDebuggerAgent::pause(ErrorString*) | 754 void InspectorDebuggerAgent::pause(ErrorString*) |
| 749 { | 755 { |
| 750 if (m_javaScriptPauseScheduled) | 756 if (m_javaScriptPauseScheduled) |
| 751 return; | 757 return; |
| 752 clearBreakDetails(); | 758 clearBreakDetails(); |
| 753 scriptDebugServer().setPauseOnNextStatement(true); | 759 scriptDebugServer().setPauseOnNextStatement(true); |
| 754 m_javaScriptPauseScheduled = true; | 760 m_javaScriptPauseScheduled = true; |
| 755 } | 761 } |
| 756 | 762 |
| 757 void InspectorDebuggerAgent::resume(ErrorString* errorString) | 763 void InspectorDebuggerAgent::resume(ErrorString* errorString) |
| (...skipping 440 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1198 { | 1204 { |
| 1199 m_scripts.clear(); | 1205 m_scripts.clear(); |
| 1200 m_breakpointIdToDebugServerBreakpointIds.clear(); | 1206 m_breakpointIdToDebugServerBreakpointIds.clear(); |
| 1201 m_asyncCallStackTracker.clear(); | 1207 m_asyncCallStackTracker.clear(); |
| 1202 if (m_frontend) | 1208 if (m_frontend) |
| 1203 m_frontend->globalObjectCleared(); | 1209 m_frontend->globalObjectCleared(); |
| 1204 } | 1210 } |
| 1205 | 1211 |
| 1206 } // namespace WebCore | 1212 } // namespace WebCore |
| 1207 | 1213 |
| OLD | NEW |