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 " |