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

Side by Side Diff: net/url_request/url_request_http_job.cc

Issue 2869024: Add virtual to some base classes that have virtual methods... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « net/url_request/https_prober.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « net/url_request/https_prober.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698