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

Unified Diff: webkit/api/src/WebWorkerImpl.cpp

Issue 341077: Roll DEPS for WebKit 50416:50432. Includes a fix for upstream worker breakag... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 1 month 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
« no previous file with comments | « webkit/api/src/WebWorkerImpl.h ('k') | webkit/tools/layout_tests/test_expectations.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/api/src/WebWorkerImpl.cpp
===================================================================
--- webkit/api/src/WebWorkerImpl.cpp (revision 30779)
+++ webkit/api/src/WebWorkerImpl.cpp (working copy)
@@ -216,9 +216,9 @@
m_client = 0;
}
-void WebWorkerImpl::dispatchTaskToMainThread(PassRefPtr<ScriptExecutionContext::Task> task)
+void WebWorkerImpl::dispatchTaskToMainThread(PassOwnPtr<ScriptExecutionContext::Task> task)
{
- return callOnMainThread(invokeTaskMethod, task.releaseRef());
+ return callOnMainThread(invokeTaskMethod, task.release());
}
void WebWorkerImpl::invokeTaskMethod(void* param)
@@ -226,7 +226,7 @@
ScriptExecutionContext::Task* task =
static_cast<ScriptExecutionContext::Task*>(param);
task->performTask(0);
- task->deref();
+ delete task;
}
// WorkerObjectProxy -----------------------------------------------------------
@@ -346,14 +346,14 @@
// WorkerLoaderProxy -----------------------------------------------------------
-void WebWorkerImpl::postTaskToLoader(PassRefPtr<ScriptExecutionContext::Task> task)
+void WebWorkerImpl::postTaskToLoader(PassOwnPtr<ScriptExecutionContext::Task> task)
{
ASSERT(m_loadingDocument->isDocument());
m_loadingDocument->postTask(task);
}
void WebWorkerImpl::postTaskForModeToWorkerContext(
- PassRefPtr<ScriptExecutionContext::Task> task, const String& mode)
+ PassOwnPtr<ScriptExecutionContext::Task> task, const String& mode)
{
m_workerThread->runLoop().postTaskForMode(task, mode);
}
« no previous file with comments | « webkit/api/src/WebWorkerImpl.h ('k') | webkit/tools/layout_tests/test_expectations.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698