Cancel any pending IO and wait for it to be aborted before returning from the Disconnect method.  This allows the caller to destroy the read or write buffer safely when the destructor (which calls Disconnect) returns.
Cancel any pending IO and wait for it to be aborted before
returning from the Disconnect method.  This allows the caller
to destroy the read or write buffer safely when the destructor
(which calls Disconnect) returns.

R=eroman,rvargas
BUG=4449
Review URL: http://codereview.chromium.org/11299

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

Former-commit-id: d93577591609533d4f58069973615a3c86a5fd5c
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