| 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/ScriptState.h" | 8 #include "bindings/core/v8/ScriptValue.h" |
| 9 #include "core/inspector/ScriptArguments.h" | 9 #include "core/inspector/ScriptArguments.h" |
| 10 | 10 |
| 11 namespace blink { | 11 namespace blink { |
| 12 | 12 |
| 13 ConsoleMessage::ConsoleMessage(MessageSource source, | 13 ConsoleMessage::ConsoleMessage(MessageSource source, |
| 14 MessageLevel level, | 14 MessageLevel level, |
| 15 const String& message, | 15 const String& message, |
| 16 const String& url, | 16 const String& url, |
| 17 unsigned lineNumber, | 17 unsigned lineNumber, |
| 18 unsigned columnNumber) | 18 unsigned columnNumber) |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 } | 80 } |
| 81 | 81 |
| 82 void ConsoleMessage::setScriptState(ScriptState* scriptState) | 82 void ConsoleMessage::setScriptState(ScriptState* scriptState) |
| 83 { | 83 { |
| 84 if (scriptState) | 84 if (scriptState) |
| 85 m_scriptState = adoptPtr(new ScriptStateProtectingContext(scriptState)); | 85 m_scriptState = adoptPtr(new ScriptStateProtectingContext(scriptState)); |
| 86 else | 86 else |
| 87 m_scriptState.clear(); | 87 m_scriptState.clear(); |
| 88 } | 88 } |
| 89 | 89 |
| 90 PassRefPtr<ScriptArguments> ConsoleMessage::scriptArguments() const | 90 PassRefPtrWillBeRawPtr<ScriptArguments> ConsoleMessage::scriptArguments() const |
| 91 { | 91 { |
| 92 return m_scriptArguments; | 92 return m_scriptArguments; |
| 93 } | 93 } |
| 94 | 94 |
| 95 void ConsoleMessage::setScriptArguments(PassRefPtr<ScriptArguments> scriptArgume
nts) | 95 void ConsoleMessage::setScriptArguments(PassRefPtrWillBeRawPtr<ScriptArguments>
scriptArguments) |
| 96 { | 96 { |
| 97 m_scriptArguments = scriptArguments; | 97 m_scriptArguments = scriptArguments; |
| 98 } | 98 } |
| 99 | 99 |
| 100 unsigned long ConsoleMessage::requestIdentifier() const | 100 unsigned long ConsoleMessage::requestIdentifier() const |
| 101 { | 101 { |
| 102 return m_requestIdentifier; | 102 return m_requestIdentifier; |
| 103 } | 103 } |
| 104 | 104 |
| 105 void ConsoleMessage::setRequestIdentifier(unsigned long requestIdentifier) | 105 void ConsoleMessage::setRequestIdentifier(unsigned long requestIdentifier) |
| (...skipping 17 matching lines...) Expand all Loading... |
| 123 } | 123 } |
| 124 | 124 |
| 125 unsigned ConsoleMessage::columnNumber() const | 125 unsigned ConsoleMessage::columnNumber() const |
| 126 { | 126 { |
| 127 return m_columnNumber; | 127 return m_columnNumber; |
| 128 } | 128 } |
| 129 | 129 |
| 130 void ConsoleMessage::trace(Visitor* visitor) | 130 void ConsoleMessage::trace(Visitor* visitor) |
| 131 { | 131 { |
| 132 visitor->trace(m_callStack); | 132 visitor->trace(m_callStack); |
| 133 visitor->trace(m_scriptArguments); |
| 133 } | 134 } |
| 134 | 135 |
| 135 } // namespace blink | 136 } // namespace blink |
| OLD | NEW |