Makes sure ResourceDispatcherHost properly cleans up a cancelled request that is not in a pending state. When we cancel a URLRequest with no pending IO, nothing happens. This means ResourceDispatcherHost doesn't clean up its maps and delete the URLRequest.
Makes sure ResourceDispatcherHost properly cleans up a cancelled
request that is not in a pending state. When we cancel a URLRequest
with no pending IO, nothing happens. This means ResourceDispatcherHost
doesn't clean up its maps and delete the URLRequest.

Another possibility for fixing this is to invoke OnResponseCompleted,
but as the request isn't really completed that may cause other bad
things.

Let me know if you think this should be fixed in another way.

BUG=4302
TEST=see bug

Review URL: http://codereview.chromium.org/10814

git-svn-id: http://src.chromium.org/svn/trunk/src@5252 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

Former-commit-id: 107ec924e1c4b1a9b364757f3acd4cb9cf8514cf
meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser