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

Side by Side Diff: net/proxy/proxy_script_fetcher_impl.cc

Issue 7976036: net: make HSTS hosts use the normal SSL interstitials (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ... Created 9 years, 3 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/proxy/proxy_script_fetcher_impl.h" 5 #include "net/proxy/proxy_script_fetcher_impl.h"
6 6
7 #include "base/compiler_specific.h" 7 #include "base/compiler_specific.h"
8 #include "base/i18n/icu_string_conversions.h" 8 #include "base/i18n/icu_string_conversions.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/message_loop.h" 10 #include "base/message_loop.h"
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 AuthChallengeInfo* auth_info) { 184 AuthChallengeInfo* auth_info) {
185 DCHECK_EQ(request, cur_request_.get()); 185 DCHECK_EQ(request, cur_request_.get());
186 // TODO(eroman): http://crbug.com/77366 186 // TODO(eroman): http://crbug.com/77366
187 LOG(WARNING) << "Auth required to fetch PAC script, aborting."; 187 LOG(WARNING) << "Auth required to fetch PAC script, aborting.";
188 result_code_ = ERR_NOT_IMPLEMENTED; 188 result_code_ = ERR_NOT_IMPLEMENTED;
189 request->CancelAuth(); 189 request->CancelAuth();
190 } 190 }
191 191
192 void ProxyScriptFetcherImpl::OnSSLCertificateError(URLRequest* request, 192 void ProxyScriptFetcherImpl::OnSSLCertificateError(URLRequest* request,
193 int cert_error, 193 int cert_error,
194 X509Certificate* cert) { 194 const SSLInfo& ssl_info,
195 bool must_be_fatal) {
195 DCHECK_EQ(request, cur_request_.get()); 196 DCHECK_EQ(request, cur_request_.get());
196 LOG(WARNING) << "SSL certificate error when fetching PAC script, aborting."; 197 LOG(WARNING) << "SSL certificate error when fetching PAC script, aborting.";
197 // Certificate errors are in same space as net errors. 198 // Certificate errors are in same space as net errors.
198 result_code_ = cert_error; 199 result_code_ = cert_error;
199 request->Cancel(); 200 request->Cancel();
200 } 201 }
201 202
202 void ProxyScriptFetcherImpl::OnResponseStarted(URLRequest* request) { 203 void ProxyScriptFetcherImpl::OnResponseStarted(URLRequest* request) {
203 DCHECK_EQ(request, cur_request_.get()); 204 DCHECK_EQ(request, cur_request_.get());
204 205
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
312 // is still applicable. 313 // is still applicable.
313 if (cur_request_id_ != id) 314 if (cur_request_id_ != id)
314 return; 315 return;
315 316
316 DCHECK(cur_request_.get()); 317 DCHECK(cur_request_.get());
317 result_code_ = ERR_TIMED_OUT; 318 result_code_ = ERR_TIMED_OUT;
318 cur_request_->Cancel(); 319 cur_request_->Cancel();
319 } 320 }
320 321
321 } // namespace net 322 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698