| 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 "config.h" | 5 #include "config.h" |
| 6 #include "core/inspector/ConsoleMessage.h" | 6 #include "core/inspector/ConsoleMessage.h" |
| 7 | 7 |
| 8 #include "bindings/core/v8/ScriptCallStackFactory.h" | 8 #include "bindings/core/v8/ScriptCallStackFactory.h" |
| 9 #include "bindings/core/v8/ScriptValue.h" | 9 #include "bindings/core/v8/ScriptValue.h" |
| 10 #include "core/inspector/ScriptArguments.h" | 10 #include "core/inspector/ScriptArguments.h" |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 : m_source(source) | 22 : m_source(source) |
| 23 , m_level(level) | 23 , m_level(level) |
| 24 , m_type(LogMessageType) | 24 , m_type(LogMessageType) |
| 25 , m_message(message) | 25 , m_message(message) |
| 26 , m_scriptId(0) | 26 , m_scriptId(0) |
| 27 , m_url(url) | 27 , m_url(url) |
| 28 , m_lineNumber(lineNumber) | 28 , m_lineNumber(lineNumber) |
| 29 , m_columnNumber(columnNumber) | 29 , m_columnNumber(columnNumber) |
| 30 , m_requestIdentifier(0) | 30 , m_requestIdentifier(0) |
| 31 , m_timestamp(WTF::currentTime()) | 31 , m_timestamp(WTF::currentTime()) |
| 32 , m_async(false) | |
| 33 , m_workerProxy(nullptr) | 32 , m_workerProxy(nullptr) |
| 34 { | 33 { |
| 35 } | 34 } |
| 36 | 35 |
| 37 ConsoleMessage::~ConsoleMessage() | 36 ConsoleMessage::~ConsoleMessage() |
| 38 { | 37 { |
| 39 } | 38 } |
| 40 | 39 |
| 41 MessageType ConsoleMessage::type() const | 40 MessageType ConsoleMessage::type() const |
| 42 { | 41 { |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 double ConsoleMessage::timestamp() const | 128 double ConsoleMessage::timestamp() const |
| 130 { | 129 { |
| 131 return m_timestamp; | 130 return m_timestamp; |
| 132 } | 131 } |
| 133 | 132 |
| 134 void ConsoleMessage::setTimestamp(double timestamp) | 133 void ConsoleMessage::setTimestamp(double timestamp) |
| 135 { | 134 { |
| 136 m_timestamp = timestamp; | 135 m_timestamp = timestamp; |
| 137 } | 136 } |
| 138 | 137 |
| 139 bool ConsoleMessage::isAsync() const | |
| 140 { | |
| 141 return m_async; | |
| 142 } | |
| 143 | |
| 144 void ConsoleMessage::markAsAsync() | |
| 145 { | |
| 146 m_async = true; | |
| 147 } | |
| 148 | |
| 149 MessageSource ConsoleMessage::source() const | 138 MessageSource ConsoleMessage::source() const |
| 150 { | 139 { |
| 151 return m_source; | 140 return m_source; |
| 152 } | 141 } |
| 153 | 142 |
| 154 MessageLevel ConsoleMessage::level() const | 143 MessageLevel ConsoleMessage::level() const |
| 155 { | 144 { |
| 156 return m_level; | 145 return m_level; |
| 157 } | 146 } |
| 158 | 147 |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 206 m_callStack.clear(); | 195 m_callStack.clear(); |
| 207 } | 196 } |
| 208 | 197 |
| 209 void ConsoleMessage::trace(Visitor* visitor) | 198 void ConsoleMessage::trace(Visitor* visitor) |
| 210 { | 199 { |
| 211 visitor->trace(m_callStack); | 200 visitor->trace(m_callStack); |
| 212 visitor->trace(m_scriptArguments); | 201 visitor->trace(m_scriptArguments); |
| 213 } | 202 } |
| 214 | 203 |
| 215 } // namespace blink | 204 } // namespace blink |
| OLD | NEW |