OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 27 matching lines...) Expand all Loading... |
38 #include "core/inspector/ConsoleMessage.h" | 38 #include "core/inspector/ConsoleMessage.h" |
39 #include "core/inspector/ConsoleMessageStorage.h" | 39 #include "core/inspector/ConsoleMessageStorage.h" |
40 #include "core/inspector/InspectedFrames.h" | 40 #include "core/inspector/InspectedFrames.h" |
41 #include "core/inspector/InspectorDOMAgent.h" | 41 #include "core/inspector/InspectorDOMAgent.h" |
42 #include "core/workers/WorkerInspectorProxy.h" | 42 #include "core/workers/WorkerInspectorProxy.h" |
43 | 43 |
44 namespace blink { | 44 namespace blink { |
45 | 45 |
46 int PageConsoleAgent::s_enabledAgentCount = 0; | 46 int PageConsoleAgent::s_enabledAgentCount = 0; |
47 | 47 |
48 PageConsoleAgent::PageConsoleAgent(V8RuntimeAgent* runtimeAgent, InspectorDOMAge
nt* domAgent, InspectedFrames* inspectedFrames) | 48 PageConsoleAgent::PageConsoleAgent(V8RuntimeAgent* runtimeAgent, V8DebuggerAgent
* debuggerAgent, InspectorDOMAgent* domAgent, InspectedFrames* inspectedFrames) |
49 : InspectorConsoleAgent(runtimeAgent) | 49 : InspectorConsoleAgent(runtimeAgent, debuggerAgent) |
50 , m_inspectorDOMAgent(domAgent) | 50 , m_inspectorDOMAgent(domAgent) |
51 , m_inspectedFrames(inspectedFrames) | 51 , m_inspectedFrames(inspectedFrames) |
52 { | 52 { |
53 } | 53 } |
54 | 54 |
55 PageConsoleAgent::~PageConsoleAgent() | 55 PageConsoleAgent::~PageConsoleAgent() |
56 { | 56 { |
57 #if !ENABLE(OILPAN) | 57 #if !ENABLE(OILPAN) |
58 m_inspectorDOMAgent = nullptr; | 58 m_inspectorDOMAgent = nullptr; |
59 m_instrumentingAgents->setPageConsoleAgent(nullptr); | 59 m_instrumentingAgents->setPageConsoleAgent(nullptr); |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 ++s_enabledAgentCount; | 126 ++s_enabledAgentCount; |
127 } | 127 } |
128 | 128 |
129 void PageConsoleAgent::disableStackCapturingIfNeeded() | 129 void PageConsoleAgent::disableStackCapturingIfNeeded() |
130 { | 130 { |
131 if (!(--s_enabledAgentCount)) | 131 if (!(--s_enabledAgentCount)) |
132 ScriptController::setCaptureCallStackForUncaughtExceptions(toIsolate(m_i
nspectedFrames->root()), false); | 132 ScriptController::setCaptureCallStackForUncaughtExceptions(toIsolate(m_i
nspectedFrames->root()), false); |
133 } | 133 } |
134 | 134 |
135 } // namespace blink | 135 } // namespace blink |
OLD | NEW |