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

Unified Diff: content/browser/frame_host/navigation_handle_impl.cc

Issue 1681703002: Update NavigationHandleImpl#GetResponseHeaders method. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@template-url-prototcol
Patch Set: Created 4 years, 10 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: content/browser/frame_host/navigation_handle_impl.cc
diff --git a/content/browser/frame_host/navigation_handle_impl.cc b/content/browser/frame_host/navigation_handle_impl.cc
index 7cec5bf579bf362f9775f87bbadcb8483579a38b..ffb3dc4d2d382ba43720770e83467c9b30f258be 100644
--- a/content/browser/frame_host/navigation_handle_impl.cc
+++ b/content/browser/frame_host/navigation_handle_impl.cc
@@ -132,6 +132,10 @@ bool NavigationHandleImpl::IsSamePage() {
return is_same_page_;
}
+bool NavigationHandleImpl::HasResponseHeaders() const {
+ return state_ >= WILL_REDIRECT_REQUEST && response_headers_.get();
clamy 2016/02/09 10:42:40 nit: the state_ >= WILL_REDIRECT_REQUEST is not re
Donn Denman 2016/02/10 01:05:05 Done.
+}
+
const net::HttpResponseHeaders* NavigationHandleImpl::GetResponseHeaders() {
DCHECK(state_ >= WILL_REDIRECT_REQUEST)
<< "This accessor should only be called when the request encountered a "

Powered by Google App Engine
This is Rietveld 408576698