DescriptionReland r97821. DiskCacheBasedSSLHostInfo needs to be declared with
NET_EXPORT_PRIVATE for the shared builds.
Do not call callback->Run() until we are about to return from this
object because callback->Run() may cause this object to be deleted.
Previously we were calling callback->Run() in DoWaitForDataReadyDone(),
which returns to the do-while loop in DoLoop(). The do-while loop
reads the state_ member. If the object was deleted in callback->Run(),
we would be reading state_ after free.
Miscellaneous cleanups: omit net::, and use the assign() method of
std::string to avoid constructing a temporary object.
R=agl@chromium.org,rvargas@chromium.org
BUG=84426
TEST=net_unittests --gtest_filter=DiskCacheBasedSSLHostInfo.DeleteInCallback
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=98119
Patch Set 1 #Patch Set 2 : Add NET_EXPORT_PRIVATE to DiskCacheBasedSSLHostInfo. #
Total comments: 1
Patch Set 3 : Also export SSLHostInfo. #Patch Set 4 : Add ssl_host_info.h to the CL. #
Messages
Total messages: 6 (0 generated)
|