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

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

Issue 9188019: Cleanup: Rename is_hsts_host to fatal. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « net/url_request/url_request_job.h ('k') | net/url_request/url_request_test_util.h » ('j') | 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) 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/url_request/url_request_job.h" 5 #include "net/url_request/url_request_job.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/message_loop.h" 9 #include "base/message_loop.h"
10 #include "base/string_number_conversions.h" 10 #include "base/string_number_conversions.h"
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 225
226 void URLRequestJob::NotifyCertificateRequested( 226 void URLRequestJob::NotifyCertificateRequested(
227 SSLCertRequestInfo* cert_request_info) { 227 SSLCertRequestInfo* cert_request_info) {
228 if (!request_) 228 if (!request_)
229 return; // The request was destroyed, so there is no more work to do. 229 return; // The request was destroyed, so there is no more work to do.
230 230
231 request_->NotifyCertificateRequested(cert_request_info); 231 request_->NotifyCertificateRequested(cert_request_info);
232 } 232 }
233 233
234 void URLRequestJob::NotifySSLCertificateError(const SSLInfo& ssl_info, 234 void URLRequestJob::NotifySSLCertificateError(const SSLInfo& ssl_info,
235 bool is_hsts_host) { 235 bool fatal) {
236 if (!request_) 236 if (!request_)
237 return; // The request was destroyed, so there is no more work to do. 237 return; // The request was destroyed, so there is no more work to do.
238 238
239 request_->NotifySSLCertificateError(ssl_info, is_hsts_host); 239 request_->NotifySSLCertificateError(ssl_info, fatal);
240 } 240 }
241 241
242 bool URLRequestJob::CanGetCookies(const CookieList& cookie_list) const { 242 bool URLRequestJob::CanGetCookies(const CookieList& cookie_list) const {
243 if (!request_) 243 if (!request_)
244 return false; // The request was destroyed, so there is no more work to do. 244 return false; // The request was destroyed, so there is no more work to do.
245 245
246 return request_->CanGetCookies(cookie_list); 246 return request_->CanGetCookies(cookie_list);
247 } 247 }
248 248
249 bool URLRequestJob::CanSetCookie(const std::string& cookie_line, 249 bool URLRequestJob::CanSetCookie(const std::string& cookie_line,
(...skipping 450 matching lines...) Expand 10 before | Expand all | Expand 10 after
700 } 700 }
701 701
702 bool URLRequestJob::FilterHasData() { 702 bool URLRequestJob::FilterHasData() {
703 return filter_.get() && filter_->stream_data_len(); 703 return filter_.get() && filter_->stream_data_len();
704 } 704 }
705 705
706 void URLRequestJob::UpdatePacketReadTimes() { 706 void URLRequestJob::UpdatePacketReadTimes() {
707 } 707 }
708 708
709 } // namespace net 709 } // namespace net
OLDNEW
« no previous file with comments | « net/url_request/url_request_job.h ('k') | net/url_request/url_request_test_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698