Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(255)

Side by Side Diff: Source/core/inspector/ConsoleMessage.cpp

Issue 451153002: Oilpan: Move ConsoleMessage to the heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/core/inspector/ConsoleMessage.h ('k') | Source/core/inspector/InspectorConsoleAgent.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/ScriptState.h"
9 9
10 namespace blink { 10 namespace blink {
(...skipping 16 matching lines...) Expand all
27 , m_level(level) 27 , m_level(level)
28 , m_message(message) 28 , m_message(message)
29 , m_url(url) 29 , m_url(url)
30 , m_lineNumber(lineNumber) 30 , m_lineNumber(lineNumber)
31 , m_columnNumber(columnNumber) 31 , m_columnNumber(columnNumber)
32 , m_scriptState(nullptr) 32 , m_scriptState(nullptr)
33 , m_requestIdentifier(0) 33 , m_requestIdentifier(0)
34 { 34 {
35 } 35 }
36 36
37 PassRefPtr<ScriptCallStack> ConsoleMessage::callStack() const 37 ConsoleMessage::~ConsoleMessage()
38 {
39 }
40
41 PassRefPtrWillBeRawPtr<ScriptCallStack> ConsoleMessage::callStack() const
haraken 2014/08/09 00:31:38 Nit: We normally return a raw pointer from this ki
38 { 42 {
39 return m_callStack; 43 return m_callStack;
40 } 44 }
41 45
42 void ConsoleMessage::setCallStack(PassRefPtr<ScriptCallStack> callStack) 46 void ConsoleMessage::setCallStack(PassRefPtrWillBeRawPtr<ScriptCallStack> callSt ack)
43 { 47 {
44 m_callStack = callStack; 48 m_callStack = callStack;
45 } 49 }
46 50
47 ScriptState* ConsoleMessage::scriptState() const 51 ScriptState* ConsoleMessage::scriptState() const
48 { 52 {
49 return m_scriptState; 53 return m_scriptState;
50 } 54 }
51 55
52 void ConsoleMessage::setScriptState(ScriptState* scriptState) 56 void ConsoleMessage::setScriptState(ScriptState* scriptState)
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 const String& ConsoleMessage::message() const 101 const String& ConsoleMessage::message() const
98 { 102 {
99 return m_message; 103 return m_message;
100 } 104 }
101 105
102 unsigned ConsoleMessage::columnNumber() const 106 unsigned ConsoleMessage::columnNumber() const
103 { 107 {
104 return m_columnNumber; 108 return m_columnNumber;
105 } 109 }
106 110
111 void ConsoleMessage::trace(Visitor* visitor)
112 {
113 visitor->trace(m_callStack);
114 }
115
107 } // namespace WebCore 116 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/inspector/ConsoleMessage.h ('k') | Source/core/inspector/InspectorConsoleAgent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698