Index: net/url_request/https_prober.cc |
diff --git a/net/url_request/https_prober.cc b/net/url_request/https_prober.cc |
index bdafcf6e4eef5d6bf1c121c995e001756dc4ffde..89d1d2085109f759b9b1bd0b6a777771c3810310 100644 |
--- a/net/url_request/https_prober.cc |
+++ b/net/url_request/https_prober.cc |
@@ -10,12 +10,6 @@ |
namespace net { |
-HTTPSProber::HTTPSProber() { |
-} |
- |
-HTTPSProber::~HTTPSProber() { |
-} |
- |
// static |
HTTPSProber* HTTPSProber::GetInstance() { |
return Singleton<HTTPSProber>::get(); |
@@ -46,26 +40,6 @@ bool HTTPSProber::ProbeHost(const std::string& host, URLRequestContext* ctx, |
return true; |
} |
-void HTTPSProber::Success(net::URLRequest* request) { |
- DoCallback(request, true); |
-} |
- |
-void HTTPSProber::Failure(net::URLRequest* request) { |
- DoCallback(request, false); |
-} |
- |
-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()); |
- |
- HTTPSProberDelegate* delegate = i->second; |
- inflight_probes_.erase(i); |
- probed_.insert(request->original_url().host()); |
- delete request; |
- delegate->ProbeComplete(result); |
-} |
- |
void HTTPSProber::OnAuthRequired(net::URLRequest* request, |
net::AuthChallengeInfo* auth_info) { |
Success(request); |
@@ -89,4 +63,30 @@ void HTTPSProber::OnReadCompleted(net::URLRequest* request, int bytes_read) { |
NOTREACHED(); |
} |
+HTTPSProber::HTTPSProber() { |
+} |
+ |
+HTTPSProber::~HTTPSProber() { |
+} |
+ |
+void HTTPSProber::Success(net::URLRequest* request) { |
+ DoCallback(request, true); |
+} |
+ |
+void HTTPSProber::Failure(net::URLRequest* request) { |
+ DoCallback(request, false); |
+} |
+ |
+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()); |
+ |
+ HTTPSProberDelegate* delegate = i->second; |
+ inflight_probes_.erase(i); |
+ probed_.insert(request->original_url().host()); |
+ delete request; |
+ delegate->ProbeComplete(result); |
+} |
+ |
} // namespace net |