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

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: Addressed all jam@ latest comments. Created 3 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
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 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 // the course of executing the URLRequestJob. Should be called after the job 227 // the course of executing the URLRequestJob. Should be called after the job
228 // has failed or the response headers have been received. 228 // has failed or the response headers have been received.
229 virtual void GetConnectionAttempts(ConnectionAttempts* out) const; 229 virtual void GetConnectionAttempts(ConnectionAttempts* out) const;
230 230
231 // Given |policy|, |referrer|, and |redirect_destination|, returns the 231 // Given |policy|, |referrer|, and |redirect_destination|, returns the
232 // referrer URL mandated by |request|'s referrer policy. 232 // referrer URL mandated by |request|'s referrer policy.
233 static GURL ComputeReferrerForRedirect(URLRequest::ReferrerPolicy policy, 233 static GURL ComputeReferrerForRedirect(URLRequest::ReferrerPolicy policy,
234 const GURL& original_referrer, 234 const GURL& original_referrer,
235 const GURL& redirect_destination); 235 const GURL& redirect_destination);
236 236
237 const RedirectInfo& deferred_redirect_info() {
238 return deferred_redirect_info_;
239 }
240
237 protected: 241 protected:
238 // Notifies the job that a certificate is requested. 242 // Notifies the job that a certificate is requested.
239 void NotifyCertificateRequested(SSLCertRequestInfo* cert_request_info); 243 void NotifyCertificateRequested(SSLCertRequestInfo* cert_request_info);
240 244
241 // Notifies the job about an SSL certificate error. 245 // Notifies the job about an SSL certificate error.
242 void NotifySSLCertificateError(const SSLInfo& ssl_info, bool fatal); 246 void NotifySSLCertificateError(const SSLInfo& ssl_info, bool fatal);
243 247
244 // Delegates to URLRequest::Delegate. 248 // Delegates to URLRequest::Delegate.
245 bool CanGetCookies(const CookieList& cookie_list) const; 249 bool CanGetCookies(const CookieList& cookie_list) const;
246 250
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
438 CompletionCallback read_raw_callback_; 442 CompletionCallback read_raw_callback_;
439 443
440 base::WeakPtrFactory<URLRequestJob> weak_factory_; 444 base::WeakPtrFactory<URLRequestJob> weak_factory_;
441 445
442 DISALLOW_COPY_AND_ASSIGN(URLRequestJob); 446 DISALLOW_COPY_AND_ASSIGN(URLRequestJob);
443 }; 447 };
444 448
445 } // namespace net 449 } // namespace net
446 450
447 #endif // NET_URL_REQUEST_URL_REQUEST_JOB_H_ 451 #endif // NET_URL_REQUEST_URL_REQUEST_JOB_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698