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

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

Issue 466753002: DevTools: Do not push to frontend messages from worker while it is alive (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix test 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/inspector/ConsoleMessage.h ('k') | Source/core/inspector/InspectorConsoleAgent.h » ('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 {
11 11
12 ConsoleMessage::ConsoleMessage() 12 ConsoleMessage::ConsoleMessage()
13 : m_lineNumber(0) 13 : m_lineNumber(0)
14 , m_columnNumber(0) 14 , m_columnNumber(0)
15 , m_scriptState(nullptr) 15 , m_scriptState(nullptr)
16 , m_requestIdentifier(0) 16 , m_requestIdentifier(0)
17 , m_workerProxy(nullptr)
17 { 18 {
18 } 19 }
19 20
20 ConsoleMessage::ConsoleMessage(MessageSource source, 21 ConsoleMessage::ConsoleMessage(MessageSource source,
21 MessageLevel level, 22 MessageLevel level,
22 const String& message, 23 const String& message,
23 const String& url, 24 const String& url,
24 unsigned lineNumber, 25 unsigned lineNumber,
25 unsigned columnNumber) 26 unsigned columnNumber)
26 : m_source(source) 27 : m_source(source)
27 , m_level(level) 28 , m_level(level)
28 , m_message(message) 29 , m_message(message)
29 , m_url(url) 30 , m_url(url)
30 , m_lineNumber(lineNumber) 31 , m_lineNumber(lineNumber)
31 , m_columnNumber(columnNumber) 32 , m_columnNumber(columnNumber)
32 , m_scriptState(nullptr) 33 , m_scriptState(nullptr)
33 , m_requestIdentifier(0) 34 , m_requestIdentifier(0)
35 , m_workerProxy(nullptr)
34 { 36 {
35 } 37 }
36 38
37 ConsoleMessage::~ConsoleMessage() 39 ConsoleMessage::~ConsoleMessage()
38 { 40 {
39 } 41 }
40 42
41 PassRefPtrWillBeRawPtr<ScriptCallStack> ConsoleMessage::callStack() const 43 PassRefPtrWillBeRawPtr<ScriptCallStack> ConsoleMessage::callStack() const
42 { 44 {
43 return m_callStack; 45 return m_callStack;
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 { 109 {
108 return m_columnNumber; 110 return m_columnNumber;
109 } 111 }
110 112
111 void ConsoleMessage::trace(Visitor* visitor) 113 void ConsoleMessage::trace(Visitor* visitor)
112 { 114 {
113 visitor->trace(m_callStack); 115 visitor->trace(m_callStack);
114 } 116 }
115 117
116 } // namespace WebCore 118 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/inspector/ConsoleMessage.h ('k') | Source/core/inspector/InspectorConsoleAgent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698