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

Unified Diff: Source/WebCore/workers/DefaultSharedWorkerRepository.cpp

Issue 10270006: Merge 113138 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1084/
Patch Set: Created 8 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: Source/WebCore/workers/DefaultSharedWorkerRepository.cpp
===================================================================
--- Source/WebCore/workers/DefaultSharedWorkerRepository.cpp (revision 115611)
+++ Source/WebCore/workers/DefaultSharedWorkerRepository.cpp (working copy)
@@ -77,7 +77,7 @@
// WorkerLoaderProxy
virtual void postTaskToLoader(PassOwnPtr<ScriptExecutionContext::Task>);
- virtual void postTaskForModeToWorkerContext(PassOwnPtr<ScriptExecutionContext::Task>, const String&);
+ virtual bool postTaskForModeToWorkerContext(PassOwnPtr<ScriptExecutionContext::Task>, const String&);
// WorkerReportingProxy
virtual void postExceptionToWorkerObject(const String& errorMessage, int lineNumber, const String& sourceURL);
@@ -151,12 +151,13 @@
document->postTask(task);
}
-void SharedWorkerProxy::postTaskForModeToWorkerContext(PassOwnPtr<ScriptExecutionContext::Task> task, const String& mode)
+bool SharedWorkerProxy::postTaskForModeToWorkerContext(PassOwnPtr<ScriptExecutionContext::Task> task, const String& mode)
{
if (isClosing())
- return;
+ return false;
ASSERT(m_thread);
m_thread->runLoop().postTaskForMode(task, mode);
+ return true;
}
static void postExceptionTask(ScriptExecutionContext* context, const String& errorMessage, int lineNumber, const String& sourceURL)
« no previous file with comments | « Source/WebCore/Modules/websockets/WorkerThreadableWebSocketChannel.cpp ('k') | Source/WebCore/workers/WorkerLoaderProxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698