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

Side by Side Diff: Source/core/workers/WorkerGlobalScope.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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved.
3 * Copyright (C) 2009, 2011 Google Inc. All Rights Reserved. 3 * Copyright (C) 2009, 2011 Google Inc. All Rights Reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after
298 postTask(AddConsoleMessageTask::create(source, level, message)); 298 postTask(AddConsoleMessageTask::create(source, level, message));
299 return; 299 return;
300 } 300 }
301 thread()->workerReportingProxy().reportConsoleMessage(source, level, message , lineNumber, sourceURL); 301 thread()->workerReportingProxy().reportConsoleMessage(source, level, message , lineNumber, sourceURL);
302 addMessageToWorkerConsole(source, level, message, sourceURL, lineNumber, nul lptr, scriptState); 302 addMessageToWorkerConsole(source, level, message, sourceURL, lineNumber, nul lptr, scriptState);
303 } 303 }
304 304
305 void WorkerGlobalScope::addMessageToWorkerConsole(MessageSource source, MessageL evel level, const String& message, const String& sourceURL, unsigned lineNumber, PassRefPtrWillBeRawPtr<ScriptCallStack> callStack, ScriptState* scriptState) 305 void WorkerGlobalScope::addMessageToWorkerConsole(MessageSource source, MessageL evel level, const String& message, const String& sourceURL, unsigned lineNumber, PassRefPtrWillBeRawPtr<ScriptCallStack> callStack, ScriptState* scriptState)
306 { 306 {
307 ASSERT(isContextThread()); 307 ASSERT(isContextThread());
308 RefPtr<ConsoleMessage> consoleMessage = ConsoleMessage::create(source, level , message, sourceURL, lineNumber); 308 RefPtrWillBeRawPtr<ConsoleMessage> consoleMessage = ConsoleMessage::create(s ource, level, message, sourceURL, lineNumber);
309 consoleMessage->setCallStack(callStack); 309 consoleMessage->setCallStack(callStack);
310 consoleMessage->setScriptState(scriptState); 310 consoleMessage->setScriptState(scriptState);
311 InspectorInstrumentation::addMessageToConsole(this, consoleMessage.get()); 311 InspectorInstrumentation::addMessageToConsole(this, consoleMessage.get());
312 } 312 }
313 313
314 bool WorkerGlobalScope::isContextThread() const 314 bool WorkerGlobalScope::isContextThread() const
315 { 315 {
316 return thread()->isCurrentThread(); 316 return thread()->isCurrentThread();
317 } 317 }
318 318
(...skipping 29 matching lines...) Expand all
348 visitor->trace(m_navigator); 348 visitor->trace(m_navigator);
349 visitor->trace(m_workerInspectorController); 349 visitor->trace(m_workerInspectorController);
350 visitor->trace(m_eventQueue); 350 visitor->trace(m_eventQueue);
351 visitor->trace(m_workerClients); 351 visitor->trace(m_workerClients);
352 WillBeHeapSupplementable<WorkerGlobalScope>::trace(visitor); 352 WillBeHeapSupplementable<WorkerGlobalScope>::trace(visitor);
353 ExecutionContext::trace(visitor); 353 ExecutionContext::trace(visitor);
354 EventTargetWithInlineData::trace(visitor); 354 EventTargetWithInlineData::trace(visitor);
355 } 355 }
356 356
357 } // namespace blink 357 } // namespace blink
OLDNEW
« Source/core/inspector/ConsoleMessage.cpp ('K') | « Source/core/inspector/InspectorTimelineAgent.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698