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

Unified Diff: third_party/WebKit/Source/core/frame/RemoteFrame.cpp

Issue 1489253002: Plumb document's strict mixed content checking for RemoteFrames (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 5 years 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: third_party/WebKit/Source/core/frame/RemoteFrame.cpp
diff --git a/third_party/WebKit/Source/core/frame/RemoteFrame.cpp b/third_party/WebKit/Source/core/frame/RemoteFrame.cpp
index 88ba74565b4c8961e920dd91f3fc55af2e000ec8..c662fb642a6f6f1808b2db2550038330cdfce3c5 100644
--- a/third_party/WebKit/Source/core/frame/RemoteFrame.cpp
+++ b/third_party/WebKit/Source/core/frame/RemoteFrame.cpp
@@ -30,6 +30,7 @@ inline RemoteFrame::RemoteFrame(RemoteFrameClient* client, FrameHost* host, Fram
, m_domWindow(RemoteDOMWindow::create(*this))
, m_windowProxyManager(WindowProxyManager::create(*this))
, m_remotePlatformLayer(nullptr)
+ , m_shouldEnforceStrictMixedContentChecking(false)
alexmos 2015/12/03 20:43:26 Would it make sense to store m_shouldEnforceStrict
estark 2015/12/04 00:19:32 Sure, that seems reasonable to me. Done.
{
}
@@ -130,6 +131,11 @@ bool RemoteFrame::shouldClose()
return true;
}
+bool RemoteFrame::shouldEnforceStrictMixedContentChecking() const
+{
+ return m_shouldEnforceStrictMixedContentChecking;
+}
+
void RemoteFrame::forwardInputEvent(Event* event)
{
remoteFrameClient()->forwardInputEvent(event);
@@ -162,6 +168,11 @@ void RemoteFrame::createView()
deprecatedLocalOwner()->setWidget(m_view);
}
+void RemoteFrame::setShouldEnforceStrictMixedContentChecking(bool shouldEnforce)
+{
+ m_shouldEnforceStrictMixedContentChecking = shouldEnforce;
+}
+
RemoteFrameClient* RemoteFrame::remoteFrameClient() const
{
return static_cast<RemoteFrameClient*>(client());

Powered by Google App Engine
This is Rietveld 408576698