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/V8ConsoleAgentImpl.h" | 5 #include "src/inspector/v8-console-agent-impl.h" |
6 | 6 |
7 #include "src/inspector/V8ConsoleMessage.h" | |
8 #include "src/inspector/V8InspectorImpl.h" | |
9 #include "src/inspector/V8InspectorSessionImpl.h" | |
10 #include "src/inspector/V8StackTraceImpl.h" | |
11 #include "src/inspector/protocol/Protocol.h" | 7 #include "src/inspector/protocol/Protocol.h" |
| 8 #include "src/inspector/v8-console-message.h" |
| 9 #include "src/inspector/v8-inspector-impl.h" |
| 10 #include "src/inspector/v8-inspector-session-impl.h" |
| 11 #include "src/inspector/v8-stack-trace-impl.h" |
12 | 12 |
13 namespace v8_inspector { | 13 namespace v8_inspector { |
14 | 14 |
15 namespace ConsoleAgentState { | 15 namespace ConsoleAgentState { |
16 static const char consoleEnabled[] = "consoleEnabled"; | 16 static const char consoleEnabled[] = "consoleEnabled"; |
17 } | 17 } |
18 | 18 |
19 V8ConsoleAgentImpl::V8ConsoleAgentImpl( | 19 V8ConsoleAgentImpl::V8ConsoleAgentImpl( |
20 V8InspectorSessionImpl* session, protocol::FrontendChannel* frontendChannel, | 20 V8InspectorSessionImpl* session, protocol::FrontendChannel* frontendChannel, |
21 protocol::DictionaryValue* state) | 21 protocol::DictionaryValue* state) |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 bool V8ConsoleAgentImpl::reportMessage(V8ConsoleMessage* message, | 70 bool V8ConsoleAgentImpl::reportMessage(V8ConsoleMessage* message, |
71 bool generatePreview) { | 71 bool generatePreview) { |
72 DCHECK(message->origin() == V8MessageOrigin::kConsole); | 72 DCHECK(message->origin() == V8MessageOrigin::kConsole); |
73 message->reportToFrontend(&m_frontend); | 73 message->reportToFrontend(&m_frontend); |
74 m_frontend.flush(); | 74 m_frontend.flush(); |
75 return m_session->inspector()->hasConsoleMessageStorage( | 75 return m_session->inspector()->hasConsoleMessageStorage( |
76 m_session->contextGroupId()); | 76 m_session->contextGroupId()); |
77 } | 77 } |
78 | 78 |
79 } // namespace v8_inspector | 79 } // namespace v8_inspector |
OLD | NEW |