| 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" | 10 #include "core/workers/WorkerInspectorProxy.h" |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 { | 116 { |
| 117 if (m_scriptState) | 117 if (m_scriptState) |
| 118 m_scriptState->clear(); | 118 m_scriptState->clear(); |
| 119 | 119 |
| 120 if (scriptState) | 120 if (scriptState) |
| 121 m_scriptState = adoptPtr(new ScriptStateProtectingContext(scriptState)); | 121 m_scriptState = adoptPtr(new ScriptStateProtectingContext(scriptState)); |
| 122 else | 122 else |
| 123 m_scriptState.clear(); | 123 m_scriptState.clear(); |
| 124 } | 124 } |
| 125 | 125 |
| 126 PassRefPtrWillBeRawPtr<ScriptArguments> ConsoleMessage::scriptArguments() const | 126 RawPtr<ScriptArguments> ConsoleMessage::scriptArguments() const |
| 127 { | 127 { |
| 128 return m_scriptArguments; | 128 return m_scriptArguments; |
| 129 } | 129 } |
| 130 | 130 |
| 131 void ConsoleMessage::setScriptArguments(PassRefPtrWillBeRawPtr<ScriptArguments>
scriptArguments) | 131 void ConsoleMessage::setScriptArguments(RawPtr<ScriptArguments> scriptArguments) |
| 132 { | 132 { |
| 133 m_scriptArguments = scriptArguments; | 133 m_scriptArguments = scriptArguments; |
| 134 } | 134 } |
| 135 | 135 |
| 136 unsigned long ConsoleMessage::requestIdentifier() const | 136 unsigned long ConsoleMessage::requestIdentifier() const |
| 137 { | 137 { |
| 138 return m_requestIdentifier; | 138 return m_requestIdentifier; |
| 139 } | 139 } |
| 140 | 140 |
| 141 void ConsoleMessage::setRequestIdentifier(unsigned long requestIdentifier) | 141 void ConsoleMessage::setRequestIdentifier(unsigned long requestIdentifier) |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 210 setCallStack(ScriptCallStack::captureForConsole()); | 210 setCallStack(ScriptCallStack::captureForConsole()); |
| 211 } | 211 } |
| 212 | 212 |
| 213 DEFINE_TRACE(ConsoleMessage) | 213 DEFINE_TRACE(ConsoleMessage) |
| 214 { | 214 { |
| 215 visitor->trace(m_scriptArguments); | 215 visitor->trace(m_scriptArguments); |
| 216 visitor->trace(m_workerProxy); | 216 visitor->trace(m_workerProxy); |
| 217 } | 217 } |
| 218 | 218 |
| 219 } // namespace blink | 219 } // namespace blink |
| OLD | NEW |