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 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
261 { | 261 { |
262 if (source == ConsoleAPIMessageSource && type == AssertMessageType && script
DebugServer().pauseOnExceptionsState() != ScriptDebugServer::DontPauseOnExceptio
ns) | 262 if (source == ConsoleAPIMessageSource && type == AssertMessageType && script
DebugServer().pauseOnExceptionsState() != ScriptDebugServer::DontPauseOnExceptio
ns) |
263 breakProgram(InspectorFrontend::Debugger::Reason::Assert, nullptr); | 263 breakProgram(InspectorFrontend::Debugger::Reason::Assert, nullptr); |
264 } | 264 } |
265 | 265 |
266 void InspectorDebuggerAgent::addMessageToConsole(MessageSource source, MessageTy
pe type, MessageLevel, const String&, PassRefPtr<ScriptCallStack>, unsigned long
) | 266 void InspectorDebuggerAgent::addMessageToConsole(MessageSource source, MessageTy
pe type, MessageLevel, const String&, PassRefPtr<ScriptCallStack>, unsigned long
) |
267 { | 267 { |
268 addMessageToConsole(source, type); | 268 addMessageToConsole(source, type); |
269 } | 269 } |
270 | 270 |
271 void InspectorDebuggerAgent::addMessageToConsole(MessageSource source, MessageTy
pe type, MessageLevel, const String&, ScriptState*, PassRefPtr<ScriptArguments>,
unsigned long) | 271 void InspectorDebuggerAgent::addMessageToConsole(MessageSource source, MessageTy
pe type, MessageLevel, const String&, ScriptState*, ScriptArguments*, unsigned l
ong) |
272 { | 272 { |
273 addMessageToConsole(source, type); | 273 addMessageToConsole(source, type); |
274 } | 274 } |
275 | 275 |
276 String InspectorDebuggerAgent::preprocessEventListener(LocalFrame* frame, const
String& source, const String& url, const String& functionName) | 276 String InspectorDebuggerAgent::preprocessEventListener(LocalFrame* frame, const
String& source, const String& url, const String& functionName) |
277 { | 277 { |
278 return scriptDebugServer().preprocessEventListener(frame, source, url, funct
ionName); | 278 return scriptDebugServer().preprocessEventListener(frame, source, url, funct
ionName); |
279 } | 279 } |
280 | 280 |
281 PassOwnPtr<ScriptSourceCode> InspectorDebuggerAgent::preprocess(LocalFrame* fram
e, const ScriptSourceCode& sourceCode) | 281 PassOwnPtr<ScriptSourceCode> InspectorDebuggerAgent::preprocess(LocalFrame* fram
e, const ScriptSourceCode& sourceCode) |
(...skipping 461 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
743 m_asyncCallStackTracker.willHandleEvent(eventTarget, eventType, listener
, useCapture); | 743 m_asyncCallStackTracker.willHandleEvent(eventTarget, eventType, listener
, useCapture); |
744 } | 744 } |
745 | 745 |
746 void InspectorDebuggerAgent::didHandleEvent() | 746 void InspectorDebuggerAgent::didHandleEvent() |
747 { | 747 { |
748 if (m_asyncCallStackTracker.isEnabled()) | 748 if (m_asyncCallStackTracker.isEnabled()) |
749 m_asyncCallStackTracker.didFireAsyncCall(); | 749 m_asyncCallStackTracker.didFireAsyncCall(); |
750 cancelPauseOnNextStatement(); | 750 cancelPauseOnNextStatement(); |
751 } | 751 } |
752 | 752 |
753 void InspectorDebuggerAgent::willLoadXHR(XMLHttpRequest* xhr, ThreadableLoaderCl
ient*, const AtomicString&, const KURL&, bool async, PassRefPtr<FormData>, const
HTTPHeaderMap&, bool) | 753 void InspectorDebuggerAgent::willLoadXHR(XMLHttpRequest* xhr, ThreadableLoaderCl
ient*, const AtomicString&, const KURL&, bool async, FormData*, const HTTPHeader
Map&, bool) |
754 { | 754 { |
755 if (m_asyncCallStackTracker.isEnabled() && async) | 755 if (m_asyncCallStackTracker.isEnabled() && async) |
756 m_asyncCallStackTracker.willLoadXHR(xhr, scriptDebugServer().currentCall
Frames()); | 756 m_asyncCallStackTracker.willLoadXHR(xhr, scriptDebugServer().currentCall
Frames()); |
757 } | 757 } |
758 | 758 |
759 void InspectorDebuggerAgent::didEnqueueMutationRecord(ExecutionContext* context,
MutationObserver* observer) | 759 void InspectorDebuggerAgent::didEnqueueMutationRecord(ExecutionContext* context,
MutationObserver* observer) |
760 { | 760 { |
761 if (m_asyncCallStackTracker.isEnabled() && !m_asyncCallStackTracker.hasEnque
uedMutationRecord(context, observer)) | 761 if (m_asyncCallStackTracker.isEnabled() && !m_asyncCallStackTracker.hasEnque
uedMutationRecord(context, observer)) |
762 m_asyncCallStackTracker.didEnqueueMutationRecord(context, observer, scri
ptDebugServer().currentCallFrames()); | 762 m_asyncCallStackTracker.didEnqueueMutationRecord(context, observer, scri
ptDebugServer().currentCallFrames()); |
763 } | 763 } |
(...skipping 523 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1287 m_scripts.clear(); | 1287 m_scripts.clear(); |
1288 m_breakpointIdToDebugServerBreakpointIds.clear(); | 1288 m_breakpointIdToDebugServerBreakpointIds.clear(); |
1289 m_asyncCallStackTracker.clear(); | 1289 m_asyncCallStackTracker.clear(); |
1290 m_promiseTracker.clear(); | 1290 m_promiseTracker.clear(); |
1291 if (m_frontend) | 1291 if (m_frontend) |
1292 m_frontend->globalObjectCleared(); | 1292 m_frontend->globalObjectCleared(); |
1293 } | 1293 } |
1294 | 1294 |
1295 } // namespace WebCore | 1295 } // namespace WebCore |
1296 | 1296 |
OLD | NEW |