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

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

Issue 1905033002: PlzNavigate: Move navigation-level mixed content checks to the browser. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@console-security-message
Patch Set: Fixed external handling order change for request start and redirects. Created 4 years, 5 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef NET_URL_REQUEST_URL_REQUEST_JOB_H_ 5 #ifndef NET_URL_REQUEST_URL_REQUEST_JOB_H_
6 #define NET_URL_REQUEST_URL_REQUEST_JOB_H_ 6 #define NET_URL_REQUEST_URL_REQUEST_JOB_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 // the course of executing the URLRequestJob. Should be called after the job 242 // the course of executing the URLRequestJob. Should be called after the job
243 // has failed or the response headers have been received. 243 // has failed or the response headers have been received.
244 virtual void GetConnectionAttempts(ConnectionAttempts* out) const; 244 virtual void GetConnectionAttempts(ConnectionAttempts* out) const;
245 245
246 // Given |policy|, |referrer|, and |redirect_destination|, returns the 246 // Given |policy|, |referrer|, and |redirect_destination|, returns the
247 // referrer URL mandated by |request|'s referrer policy. 247 // referrer URL mandated by |request|'s referrer policy.
248 static GURL ComputeReferrerForRedirect(URLRequest::ReferrerPolicy policy, 248 static GURL ComputeReferrerForRedirect(URLRequest::ReferrerPolicy policy,
249 const std::string& referrer, 249 const std::string& referrer,
250 const GURL& redirect_destination); 250 const GURL& redirect_destination);
251 251
252 const RedirectInfo& deferred_redirect_info() {
253 return deferred_redirect_info_;
254 }
255
252 protected: 256 protected:
253 // Notifies the job that a certificate is requested. 257 // Notifies the job that a certificate is requested.
254 void NotifyCertificateRequested(SSLCertRequestInfo* cert_request_info); 258 void NotifyCertificateRequested(SSLCertRequestInfo* cert_request_info);
255 259
256 // Notifies the job about an SSL certificate error. 260 // Notifies the job about an SSL certificate error.
257 void NotifySSLCertificateError(const SSLInfo& ssl_info, bool fatal); 261 void NotifySSLCertificateError(const SSLInfo& ssl_info, bool fatal);
258 262
259 // Delegates to URLRequest::Delegate. 263 // Delegates to URLRequest::Delegate.
260 bool CanGetCookies(const CookieList& cookie_list) const; 264 bool CanGetCookies(const CookieList& cookie_list) const;
261 265
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
463 int64_t last_notified_total_sent_bytes_; 467 int64_t last_notified_total_sent_bytes_;
464 468
465 base::WeakPtrFactory<URLRequestJob> weak_factory_; 469 base::WeakPtrFactory<URLRequestJob> weak_factory_;
466 470
467 DISALLOW_COPY_AND_ASSIGN(URLRequestJob); 471 DISALLOW_COPY_AND_ASSIGN(URLRequestJob);
468 }; 472 };
469 473
470 } // namespace net 474 } // namespace net
471 475
472 #endif // NET_URL_REQUEST_URL_REQUEST_JOB_H_ 476 #endif // NET_URL_REQUEST_URL_REQUEST_JOB_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698