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

Unified Diff: Source/WebKit/chromium/src/WorkerFileWriterCallbacksBridge.cpp

Issue 7942006: Merge 95012 - [chromium] Remove AllowCrossThreadAccess for WorkerFileWriterCallbacksBridge. (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/874/
Patch Set: Created 9 years, 3 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebKit/chromium/src/WorkerFileWriterCallbacksBridge.cpp
===================================================================
--- Source/WebKit/chromium/src/WorkerFileWriterCallbacksBridge.cpp (revision 95463)
+++ Source/WebKit/chromium/src/WorkerFileWriterCallbacksBridge.cpp (working copy)
@@ -62,7 +62,7 @@
ASSERT(!m_operationInProgress);
m_operationInProgress = true;
dispatchTaskToMainThread(createCallbackTask(&writeOnMainThread,
- AllowCrossThreadAccess(this), position, data));
+ this, position, data));
}
void WorkerFileWriterCallbacksBridge::postTruncateToMainThread(long long length)
@@ -70,13 +70,13 @@
ASSERT(!m_operationInProgress);
m_operationInProgress = true;
dispatchTaskToMainThread(createCallbackTask(&truncateOnMainThread,
- AllowCrossThreadAccess(this), length));
+ this, length));
}
void WorkerFileWriterCallbacksBridge::postAbortToMainThread()
{
ASSERT(m_operationInProgress);
- dispatchTaskToMainThread(createCallbackTask(&abortOnMainThread, AllowCrossThreadAccess(this)));
+ dispatchTaskToMainThread(createCallbackTask(&abortOnMainThread, this));
}
void WorkerFileWriterCallbacksBridge::postShutdownToMainThread(PassRefPtr<WorkerFileWriterCallbacksBridge> bridge)
@@ -115,17 +115,17 @@
void WorkerFileWriterCallbacksBridge::didWrite(long long bytes, bool complete)
{
- dispatchTaskToWorkerThread(createCallbackTask(&didWriteOnWorkerThread, AllowCrossThreadAccess(this), bytes, complete));
+ dispatchTaskToWorkerThread(createCallbackTask(&didWriteOnWorkerThread, this, bytes, complete));
}
void WorkerFileWriterCallbacksBridge::didFail(WebFileError error)
{
- dispatchTaskToWorkerThread(createCallbackTask(&didFailOnWorkerThread, AllowCrossThreadAccess(this), error));
+ dispatchTaskToWorkerThread(createCallbackTask(&didFailOnWorkerThread, this, error));
}
void WorkerFileWriterCallbacksBridge::didTruncate()
{
- dispatchTaskToWorkerThread(createCallbackTask(&didTruncateOnWorkerThread, AllowCrossThreadAccess(this)));
+ dispatchTaskToWorkerThread(createCallbackTask(&didTruncateOnWorkerThread, this));
}
static const char fileWriterOperationsMode[] = "fileWriterOperationsMode";
@@ -147,7 +147,7 @@
void WorkerFileWriterCallbacksBridge::postInitToMainThread(const KURL& path)
{
dispatchTaskToMainThread(
- createCallbackTask(&initOnMainThread, AllowCrossThreadAccess(this), path));
+ createCallbackTask(&initOnMainThread, this, path));
}
WorkerFileWriterCallbacksBridge::~WorkerFileWriterCallbacksBridge()
@@ -200,14 +200,14 @@
{
ASSERT(m_workerContext->isContextThread());
WebWorkerBase::dispatchTaskToMainThread(
- createCallbackTask(&runTaskOnMainThread, AllowCrossThreadAccess(this), task));
+ createCallbackTask(&runTaskOnMainThread, this, task));
}
void WorkerFileWriterCallbacksBridge::dispatchTaskToWorkerThread(PassOwnPtr<ScriptExecutionContext::Task> task)
{
ASSERT(isMainThread());
m_proxy->postTaskForModeToWorkerContext(
- createCallbackTask(&runTaskOnWorkerThread, AllowCrossThreadAccess(this), task), m_mode);
+ createCallbackTask(&runTaskOnWorkerThread, this, task), m_mode);
}
bool WorkerFileWriterCallbacksBridge::waitForOperationToComplete()
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698