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

Side by Side Diff: third_party/WebKit/WebCore/dom/WorkerContext.cpp

Issue 21184: WebKit merge 40722:40785 (part 1) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 11 years, 10 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
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « third_party/WebKit/WebCore/dom/Worker.cpp ('k') | third_party/WebKit/WebCore/dom/WorkerContextProxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698