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

Unified Diff: third_party/WebKit/Source/core/frame/FrameOwner.h

Issue 2011763006: Add an iframe permissions= attribute for implementing permission delegation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@permission-delegation-1-flag
Patch Set: Blink-side Created 4 years, 6 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 af018883fc385c0fecf62a37fd8660c768153209..324e33ef53e9a6c04264f22ba1950cf199ee146c 100644
--- a/third_party/WebKit/Source/core/frame/FrameOwner.h
+++ b/third_party/WebKit/Source/core/frame/FrameOwner.h
@@ -9,6 +9,8 @@
#include "core/dom/SandboxFlags.h"
#include "platform/heap/Handle.h"
#include "platform/scroll/ScrollTypes.h"
+#include "public/platform/WebVector.h"
+#include "public/platform/modules/permissions/WebPermissionType.h"
namespace blink {
@@ -39,6 +41,7 @@ public:
virtual int marginWidth() const = 0;
virtual int marginHeight() const = 0;
virtual bool allowFullscreen() const = 0;
+ virtual const WebVector<WebPermissionType>* delegatedPermissions() const = 0;
};
class CORE_EXPORT DummyFrameOwner : public GarbageCollectedFinalized<DummyFrameOwner>, public FrameOwner {
@@ -61,6 +64,7 @@ public:
int marginWidth() const override { return -1; }
int marginHeight() const override { return -1; }
bool allowFullscreen() const override { return false; }
+ const WebVector<WebPermissionType>* delegatedPermissions() const override { return nullptr; }
private:
// Intentionally private to prevent redundant checks when the type is

Powered by Google App Engine
This is Rietveld 408576698