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

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

Issue 2682953002: Make delegated permissions use mojo generated -permissions. (Closed)
Patch Set: fix nit 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 12 matching lines...) Expand all
23 23
24 #ifndef HTMLIFrameElement_h 24 #ifndef HTMLIFrameElement_h
25 #define HTMLIFrameElement_h 25 #define HTMLIFrameElement_h
26 26
27 #include "core/CoreExport.h" 27 #include "core/CoreExport.h"
28 #include "core/html/HTMLFrameElementBase.h" 28 #include "core/html/HTMLFrameElementBase.h"
29 #include "core/html/HTMLIFrameElementPermissions.h" 29 #include "core/html/HTMLIFrameElementPermissions.h"
30 #include "core/html/HTMLIFrameElementSandbox.h" 30 #include "core/html/HTMLIFrameElementSandbox.h"
31 #include "platform/Supplementable.h" 31 #include "platform/Supplementable.h"
32 #include "public/platform/WebVector.h" 32 #include "public/platform/WebVector.h"
33 #include "public/platform/modules/permissions/WebPermissionType.h" 33 #include "public/platform/modules/permissions/permission.mojom-blink.h"
34 34
35 namespace blink { 35 namespace blink {
36 36
37 class CORE_EXPORT HTMLIFrameElement final 37 class CORE_EXPORT HTMLIFrameElement final
38 : public HTMLFrameElementBase, 38 : public HTMLFrameElementBase,
39 public Supplementable<HTMLIFrameElement> { 39 public Supplementable<HTMLIFrameElement> {
40 DEFINE_WRAPPERTYPEINFO(); 40 DEFINE_WRAPPERTYPEINFO();
41 USING_GARBAGE_COLLECTED_MIXIN(HTMLIFrameElement); 41 USING_GARBAGE_COLLECTED_MIXIN(HTMLIFrameElement);
42 42
43 public: 43 public:
(...skipping 26 matching lines...) Expand all
70 } 70 }
71 void didLoadNonEmptyDocument() override { m_didLoadNonEmptyDocument = true; } 71 void didLoadNonEmptyDocument() override { m_didLoadNonEmptyDocument = true; }
72 bool isInteractiveContent() const override; 72 bool isInteractiveContent() const override;
73 73
74 ReferrerPolicy referrerPolicyAttribute() override; 74 ReferrerPolicy referrerPolicyAttribute() override;
75 75
76 // FrameOwner overrides: 76 // FrameOwner overrides:
77 bool allowFullscreen() const override { return m_allowFullscreen; } 77 bool allowFullscreen() const override { return m_allowFullscreen; }
78 bool allowPaymentRequest() const override { return m_allowPaymentRequest; } 78 bool allowPaymentRequest() const override { return m_allowPaymentRequest; }
79 AtomicString csp() const override { return m_csp; } 79 AtomicString csp() const override { return m_csp; }
80 const WebVector<WebPermissionType>& delegatedPermissions() const override { 80 const WebVector<mojom::blink::PermissionName>& delegatedPermissions()
81 const override {
81 return m_delegatedPermissions; 82 return m_delegatedPermissions;
82 } 83 }
83 84
84 bool initializePermissionsAttribute(); 85 bool initializePermissionsAttribute();
85 86
86 AtomicString m_name; 87 AtomicString m_name;
87 AtomicString m_csp; 88 AtomicString m_csp;
88 bool m_didLoadNonEmptyDocument; 89 bool m_didLoadNonEmptyDocument;
89 bool m_allowFullscreen; 90 bool m_allowFullscreen;
90 bool m_allowPaymentRequest; 91 bool m_allowPaymentRequest;
91 Member<HTMLIFrameElementSandbox> m_sandbox; 92 Member<HTMLIFrameElementSandbox> m_sandbox;
92 Member<HTMLIFrameElementPermissions> m_permissions; 93 Member<HTMLIFrameElementPermissions> m_permissions;
93 94
94 WebVector<WebPermissionType> m_delegatedPermissions; 95 WebVector<mojom::blink::PermissionName> m_delegatedPermissions;
95 96
96 ReferrerPolicy m_referrerPolicy; 97 ReferrerPolicy m_referrerPolicy;
97 }; 98 };
98 99
99 } // namespace blink 100 } // namespace blink
100 101
101 #endif // HTMLIFrameElement_h 102 #endif // HTMLIFrameElement_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698