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

Side by Side Diff: third_party/WebKit/Source/core/html/HTMLIFrameElement.h

Issue 2697713003: Initial Implementation of Iframe Attribute for Feature Policy (Part 2) (Closed)
Patch Set: Initial Impl Created 3 years, 10 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2000 Simon Hausmann <hausmann@kde.org> 4 * (C) 2000 Simon Hausmann <hausmann@kde.org>
5 * Copyright (C) 2004, 2006, 2008, 2009 Apple Inc. All rights reserved. 5 * Copyright (C) 2004, 2006, 2008, 2009 Apple Inc. All rights reserved.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 ReferrerPolicy referrerPolicyAttribute() override; 78 ReferrerPolicy referrerPolicyAttribute() override;
79 79
80 // FrameOwner overrides: 80 // FrameOwner overrides:
81 bool allowFullscreen() const override { return m_allowFullscreen; } 81 bool allowFullscreen() const override { return m_allowFullscreen; }
82 bool allowPaymentRequest() const override { return m_allowPaymentRequest; } 82 bool allowPaymentRequest() const override { return m_allowPaymentRequest; }
83 AtomicString csp() const override { return m_csp; } 83 AtomicString csp() const override { return m_csp; }
84 const WebVector<mojom::blink::PermissionName>& delegatedPermissions() 84 const WebVector<mojom::blink::PermissionName>& delegatedPermissions()
85 const override { 85 const override {
86 return m_delegatedPermissions; 86 return m_delegatedPermissions;
87 } 87 }
88 const WebVector<WebFeaturePolicyFeature>& allowedFeatureNames()
89 const override {
90 return m_allowedFeatureNames;
91 }
88 92
89 bool initializePermissionsAttribute(); 93 bool initializePermissionsAttribute();
90 94
91 AtomicString m_name; 95 AtomicString m_name;
92 AtomicString m_csp; 96 AtomicString m_csp;
93 bool m_didLoadNonEmptyDocument; 97 bool m_didLoadNonEmptyDocument;
94 bool m_allowFullscreen; 98 bool m_allowFullscreen;
95 bool m_allowPaymentRequest; 99 bool m_allowPaymentRequest;
96 Member<HTMLIFrameElementSandbox> m_sandbox; 100 Member<HTMLIFrameElementSandbox> m_sandbox;
97 Member<HTMLIFrameElementPermissions> m_permissions; 101 Member<HTMLIFrameElementPermissions> m_permissions;
98 Member<HTMLIFrameElementAllow> m_allow; 102 Member<HTMLIFrameElementAllow> m_allow;
99 103
100 WebVector<mojom::blink::PermissionName> m_delegatedPermissions; 104 WebVector<mojom::blink::PermissionName> m_delegatedPermissions;
101 WebVector<WebFeaturePolicyFeature> m_allowedFeatureNames; 105 WebVector<WebFeaturePolicyFeature> m_allowedFeatureNames;
102 106
103 ReferrerPolicy m_referrerPolicy; 107 ReferrerPolicy m_referrerPolicy;
104 }; 108 };
105 109
106 } // namespace blink 110 } // namespace blink
107 111
108 #endif // HTMLIFrameElement_h 112 #endif // HTMLIFrameElement_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698