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

Unified Diff: third_party/WebKit/Source/web/RemoteFrameOwner.h

Issue 2378643002: Propagating csp attribute changes on frameOwnerPropertiesChanged() (Closed)
Patch Set: rebasing on master Created 4 years, 2 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: third_party/WebKit/Source/web/RemoteFrameOwner.h
diff --git a/third_party/WebKit/Source/web/RemoteFrameOwner.h b/third_party/WebKit/Source/web/RemoteFrameOwner.h
index 5f54fea087fcdf6e7c963c180be34821dfd8b1f3..084e44f7db0b1f19853cf611ab2df29d5a86870f 100644
--- a/third_party/WebKit/Source/web/RemoteFrameOwner.h
+++ b/third_party/WebKit/Source/web/RemoteFrameOwner.h
@@ -40,6 +40,7 @@ class RemoteFrameOwner final
int marginWidth() const override { return m_marginWidth; }
int marginHeight() const override { return m_marginHeight; }
bool allowFullscreen() const override { return m_allowFullscreen; }
+ AtomicString csp() const override { return m_csp; }
const WebVector<WebPermissionType>& delegatedPermissions() const override {
return m_delegatedPermissions;
}
@@ -50,6 +51,7 @@ class RemoteFrameOwner final
void setAllowFullscreen(bool allowFullscreen) {
m_allowFullscreen = allowFullscreen;
}
+ void setCsp(const WebString& csp) { m_csp = csp; }
void setDelegatedpermissions(
const WebVector<WebPermissionType>& delegatedPermissions) {
m_delegatedPermissions = delegatedPermissions;
@@ -71,6 +73,7 @@ class RemoteFrameOwner final
int m_marginWidth;
int m_marginHeight;
bool m_allowFullscreen;
+ WebString m_csp;
WebVector<WebPermissionType> m_delegatedPermissions;
};
« no previous file with comments | « third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp ('k') | third_party/WebKit/Source/web/RemoteFrameOwner.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698