| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "core/inspector/ConsoleMessage.h" | 5 #include "core/inspector/ConsoleMessage.h" |
| 6 | 6 |
| 7 #include "bindings/core/v8/ScriptCallStack.h" | 7 #include "bindings/core/v8/ScriptCallStack.h" |
| 8 #include "bindings/core/v8/ScriptValue.h" | 8 #include "bindings/core/v8/ScriptValue.h" |
| 9 #include "core/inspector/ScriptArguments.h" | 9 #include "core/inspector/ScriptArguments.h" |
| 10 #include "core/workers/WorkerInspectorProxy.h" | |
| 11 #include "wtf/CurrentTime.h" | 10 #include "wtf/CurrentTime.h" |
| 12 #include "wtf/PassOwnPtr.h" | 11 #include "wtf/PassOwnPtr.h" |
| 13 | 12 |
| 14 namespace blink { | 13 namespace blink { |
| 15 | 14 |
| 16 unsigned nextMessageId() | 15 unsigned nextMessageId() |
| 17 { | 16 { |
| 18 struct MessageId { | 17 struct MessageId { |
| 19 MessageId() : value(0) { } | 18 MessageId() : value(0) { } |
| 20 unsigned value; | 19 unsigned value; |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 , m_level(level) | 61 , m_level(level) |
| 63 , m_type(LogMessageType) | 62 , m_type(LogMessageType) |
| 64 , m_message(message) | 63 , m_message(message) |
| 65 , m_scriptId(scriptId) | 64 , m_scriptId(scriptId) |
| 66 , m_url(url) | 65 , m_url(url) |
| 67 , m_lineNumber(lineNumber) | 66 , m_lineNumber(lineNumber) |
| 68 , m_columnNumber(columnNumber) | 67 , m_columnNumber(columnNumber) |
| 69 , m_callStack(callStack) | 68 , m_callStack(callStack) |
| 70 , m_requestIdentifier(0) | 69 , m_requestIdentifier(0) |
| 71 , m_timestamp(WTF::currentTime()) | 70 , m_timestamp(WTF::currentTime()) |
| 72 , m_workerProxy(nullptr) | |
| 73 , m_messageId(0) | 71 , m_messageId(0) |
| 74 , m_relatedMessageId(0) | 72 , m_relatedMessageId(0) |
| 75 { | 73 { |
| 76 } | 74 } |
| 77 | 75 |
| 78 ConsoleMessage::~ConsoleMessage() | 76 ConsoleMessage::~ConsoleMessage() |
| 79 { | 77 { |
| 80 } | 78 } |
| 81 | 79 |
| 82 MessageType ConsoleMessage::type() const | 80 MessageType ConsoleMessage::type() const |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 216 unsigned ConsoleMessage::argumentCount() | 214 unsigned ConsoleMessage::argumentCount() |
| 217 { | 215 { |
| 218 if (m_scriptArguments) | 216 if (m_scriptArguments) |
| 219 return m_scriptArguments->argumentCount(); | 217 return m_scriptArguments->argumentCount(); |
| 220 return 0; | 218 return 0; |
| 221 } | 219 } |
| 222 | 220 |
| 223 DEFINE_TRACE(ConsoleMessage) | 221 DEFINE_TRACE(ConsoleMessage) |
| 224 { | 222 { |
| 225 visitor->trace(m_scriptArguments); | 223 visitor->trace(m_scriptArguments); |
| 226 visitor->trace(m_workerProxy); | |
| 227 } | 224 } |
| 228 | 225 |
| 229 } // namespace blink | 226 } // namespace blink |
| OLD | NEW |