diff options
Diffstat (limited to 'net/url_request/https_prober.cc')
-rw-r--r-- | net/url_request/https_prober.cc | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/net/url_request/https_prober.cc b/net/url_request/https_prober.cc index d69eaf3..4388294 100644 --- a/net/url_request/https_prober.cc +++ b/net/url_request/https_prober.cc @@ -34,21 +34,21 @@ bool HTTPSProber::ProbeHost(const std::string& host, URLRequestContext* ctx, GURL url("https://" + host); DCHECK_EQ(url.host(), host); - URLRequest* req = new URLRequest(url, this); + net::URLRequest* req = new net::URLRequest(url, this); req->set_context(ctx); req->Start(); return true; } -void HTTPSProber::Success(URLRequest* request) { +void HTTPSProber::Success(net::URLRequest* request) { DoCallback(request, true); } -void HTTPSProber::Failure(URLRequest* request) { +void HTTPSProber::Failure(net::URLRequest* request) { DoCallback(request, false); } -void HTTPSProber::DoCallback(URLRequest* request, bool result) { +void HTTPSProber::DoCallback(net::URLRequest* request, bool result) { std::map<std::string, HTTPSProberDelegate*>::iterator i = inflight_probes_.find(request->original_url().host()); DCHECK(i != inflight_probes_.end()); @@ -60,18 +60,18 @@ void HTTPSProber::DoCallback(URLRequest* request, bool result) { delegate->ProbeComplete(result); } -void HTTPSProber::OnAuthRequired(URLRequest* request, +void HTTPSProber::OnAuthRequired(net::URLRequest* request, net::AuthChallengeInfo* auth_info) { Success(request); } -void HTTPSProber::OnSSLCertificateError(URLRequest* request, +void HTTPSProber::OnSSLCertificateError(net::URLRequest* request, int cert_error, net::X509Certificate* cert) { request->ContinueDespiteLastError(); } -void HTTPSProber::OnResponseStarted(URLRequest* request) { +void HTTPSProber::OnResponseStarted(net::URLRequest* request) { if (request->status().status() == URLRequestStatus::SUCCESS) { Success(request); } else { @@ -79,7 +79,7 @@ void HTTPSProber::OnResponseStarted(URLRequest* request) { } } -void HTTPSProber::OnReadCompleted(URLRequest* request, int bytes_read) { +void HTTPSProber::OnReadCompleted(net::URLRequest* request, int bytes_read) { NOTREACHED(); } |