Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1485)

Unified Diff: net/url_request/https_prober.cc

Issue 6382003: Reorder the methods in net/url_request/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Compiling net_unittests != compiling the rest of chrome Created 9 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/url_request/https_prober.h ('k') | net/url_request/url_request.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « net/url_request/https_prober.h ('k') | net/url_request/url_request.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698