[SPDY] Use WeakPtr<HttpServerProperties> instead of raw pointers
This will let us better track down what is causing SpdySessions to be
accessing them after they're destroyed, since we'll have crash reports
instead of just the SyzyASAN reports.
Also use scoped_ptr<HttpServerProperties> when appropriate.
BUG=236451
[email protected], [email protected], [email protected], [email protected]
Review URL: https://codereview.chromium.org/19731002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@212466 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/net/http/http_network_transaction.cc b/net/http/http_network_transaction.cc
index f0e09fa..c26564c 100644
--- a/net/http/http_network_transaction.cc
+++ b/net/http/http_network_transaction.cc
@@ -66,10 +66,11 @@
namespace {
-void ProcessAlternateProtocol(HttpStreamFactory* factory,
- HttpServerProperties* http_server_properties,
- const HttpResponseHeaders& headers,
- const HostPortPair& http_host_port_pair) {
+void ProcessAlternateProtocol(
+ HttpStreamFactory* factory,
+ const base::WeakPtr<HttpServerProperties>& http_server_properties,
+ const HttpResponseHeaders& headers,
+ const HostPortPair& http_host_port_pair) {
std::string alternate_protocol_str;
if (!headers.EnumerateHeader(NULL, kAlternateProtocolHeader,