| 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 , m_level(level) | 62 , m_level(level) |
| 64 , m_type(LogMessageType) | 63 , m_type(LogMessageType) |
| 65 , m_message(message) | 64 , m_message(message) |
| 66 , m_scriptId(scriptId) | 65 , m_scriptId(scriptId) |
| 67 , m_url(url) | 66 , m_url(url) |
| 68 , m_lineNumber(lineNumber) | 67 , m_lineNumber(lineNumber) |
| 69 , m_columnNumber(columnNumber) | 68 , m_columnNumber(columnNumber) |
| 70 , m_callStack(callStack) | 69 , m_callStack(callStack) |
| 71 , m_requestIdentifier(0) | 70 , m_requestIdentifier(0) |
| 72 , m_timestamp(WTF::currentTime()) | 71 , m_timestamp(WTF::currentTime()) |
| 73 , m_workerProxy(nullptr) | |
| 74 , m_messageId(0) | 72 , m_messageId(0) |
| 75 , m_relatedMessageId(0) | 73 , m_relatedMessageId(0) |
| 76 { | 74 { |
| 77 } | 75 } |
| 78 | 76 |
| 79 ConsoleMessage::~ConsoleMessage() | 77 ConsoleMessage::~ConsoleMessage() |
| 80 { | 78 { |
| 81 } | 79 } |
| 82 | 80 |
| 83 MessageType ConsoleMessage::type() const | 81 MessageType ConsoleMessage::type() const |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 217 unsigned ConsoleMessage::argumentCount() | 215 unsigned ConsoleMessage::argumentCount() |
| 218 { | 216 { |
| 219 if (m_scriptArguments) | 217 if (m_scriptArguments) |
| 220 return m_scriptArguments->argumentCount(); | 218 return m_scriptArguments->argumentCount(); |
| 221 return 0; | 219 return 0; |
| 222 } | 220 } |
| 223 | 221 |
| 224 DEFINE_TRACE(ConsoleMessage) | 222 DEFINE_TRACE(ConsoleMessage) |
| 225 { | 223 { |
| 226 visitor->trace(m_scriptArguments); | 224 visitor->trace(m_scriptArguments); |
| 227 visitor->trace(m_workerProxy); | |
| 228 } | 225 } |
| 229 | 226 |
| 230 } // namespace blink | 227 } // namespace blink |
| OLD | NEW |