OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "net/url_request/url_request_http_job.h" | 5 #include "net/url_request/url_request_http_job.h" |
6 | 6 |
7 #include "base/base_switches.h" | 7 #include "base/base_switches.h" |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "base/file_util.h" | 10 #include "base/file_util.h" |
(...skipping 884 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
895 | 895 |
896 // At this point, we have a request for opportunistic encryption over HTTP. | 896 // At this point, we have a request for opportunistic encryption over HTTP. |
897 // In this case we need to probe to check that we can make HTTPS | 897 // In this case we need to probe to check that we can make HTTPS |
898 // connections to that host. | 898 // connections to that host. |
899 net::HTTPSProber* const prober = Singleton<net::HTTPSProber>::get(); | 899 net::HTTPSProber* const prober = Singleton<net::HTTPSProber>::get(); |
900 if (prober->HaveProbed(request_info_.url.host()) || | 900 if (prober->HaveProbed(request_info_.url.host()) || |
901 prober->InFlight(request_info_.url.host())) { | 901 prober->InFlight(request_info_.url.host())) { |
902 continue; | 902 continue; |
903 } | 903 } |
904 | 904 |
905 net::HTTPSProberDelegate* delegate = | 905 HTTPSProberDelegate* delegate = |
906 new HTTPSProberDelegate(request_info_.url.host(), max_age, | 906 new HTTPSProberDelegate(request_info_.url.host(), max_age, |
907 include_subdomains, | 907 include_subdomains, |
908 ctx->transport_security_state()); | 908 ctx->transport_security_state()); |
909 if (!prober->ProbeHost(request_info_.url.host(), request()->context(), | 909 if (!prober->ProbeHost(request_info_.url.host(), request()->context(), |
910 delegate)) { | 910 delegate)) { |
911 delete delegate; | 911 delete delegate; |
912 } | 912 } |
913 } | 913 } |
914 } | 914 } |
OLD | NEW |