OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. | 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 ActiveDOMObjectsMap::const_iterator activeObjectsEnd = activeObjects.end(); | 101 ActiveDOMObjectsMap::const_iterator activeObjectsEnd = activeObjects.end(); |
102 for (ActiveDOMObjectsMap::const_iterator iter = activeObjects.begin(); iter
!= activeObjectsEnd; ++iter) { | 102 for (ActiveDOMObjectsMap::const_iterator iter = activeObjects.begin(); iter
!= activeObjectsEnd; ++iter) { |
103 if (iter->first->hasPendingActivity()) | 103 if (iter->first->hasPendingActivity()) |
104 return true; | 104 return true; |
105 } | 105 } |
106 return false; | 106 return false; |
107 } | 107 } |
108 | 108 |
109 void WorkerContext::reportException(const String& errorMessage, int lineNumber,
const String& sourceURL) | 109 void WorkerContext::reportException(const String& errorMessage, int lineNumber,
const String& sourceURL) |
110 { | 110 { |
111 m_thread->messagingProxy()->postWorkerException(errorMessage, lineNumber, so
urceURL); | 111 m_thread->messagingProxy()->postExceptionToWorkerObject(errorMessage, lineNu
mber, sourceURL); |
112 } | 112 } |
113 | 113 |
114 static void addMessageTask(ScriptExecutionContext* context, WorkerMessagingProxy
* messagingProxy, MessageDestination destination, MessageSource source, MessageL
evel level, const String& message, unsigned lineNumber, const String& sourceURL) | 114 static void addMessageTask(ScriptExecutionContext* context, WorkerMessagingProxy
* messagingProxy, MessageDestination destination, MessageSource source, MessageL
evel level, const String& message, unsigned lineNumber, const String& sourceURL) |
115 { | 115 { |
116 if (messagingProxy->askedToTerminate()) | 116 if (messagingProxy->askedToTerminate()) |
117 return; | 117 return; |
118 context->addMessage(destination, source, level, message, lineNumber, sourceU
RL); | 118 context->addMessage(destination, source, level, message, lineNumber, sourceU
RL); |
119 } | 119 } |
120 | 120 |
121 void WorkerContext::addMessage(MessageDestination destination, MessageSource sou
rce, MessageLevel level, const String& message, unsigned lineNumber, const Strin
g& sourceURL) | 121 void WorkerContext::addMessage(MessageDestination destination, MessageSource sou
rce, MessageLevel level, const String& message, unsigned lineNumber, const Strin
g& sourceURL) |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
204 { | 204 { |
205 DOMTimer::removeById(scriptExecutionContext(), timeoutId); | 205 DOMTimer::removeById(scriptExecutionContext(), timeoutId); |
206 } | 206 } |
207 | 207 |
208 } // namespace WebCore | 208 } // namespace WebCore |
209 | 209 |
210 #endif // ENABLE(WORKERS) | 210 #endif // ENABLE(WORKERS) |
211 | 211 |
212 | 212 |
213 | 213 |
OLD | NEW |