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

Side by Side Diff: Source/core/workers/WorkerGlobalScope.cpp

Issue 20890003: Limit console messages' automatic collection of parser state. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebaseline "fast/frames/sandboxed-iframe-autofocus-denied.html" Created 7 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/workers/WorkerGlobalScope.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 EventTarget* WorkerGlobalScope::errorEventTarget() 226 EventTarget* WorkerGlobalScope::errorEventTarget()
227 { 227 {
228 return this; 228 return this;
229 } 229 }
230 230
231 void WorkerGlobalScope::logExceptionToConsole(const String& errorMessage, const String& sourceURL, int lineNumber, int columnNumber, PassRefPtr<ScriptCallStack> ) 231 void WorkerGlobalScope::logExceptionToConsole(const String& errorMessage, const String& sourceURL, int lineNumber, int columnNumber, PassRefPtr<ScriptCallStack> )
232 { 232 {
233 thread()->workerReportingProxy().postExceptionToWorkerObject(errorMessage, l ineNumber, columnNumber, sourceURL); 233 thread()->workerReportingProxy().postExceptionToWorkerObject(errorMessage, l ineNumber, columnNumber, sourceURL);
234 } 234 }
235 235
236 void WorkerGlobalScope::addConsoleMessage(MessageSource source, MessageLevel lev el, const String& message, unsigned long requestIdentifier) 236 void WorkerGlobalScope::addConsoleMessage(MessageSource source, MessageLevel lev el, const String& message, unsigned long requestIdentifier, ParserStateCollectio nDisposition)
237 { 237 {
238 if (!isContextThread()) { 238 if (!isContextThread()) {
239 postTask(AddConsoleMessageTask::create(source, level, message)); 239 postTask(AddConsoleMessageTask::create(source, level, message));
240 return; 240 return;
241 } 241 }
242 thread()->workerReportingProxy().postConsoleMessageToWorkerObject(source, le vel, message, 0, String()); 242 thread()->workerReportingProxy().postConsoleMessageToWorkerObject(source, le vel, message, 0, String());
243 243
244 addMessageToWorkerConsole(source, level, message, String(), 0, 0, 0, request Identifier); 244 addMessageToWorkerConsole(source, level, message, String(), 0, 0, 0, request Identifier);
245 } 245 }
246 246
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
334 { 334 {
335 return script()->idleNotification(); 335 return script()->idleNotification();
336 } 336 }
337 337
338 WorkerEventQueue* WorkerGlobalScope::eventQueue() const 338 WorkerEventQueue* WorkerGlobalScope::eventQueue() const
339 { 339 {
340 return m_eventQueue.get(); 340 return m_eventQueue.get();
341 } 341 }
342 342
343 } // namespace WebCore 343 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/workers/WorkerGlobalScope.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698