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(V8InspectorSession* v8Session, InspectorDOMAg
ent* domAgent, InspectedFrames* inspectedFrames) |
49 : InspectorConsoleAgent(runtimeAgent) | 49 : InspectorConsoleAgent(v8Session) |
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 } | 57 } |
58 | 58 |
59 DEFINE_TRACE(PageConsoleAgent) | 59 DEFINE_TRACE(PageConsoleAgent) |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 ++s_enabledAgentCount; | 125 ++s_enabledAgentCount; |
126 } | 126 } |
127 | 127 |
128 void PageConsoleAgent::disableStackCapturingIfNeeded() | 128 void PageConsoleAgent::disableStackCapturingIfNeeded() |
129 { | 129 { |
130 if (!(--s_enabledAgentCount)) | 130 if (!(--s_enabledAgentCount)) |
131 ScriptController::setCaptureCallStackForUncaughtExceptions(toIsolate(m_i
nspectedFrames->root()), false); | 131 ScriptController::setCaptureCallStackForUncaughtExceptions(toIsolate(m_i
nspectedFrames->root()), false); |
132 } | 132 } |
133 | 133 |
134 } // namespace blink | 134 } // namespace blink |
OLD | NEW |