| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium 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 "platform/v8_inspector/V8ConsoleMessage.h" | 5 #include "platform/v8_inspector/V8ConsoleMessage.h" |
| 6 | 6 |
| 7 #include "platform/v8_inspector/InspectedContext.h" | 7 #include "platform/v8_inspector/InspectedContext.h" |
| 8 #include "platform/v8_inspector/StringUtil.h" |
| 8 #include "platform/v8_inspector/V8ConsoleAgentImpl.h" | 9 #include "platform/v8_inspector/V8ConsoleAgentImpl.h" |
| 9 #include "platform/v8_inspector/V8InspectorImpl.h" | 10 #include "platform/v8_inspector/V8InspectorImpl.h" |
| 10 #include "platform/v8_inspector/V8InspectorSessionImpl.h" | 11 #include "platform/v8_inspector/V8InspectorSessionImpl.h" |
| 11 #include "platform/v8_inspector/V8RuntimeAgentImpl.h" | 12 #include "platform/v8_inspector/V8RuntimeAgentImpl.h" |
| 12 #include "platform/v8_inspector/V8StackTraceImpl.h" | 13 #include "platform/v8_inspector/V8StackTraceImpl.h" |
| 13 #include "platform/v8_inspector/V8StringUtil.h" | 14 #include "platform/v8_inspector/protocol/Protocol.h" |
| 14 #include "platform/v8_inspector/public/V8InspectorClient.h" | 15 #include "platform/v8_inspector/public/V8InspectorClient.h" |
| 15 | 16 |
| 16 namespace v8_inspector { | 17 namespace v8_inspector { |
| 17 | 18 |
| 18 namespace { | 19 namespace { |
| 19 | 20 |
| 20 String16 consoleAPITypeValue(ConsoleAPIType type) | 21 String16 consoleAPITypeValue(ConsoleAPIType type) |
| 21 { | 22 { |
| 22 switch (type) { | 23 switch (type) { |
| 23 case ConsoleAPIType::kLog: return protocol::Runtime::ConsoleAPICalled::TypeE
num::Log; | 24 case ConsoleAPIType::kLog: return protocol::Runtime::ConsoleAPICalled::TypeE
num::Log; |
| (...skipping 410 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 434 session->releaseObjectGroup("console"); | 435 session->releaseObjectGroup("console"); |
| 435 } | 436 } |
| 436 | 437 |
| 437 void V8ConsoleMessageStorage::contextDestroyed(int contextId) | 438 void V8ConsoleMessageStorage::contextDestroyed(int contextId) |
| 438 { | 439 { |
| 439 for (size_t i = 0; i < m_messages.size(); ++i) | 440 for (size_t i = 0; i < m_messages.size(); ++i) |
| 440 m_messages[i]->contextDestroyed(contextId); | 441 m_messages[i]->contextDestroyed(contextId); |
| 441 } | 442 } |
| 442 | 443 |
| 443 } // namespace v8_inspector | 444 } // namespace v8_inspector |
| OLD | NEW |