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

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

Issue 2378643002: Propagating csp attribute changes on frameOwnerPropertiesChanged() (Closed)
Patch Set: Separating CSP test, addressing co commnets Created 4 years, 3 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 aca360e1559041de2763eaf54793c972fc72b2c0..69289f3f556d10f9c3fe58d4514e35df5cc67f3f 100644
--- a/third_party/WebKit/Source/web/RemoteFrameOwner.h
+++ b/third_party/WebKit/Source/web/RemoteFrameOwner.h
@@ -36,12 +36,14 @@ public:
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; }
void setScrollingMode(WebFrameOwnerProperties::ScrollingMode);
void setMarginWidth(int marginWidth) { m_marginWidth = marginWidth; }
void setMarginHeight(int marginHeight) { m_marginHeight = marginHeight; }
void setAllowFullscreen(bool allowFullscreen) { m_allowFullscreen = allowFullscreen; }
+ void setCsp(const WebString& csp) { m_csp = csp; }
void setDelegatedpermissions(const WebVector<WebPermissionType>& delegatedPermissions) { m_delegatedPermissions = delegatedPermissions; }
DECLARE_VIRTUAL_TRACE();
@@ -60,6 +62,7 @@ private:
int m_marginWidth;
int m_marginHeight;
bool m_allowFullscreen;
+ WebString m_csp;
WebVector<WebPermissionType> m_delegatedPermissions;
};

Powered by Google App Engine
This is Rietveld 408576698