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

Unified Diff: third_party/WebKit/Source/core/frame/FrameOwner.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/core/frame/FrameOwner.h
diff --git a/third_party/WebKit/Source/core/frame/FrameOwner.h b/third_party/WebKit/Source/core/frame/FrameOwner.h
index 6a3e23bef5fefa93a887c6efe7b50c80cb28989d..23f716a89ee317b4fab3298f9f39563e5d25a75a 100644
--- a/third_party/WebKit/Source/core/frame/FrameOwner.h
+++ b/third_party/WebKit/Source/core/frame/FrameOwner.h
@@ -41,6 +41,7 @@ class CORE_EXPORT FrameOwner : public GarbageCollectedMixin {
virtual int marginWidth() const = 0;
virtual int marginHeight() const = 0;
virtual bool allowFullscreen() const = 0;
+ virtual AtomicString csp() const = 0;
virtual const WebVector<WebPermissionType>& delegatedPermissions() const = 0;
};
@@ -64,6 +65,7 @@ class CORE_EXPORT DummyFrameOwner
int marginWidth() const override { return -1; }
int marginHeight() const override { return -1; }
bool allowFullscreen() const override { return false; }
+ AtomicString csp() const override { return nullAtom; }
const WebVector<WebPermissionType>& delegatedPermissions() const override {
DEFINE_STATIC_LOCAL(WebVector<WebPermissionType>, permissions, ());
return permissions;
« no previous file with comments | « content/test/data/frame_owner_properties_csp.html ('k') | third_party/WebKit/Source/core/html/HTMLFrameOwnerElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698