Changeset 95012 in webkit
- Timestamp:
- Sep 12, 2011 9:15:59 PM (13 years ago)
- Location:
- trunk/Source/WebKit/chromium
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/chromium/ChangeLog
r94971 r95012 1 2011-09-12 David Levin <levin@chromium.org> 2 3 [chromium] Remove AllowCrossThreadAccess for WorkerFileWriterCallbacksBridge. 4 https://bugs.webkit.org/show_bug.cgi?id=67943 5 6 Reviewed by Adam Barth. 7 8 * src/WorkerFileWriterCallbacksBridge.cpp: Removed AllowCrossThreadAccess 9 allowing the automatic ref counting to work. This was previous needed when 10 the ref counting wasn't working but that was fixed in r94986. Note that the 11 design was to have ref counting since the methods take PassRefPtr and the 12 class is ThreadSafeRefCounted. (Ideally we have noticed this flaw when 13 adding in AllowCrossThreadAccess.) 14 (WebKit::WorkerFileWriterCallbacksBridge::postWriteToMainThread): 15 (WebKit::WorkerFileWriterCallbacksBridge::postTruncateToMainThread): 16 (WebKit::WorkerFileWriterCallbacksBridge::postAbortToMainThread): 17 (WebKit::WorkerFileWriterCallbacksBridge::didWrite): 18 (WebKit::WorkerFileWriterCallbacksBridge::didFail): 19 (WebKit::WorkerFileWriterCallbacksBridge::didTruncate): 20 (WebKit::WorkerFileWriterCallbacksBridge::postInitToMainThread): 21 (WebKit::WorkerFileWriterCallbacksBridge::dispatchTaskToMainThread): 22 (WebKit::WorkerFileWriterCallbacksBridge::dispatchTaskToWorkerThread): 23 1 24 2011-09-08 Nat Duca <nduca@chromium.org> 2 25 -
trunk/Source/WebKit/chromium/src/WorkerFileWriterCallbacksBridge.cpp
r94231 r95012 63 63 m_operationInProgress = true; 64 64 dispatchTaskToMainThread(createCallbackTask(&writeOnMainThread, 65 AllowCrossThreadAccess(this), position, data));65 this, position, data)); 66 66 } 67 67 … … 71 71 m_operationInProgress = true; 72 72 dispatchTaskToMainThread(createCallbackTask(&truncateOnMainThread, 73 AllowCrossThreadAccess(this), length));73 this, length)); 74 74 } 75 75 … … 77 77 { 78 78 ASSERT(m_operationInProgress); 79 dispatchTaskToMainThread(createCallbackTask(&abortOnMainThread, AllowCrossThreadAccess(this)));79 dispatchTaskToMainThread(createCallbackTask(&abortOnMainThread, this)); 80 80 } 81 81 … … 116 116 void WorkerFileWriterCallbacksBridge::didWrite(long long bytes, bool complete) 117 117 { 118 dispatchTaskToWorkerThread(createCallbackTask(&didWriteOnWorkerThread, AllowCrossThreadAccess(this), bytes, complete));118 dispatchTaskToWorkerThread(createCallbackTask(&didWriteOnWorkerThread, this, bytes, complete)); 119 119 } 120 120 121 121 void WorkerFileWriterCallbacksBridge::didFail(WebFileError error) 122 122 { 123 dispatchTaskToWorkerThread(createCallbackTask(&didFailOnWorkerThread, AllowCrossThreadAccess(this), error));123 dispatchTaskToWorkerThread(createCallbackTask(&didFailOnWorkerThread, this, error)); 124 124 } 125 125 126 126 void WorkerFileWriterCallbacksBridge::didTruncate() 127 127 { 128 dispatchTaskToWorkerThread(createCallbackTask(&didTruncateOnWorkerThread, AllowCrossThreadAccess(this)));128 dispatchTaskToWorkerThread(createCallbackTask(&didTruncateOnWorkerThread, this)); 129 129 } 130 130 … … 148 148 { 149 149 dispatchTaskToMainThread( 150 createCallbackTask(&initOnMainThread, AllowCrossThreadAccess(this), path));150 createCallbackTask(&initOnMainThread, this, path)); 151 151 } 152 152 … … 201 201 ASSERT(m_workerContext->isContextThread()); 202 202 WebWorkerBase::dispatchTaskToMainThread( 203 createCallbackTask(&runTaskOnMainThread, AllowCrossThreadAccess(this), task));203 createCallbackTask(&runTaskOnMainThread, this, task)); 204 204 } 205 205 … … 208 208 ASSERT(isMainThread()); 209 209 m_proxy->postTaskForModeToWorkerContext( 210 createCallbackTask(&runTaskOnWorkerThread, AllowCrossThreadAccess(this), task), m_mode);210 createCallbackTask(&runTaskOnWorkerThread, this, task), m_mode); 211 211 } 212 212
Note: See TracChangeset
for help on using the changeset viewer.