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

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

Issue 2239273002: Don't use SSLStatus from FrameHostMsg_DidCommitProvisionalLoad and instead cache it on the browser … (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: slight cleanup Created 4 years, 4 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/render_frame_host_impl.cc
diff --git a/content/browser/frame_host/render_frame_host_impl.cc b/content/browser/frame_host/render_frame_host_impl.cc
index 7783a262a27b36201331f3184c5823e7e952f6f8..7d642de4070fcde1f3dfd62b7b35cda40b2659c8 100644
--- a/content/browser/frame_host/render_frame_host_impl.cc
+++ b/content/browser/frame_host/render_frame_host_impl.cc
@@ -2628,6 +2628,24 @@ void RenderFrameHostImpl::SuppressFurtherDialogs() {
Send(new FrameMsg_SuppressFurtherDialogs(GetRoutingID()));
}
+void RenderFrameHostImpl::SetSSLStatusForPendingNavigate(
+ const GURL& url, const SSLStatus& ssl_status) {
+ pending_navigate_ssl_status_url_ = url;
+ pending_navigate_ssl_status_ = ssl_status;
+}
+
+bool RenderFrameHostImpl::GetSSLStatusForPendingNavigate(
+ const GURL& url, SSLStatus* status) {
+ bool rv = false;
+ if (url == pending_navigate_ssl_status_url_) {
+ *status = pending_navigate_ssl_status_;
+ rv = true;
+ }
+ pending_navigate_ssl_status_url_ = GURL();
+ pending_navigate_ssl_status_ = SSLStatus();
+ return rv;
+}
+
bool RenderFrameHostImpl::IsSameSiteInstance(
RenderFrameHostImpl* other_render_frame_host) {
// As a sanity check, make sure the frame belongs to the same BrowserContext.

Powered by Google App Engine
This is Rietveld 408576698