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

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

Issue 1774323002: [DevTools] Remove extra plumbing from InspectorWorkerAgent, prepare to multi-client. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixed leaks Created 4 years, 9 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
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 "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 "wtf/CurrentTime.h" 11 #include "wtf/CurrentTime.h"
11 #include "wtf/PassOwnPtr.h" 12 #include "wtf/PassOwnPtr.h"
12 13
13 namespace blink { 14 namespace blink {
14 15
15 unsigned nextMessageId() 16 unsigned nextMessageId()
16 { 17 {
17 struct MessageId { 18 struct MessageId {
18 MessageId() : value(0) { } 19 MessageId() : value(0) { }
19 unsigned value; 20 unsigned value;
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 if (m_type == EndGroupMessageType) 206 if (m_type == EndGroupMessageType)
206 return; 207 return;
207 208
208 if (!m_callStack) 209 if (!m_callStack)
209 setCallStack(ScriptCallStack::captureForConsole()); 210 setCallStack(ScriptCallStack::captureForConsole());
210 } 211 }
211 212
212 DEFINE_TRACE(ConsoleMessage) 213 DEFINE_TRACE(ConsoleMessage)
213 { 214 {
214 visitor->trace(m_scriptArguments); 215 visitor->trace(m_scriptArguments);
216 visitor->trace(m_workerProxy);
215 } 217 }
216 218
217 } // namespace blink 219 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698