| 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) 2013 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. |
| (...skipping 776 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 787 m_asyncCallStackTracker.didFireAsyncCall(); | 787 m_asyncCallStackTracker.didFireAsyncCall(); |
| 788 cancelPauseOnNextStatement(); | 788 cancelPauseOnNextStatement(); |
| 789 } | 789 } |
| 790 | 790 |
| 791 void InspectorDebuggerAgent::willLoadXHR(XMLHttpRequest* xhr, ThreadableLoaderCl
ient*, const AtomicString&, const KURL&, bool async, FormData*, const HTTPHeader
Map&, bool) | 791 void InspectorDebuggerAgent::willLoadXHR(XMLHttpRequest* xhr, ThreadableLoaderCl
ient*, const AtomicString&, const KURL&, bool async, FormData*, const HTTPHeader
Map&, bool) |
| 792 { | 792 { |
| 793 if (m_asyncCallStackTracker.isEnabled() && async) | 793 if (m_asyncCallStackTracker.isEnabled() && async) |
| 794 m_asyncCallStackTracker.willLoadXHR(xhr, scriptDebugServer().currentCall
FramesForAsyncStack()); | 794 m_asyncCallStackTracker.willLoadXHR(xhr, scriptDebugServer().currentCall
FramesForAsyncStack()); |
| 795 } | 795 } |
| 796 | 796 |
| 797 void InspectorDebuggerAgent::didDispatchXHRLoadendEvent(XMLHttpRequest* xhr) |
| 798 { |
| 799 if (m_asyncCallStackTracker.isEnabled()) |
| 800 m_asyncCallStackTracker.didLoadXHR(xhr); |
| 801 } |
| 802 |
| 797 void InspectorDebuggerAgent::didEnqueueMutationRecord(ExecutionContext* context,
MutationObserver* observer) | 803 void InspectorDebuggerAgent::didEnqueueMutationRecord(ExecutionContext* context,
MutationObserver* observer) |
| 798 { | 804 { |
| 799 if (m_asyncCallStackTracker.isEnabled() && !m_asyncCallStackTracker.hasEnque
uedMutationRecord(context, observer)) | 805 if (m_asyncCallStackTracker.isEnabled() && !m_asyncCallStackTracker.hasEnque
uedMutationRecord(context, observer)) |
| 800 m_asyncCallStackTracker.didEnqueueMutationRecord(context, observer, scri
ptDebugServer().currentCallFramesForAsyncStack()); | 806 m_asyncCallStackTracker.didEnqueueMutationRecord(context, observer, scri
ptDebugServer().currentCallFramesForAsyncStack()); |
| 801 } | 807 } |
| 802 | 808 |
| 803 void InspectorDebuggerAgent::didClearAllMutationRecords(ExecutionContext* contex
t, MutationObserver* observer) | 809 void InspectorDebuggerAgent::didClearAllMutationRecords(ExecutionContext* contex
t, MutationObserver* observer) |
| 804 { | 810 { |
| 805 if (m_asyncCallStackTracker.isEnabled()) | 811 if (m_asyncCallStackTracker.isEnabled()) |
| 806 m_asyncCallStackTracker.didClearAllMutationRecords(context, observer); | 812 m_asyncCallStackTracker.didClearAllMutationRecords(context, observer); |
| (...skipping 577 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1384 { | 1390 { |
| 1385 m_scripts.clear(); | 1391 m_scripts.clear(); |
| 1386 m_breakpointIdToDebugServerBreakpointIds.clear(); | 1392 m_breakpointIdToDebugServerBreakpointIds.clear(); |
| 1387 m_asyncCallStackTracker.clear(); | 1393 m_asyncCallStackTracker.clear(); |
| 1388 if (m_frontend) | 1394 if (m_frontend) |
| 1389 m_frontend->globalObjectCleared(); | 1395 m_frontend->globalObjectCleared(); |
| 1390 } | 1396 } |
| 1391 | 1397 |
| 1392 } // namespace WebCore | 1398 } // namespace WebCore |
| 1393 | 1399 |
| OLD | NEW |