OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |