OLD | NEW |
1 // Copyright 2016 the V8 project authors. All rights reserved. | 1 // Copyright 2016 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "src/inspector/V8ConsoleMessage.h" | 5 #include "src/inspector/v8-console-message.h" |
6 | 6 |
7 #include "src/inspector/InspectedContext.h" | 7 #include "src/inspector/inspected-context.h" |
8 #include "src/inspector/StringUtil.h" | |
9 #include "src/inspector/V8ConsoleAgentImpl.h" | |
10 #include "src/inspector/V8InspectorImpl.h" | |
11 #include "src/inspector/V8InspectorSessionImpl.h" | |
12 #include "src/inspector/V8RuntimeAgentImpl.h" | |
13 #include "src/inspector/V8StackTraceImpl.h" | |
14 #include "src/inspector/protocol/Protocol.h" | 8 #include "src/inspector/protocol/Protocol.h" |
| 9 #include "src/inspector/string-util.h" |
| 10 #include "src/inspector/v8-console-agent-impl.h" |
| 11 #include "src/inspector/v8-inspector-impl.h" |
| 12 #include "src/inspector/v8-inspector-session-impl.h" |
| 13 #include "src/inspector/v8-runtime-agent-impl.h" |
| 14 #include "src/inspector/v8-stack-trace-impl.h" |
15 | 15 |
16 #include "include/v8-inspector.h" | 16 #include "include/v8-inspector.h" |
17 | 17 |
18 namespace v8_inspector { | 18 namespace v8_inspector { |
19 | 19 |
20 namespace { | 20 namespace { |
21 | 21 |
22 String16 consoleAPITypeValue(ConsoleAPIType type) { | 22 String16 consoleAPITypeValue(ConsoleAPIType type) { |
23 switch (type) { | 23 switch (type) { |
24 case ConsoleAPIType::kLog: | 24 case ConsoleAPIType::kLog: |
(...skipping 439 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
464 m_inspector->sessionForContextGroup(m_contextGroupId)) | 464 m_inspector->sessionForContextGroup(m_contextGroupId)) |
465 session->releaseObjectGroup("console"); | 465 session->releaseObjectGroup("console"); |
466 } | 466 } |
467 | 467 |
468 void V8ConsoleMessageStorage::contextDestroyed(int contextId) { | 468 void V8ConsoleMessageStorage::contextDestroyed(int contextId) { |
469 for (size_t i = 0; i < m_messages.size(); ++i) | 469 for (size_t i = 0; i < m_messages.size(); ++i) |
470 m_messages[i]->contextDestroyed(contextId); | 470 m_messages[i]->contextDestroyed(contextId); |
471 } | 471 } |
472 | 472 |
473 } // namespace v8_inspector | 473 } // namespace v8_inspector |
OLD | NEW |