DescriptionMark ResourceClient/ImageResourceObserver finished just before notifying
Previously, all clients (except for awaiting ones) and observers are marked
finished just after checkNotify() is called.
However, it is possible that we have clients in |m_client| newly added during
ResourceClient::notifyFinished(), and such new clients shouldn't be marked
finished without calling notifyFinished().
This CL marks a client/observer just before notifyFinished()/
imageNotifyFinished() is called for the client/observer, and removes
markClientsAndObserversFinished() methods.
This CL also introduces MarkFinishedOption for checkNotify() for multipart
images: In multipart images we call notifyFinished()/imageNotifyFinished()
without marking clients/observers finished when the first part ends.
BUG=633696
Committed: https://crrev.com/62bb97b2652c495598942879e66bd7f1a5dbb918
Cr-Commit-Position: refs/heads/master@{#414423}
Patch Set 1 #Patch Set 2 : Multipart #Patch Set 3 : Refactor #Patch Set 4 : Refactor #Patch Set 5 : tests #
Total comments: 16
Patch Set 6 : Rebase #Patch Set 7 : Reflect comments #
Total comments: 2
Patch Set 8 : Wrap by 80 cols and Rebase. #Messages
Total messages: 38 (26 generated)
|