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 19 matching lines...) Expand all Loading... |
30 #include "config.h" | 30 #include "config.h" |
31 #include "core/inspector/InspectorDebuggerAgent.h" | 31 #include "core/inspector/InspectorDebuggerAgent.h" |
32 | 32 |
33 #include "bindings/core/v8/ScriptDebugServer.h" | 33 #include "bindings/core/v8/ScriptDebugServer.h" |
34 #include "bindings/core/v8/ScriptRegexp.h" | 34 #include "bindings/core/v8/ScriptRegexp.h" |
35 #include "bindings/core/v8/ScriptSourceCode.h" | 35 #include "bindings/core/v8/ScriptSourceCode.h" |
36 #include "bindings/core/v8/ScriptValue.h" | 36 #include "bindings/core/v8/ScriptValue.h" |
37 #include "core/dom/Document.h" | 37 #include "core/dom/Document.h" |
38 #include "core/dom/ExecutionContextTask.h" | 38 #include "core/dom/ExecutionContextTask.h" |
39 #include "core/fetch/Resource.h" | 39 #include "core/fetch/Resource.h" |
| 40 #include "core/inspector/ConsoleMessage.h" |
40 #include "core/inspector/ContentSearchUtils.h" | 41 #include "core/inspector/ContentSearchUtils.h" |
41 #include "core/inspector/InjectedScriptManager.h" | 42 #include "core/inspector/InjectedScriptManager.h" |
42 #include "core/inspector/InspectorPageAgent.h" | 43 #include "core/inspector/InspectorPageAgent.h" |
43 #include "core/inspector/InspectorState.h" | 44 #include "core/inspector/InspectorState.h" |
44 #include "core/inspector/InstrumentingAgents.h" | 45 #include "core/inspector/InstrumentingAgents.h" |
45 #include "core/inspector/JavaScriptCallFrame.h" | 46 #include "core/inspector/JavaScriptCallFrame.h" |
46 #include "core/inspector/ScriptArguments.h" | 47 #include "core/inspector/ScriptArguments.h" |
47 #include "core/inspector/ScriptAsyncCallStack.h" | 48 #include "core/inspector/ScriptAsyncCallStack.h" |
48 #include "core/inspector/ScriptCallFrame.h" | 49 #include "core/inspector/ScriptCallFrame.h" |
49 #include "core/inspector/ScriptCallStack.h" | 50 #include "core/inspector/ScriptCallStack.h" |
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
269 bool InspectorDebuggerAgent::isPaused() | 270 bool InspectorDebuggerAgent::isPaused() |
270 { | 271 { |
271 return scriptDebugServer().isPaused(); | 272 return scriptDebugServer().isPaused(); |
272 } | 273 } |
273 | 274 |
274 bool InspectorDebuggerAgent::runningNestedMessageLoop() | 275 bool InspectorDebuggerAgent::runningNestedMessageLoop() |
275 { | 276 { |
276 return scriptDebugServer().runningNestedMessageLoop(); | 277 return scriptDebugServer().runningNestedMessageLoop(); |
277 } | 278 } |
278 | 279 |
279 void InspectorDebuggerAgent::addConsoleAPIMessageToConsole(MessageType type, Mes
sageLevel, const String&, ScriptState*, PassRefPtrWillBeRawPtr<ScriptArguments>,
unsigned long) | 280 void InspectorDebuggerAgent::addMessageToConsole(ConsoleMessage* consoleMessage) |
280 { | 281 { |
281 if (type == AssertMessageType && scriptDebugServer().pauseOnExceptionsState(
) != ScriptDebugServer::DontPauseOnExceptions) | 282 if (consoleMessage->type() == AssertMessageType && scriptDebugServer().pause
OnExceptionsState() != ScriptDebugServer::DontPauseOnExceptions) |
282 breakProgram(InspectorFrontend::Debugger::Reason::Assert, nullptr); | 283 breakProgram(InspectorFrontend::Debugger::Reason::Assert, nullptr); |
283 } | 284 } |
284 | 285 |
285 String InspectorDebuggerAgent::preprocessEventListener(LocalFrame* frame, const
String& source, const String& url, const String& functionName) | 286 String InspectorDebuggerAgent::preprocessEventListener(LocalFrame* frame, const
String& source, const String& url, const String& functionName) |
286 { | 287 { |
287 return scriptDebugServer().preprocessEventListener(frame, source, url, funct
ionName); | 288 return scriptDebugServer().preprocessEventListener(frame, source, url, funct
ionName); |
288 } | 289 } |
289 | 290 |
290 PassOwnPtr<ScriptSourceCode> InspectorDebuggerAgent::preprocess(LocalFrame* fram
e, const ScriptSourceCode& sourceCode) | 291 PassOwnPtr<ScriptSourceCode> InspectorDebuggerAgent::preprocess(LocalFrame* fram
e, const ScriptSourceCode& sourceCode) |
291 { | 292 { |
(...skipping 1163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1455 void InspectorDebuggerAgent::trace(Visitor* visitor) | 1456 void InspectorDebuggerAgent::trace(Visitor* visitor) |
1456 { | 1457 { |
1457 visitor->trace(m_injectedScriptManager); | 1458 visitor->trace(m_injectedScriptManager); |
1458 visitor->trace(m_listener); | 1459 visitor->trace(m_listener); |
1459 visitor->trace(m_asyncCallStackTracker); | 1460 visitor->trace(m_asyncCallStackTracker); |
1460 InspectorBaseAgent::trace(visitor); | 1461 InspectorBaseAgent::trace(visitor); |
1461 } | 1462 } |
1462 | 1463 |
1463 } // namespace blink | 1464 } // namespace blink |
1464 | 1465 |
OLD | NEW |