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

Unified Diff: net/url_request/url_request.cc

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 side-by-side diff with in-line comments
Download patch
Index: net/url_request/url_request.cc
diff --git a/net/url_request/url_request.cc b/net/url_request/url_request.cc
index cd362b3b35583e3c181c09320ce94be5312ddb8d..65707bb99be32f9955f6cdddb5274536fb7d0207 100644
--- a/net/url_request/url_request.cc
+++ b/net/url_request/url_request.cc
@@ -827,6 +827,14 @@ void URLRequest::FollowDeferredRedirect() {
job_->FollowDeferredRedirect();
}
+const GURL& URLRequest::GetDeferredRedirectUrl() {
+ DCHECK(job_.get());
+ DCHECK(status_.is_success());
+ DCHECK(is_redirecting_);
+
+ return job_->deferred_redirect_info().new_url;
+}
+
void URLRequest::SetAuth(const AuthCredentials& credentials) {
DCHECK(job_.get());
DCHECK(job_->NeedsAuth());

Powered by Google App Engine
This is Rietveld 408576698