Index: third_party/WebKit/Source/web/WebRemoteFrameImpl.cpp |
diff --git a/third_party/WebKit/Source/web/WebRemoteFrameImpl.cpp b/third_party/WebKit/Source/web/WebRemoteFrameImpl.cpp |
index 0889a3f70005d2e980887351f7796f26528b1db2..3b8a3da10b33338d42f735d07f350589f277ef11 100644 |
--- a/third_party/WebKit/Source/web/WebRemoteFrameImpl.cpp |
+++ b/third_party/WebKit/Source/web/WebRemoteFrameImpl.cpp |
@@ -4,8 +4,11 @@ |
#include "web/WebRemoteFrameImpl.h" |
+#include "core/dom/RemoteSecurityContext.h" |
+#include "core/dom/SecurityContext.h" |
#include "core/frame/FrameView.h" |
#include "core/frame/Settings.h" |
+#include "core/frame/csp/ContentSecurityPolicy.h" |
#include "core/html/HTMLFrameOwnerElement.h" |
#include "core/layout/LayoutObject.h" |
#include "core/page/Page.h" |
@@ -647,6 +650,19 @@ void WebRemoteFrameImpl::setReplicatedName(const WebString& name, const WebStrin |
frame()->tree().setPrecalculatedName(name, uniqueName); |
} |
+void WebRemoteFrameImpl::addReplicatedContentSecurityPolicyHeader(const WebString& headerValue, WebContentSecurityPolicyType type, WebContentSecurityPolicySource source) const |
+{ |
+ frame()->securityContext()->contentSecurityPolicy()->replicateHeader( |
+ headerValue, |
+ static_cast<ContentSecurityPolicyHeaderType>(type), |
+ static_cast<ContentSecurityPolicyHeaderSource>(source)); |
+} |
+ |
+void WebRemoteFrameImpl::resetReplicatedContentSecurityPolicy() const |
+{ |
+ frame()->securityContext()->resetReplicatedContentSecurityPolicy(); |
+} |
+ |
void WebRemoteFrameImpl::setReplicatedShouldEnforceStrictMixedContentChecking(bool shouldEnforce) const |
{ |
DCHECK(frame()); |