Chromium Code Reviews
DescriptionHave MimeSniffingResourceHandler call WillStartRequest on new Handlers.
Previously, when swapping in a new ResourceHandler, this method was not
being called on them. This, combined with another bug, was resulting
in crashes.
Could have the InterceptingResourceHandler invoke this function instead,
the two reasons for having the MimeSniffingResourceHandler do it instead
are that it already implements ResourceController and ties it to a
DoLoop, and that there's a symmetry in bringing the new ResourceHandler
to the same state the old one was in before swapping it in. One the down
side, both the InterceptingResourceHandler and the
MimeSniffingResourceHandler share the responsibilty for handling sending
data to both the old and new handlers for the transfer, though this
was already the previous state as well, just to a lesser extent.
BUG=640545
Patch Set 1 #Patch Set 2 : Tests! #Patch Set 3 : Fix #
Messages
Total messages: 19 (15 generated)
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||