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

Side by Side Diff: third_party/WebKit/Source/web/RemoteFrameOwner.h

Issue 2733823004: Remove old permission delegation prototype (Closed)
Patch Set: update webexposed layout tests Created 3 years, 9 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 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be found 2 // Use of this source code is governed by a BSD-style license that can be found
3 // in the LICENSE file. 3 // in the LICENSE file.
4 4
5 #ifndef RemoteFrameOwner_h 5 #ifndef RemoteFrameOwner_h
6 #define RemoteFrameOwner_h 6 #define RemoteFrameOwner_h
7 7
8 #include "core/frame/FrameOwner.h" 8 #include "core/frame/FrameOwner.h"
9 #include "platform/scroll/ScrollTypes.h" 9 #include "platform/scroll/ScrollTypes.h"
10 #include "public/web/WebFrameOwnerProperties.h" 10 #include "public/web/WebFrameOwnerProperties.h"
(...skipping 30 matching lines...) Expand all
41 41
42 AtomicString browsingContextContainerName() const override { 42 AtomicString browsingContextContainerName() const override {
43 return m_browsingContextContainerName; 43 return m_browsingContextContainerName;
44 } 44 }
45 ScrollbarMode scrollingMode() const override { return m_scrolling; } 45 ScrollbarMode scrollingMode() const override { return m_scrolling; }
46 int marginWidth() const override { return m_marginWidth; } 46 int marginWidth() const override { return m_marginWidth; }
47 int marginHeight() const override { return m_marginHeight; } 47 int marginHeight() const override { return m_marginHeight; }
48 bool allowFullscreen() const override { return m_allowFullscreen; } 48 bool allowFullscreen() const override { return m_allowFullscreen; }
49 bool allowPaymentRequest() const override { return m_allowPaymentRequest; } 49 bool allowPaymentRequest() const override { return m_allowPaymentRequest; }
50 AtomicString csp() const override { return m_csp; } 50 AtomicString csp() const override { return m_csp; }
51 const WebVector<mojom::blink::PermissionName>& delegatedPermissions()
52 const override {
53 return m_delegatedPermissions;
54 }
55 const WebVector<WebFeaturePolicyFeature>& allowedFeatures() const override { 51 const WebVector<WebFeaturePolicyFeature>& allowedFeatures() const override {
56 return m_allowedFeatures; 52 return m_allowedFeatures;
57 } 53 }
58 54
59 void setBrowsingContextContainerName(const WebString& name) { 55 void setBrowsingContextContainerName(const WebString& name) {
60 m_browsingContextContainerName = name; 56 m_browsingContextContainerName = name;
61 } 57 }
62 void setScrollingMode(WebFrameOwnerProperties::ScrollingMode); 58 void setScrollingMode(WebFrameOwnerProperties::ScrollingMode);
63 void setMarginWidth(int marginWidth) { m_marginWidth = marginWidth; } 59 void setMarginWidth(int marginWidth) { m_marginWidth = marginWidth; }
64 void setMarginHeight(int marginHeight) { m_marginHeight = marginHeight; } 60 void setMarginHeight(int marginHeight) { m_marginHeight = marginHeight; }
65 void setAllowFullscreen(bool allowFullscreen) { 61 void setAllowFullscreen(bool allowFullscreen) {
66 m_allowFullscreen = allowFullscreen; 62 m_allowFullscreen = allowFullscreen;
67 } 63 }
68 void setAllowPaymentRequest(bool allowPaymentRequest) { 64 void setAllowPaymentRequest(bool allowPaymentRequest) {
69 m_allowPaymentRequest = allowPaymentRequest; 65 m_allowPaymentRequest = allowPaymentRequest;
70 } 66 }
71 void setCsp(const WebString& csp) { m_csp = csp; } 67 void setCsp(const WebString& csp) { m_csp = csp; }
72 void setDelegatedpermissions(
73 const WebVector<mojom::blink::PermissionName>& delegatedPermissions) {
74 m_delegatedPermissions = delegatedPermissions;
75 }
76 void setAllowedFeatures( 68 void setAllowedFeatures(
77 const WebVector<WebFeaturePolicyFeature>& allowedFeatures) { 69 const WebVector<WebFeaturePolicyFeature>& allowedFeatures) {
78 m_allowedFeatures = allowedFeatures; 70 m_allowedFeatures = allowedFeatures;
79 } 71 }
80 72
81 DECLARE_VIRTUAL_TRACE(); 73 DECLARE_VIRTUAL_TRACE();
82 74
83 private: 75 private:
84 RemoteFrameOwner(SandboxFlags, const WebFrameOwnerProperties&); 76 RemoteFrameOwner(SandboxFlags, const WebFrameOwnerProperties&);
85 77
86 // Intentionally private to prevent redundant checks when the type is 78 // Intentionally private to prevent redundant checks when the type is
87 // already HTMLFrameOwnerElement. 79 // already HTMLFrameOwnerElement.
88 bool isLocal() const override { return false; } 80 bool isLocal() const override { return false; }
89 bool isRemote() const override { return true; } 81 bool isRemote() const override { return true; }
90 82
91 Member<Frame> m_frame; 83 Member<Frame> m_frame;
92 SandboxFlags m_sandboxFlags; 84 SandboxFlags m_sandboxFlags;
93 AtomicString m_browsingContextContainerName; 85 AtomicString m_browsingContextContainerName;
94 ScrollbarMode m_scrolling; 86 ScrollbarMode m_scrolling;
95 int m_marginWidth; 87 int m_marginWidth;
96 int m_marginHeight; 88 int m_marginHeight;
97 bool m_allowFullscreen; 89 bool m_allowFullscreen;
98 bool m_allowPaymentRequest; 90 bool m_allowPaymentRequest;
99 WebString m_csp; 91 WebString m_csp;
100 WebVector<mojom::blink::PermissionName> m_delegatedPermissions;
101 WebVector<WebFeaturePolicyFeature> m_allowedFeatures; 92 WebVector<WebFeaturePolicyFeature> m_allowedFeatures;
102 }; 93 };
103 94
104 DEFINE_TYPE_CASTS(RemoteFrameOwner, 95 DEFINE_TYPE_CASTS(RemoteFrameOwner,
105 FrameOwner, 96 FrameOwner,
106 owner, 97 owner,
107 owner->isRemote(), 98 owner->isRemote(),
108 owner.isRemote()); 99 owner.isRemote());
109 100
110 } // namespace blink 101 } // namespace blink
111 102
112 #endif // RemoteFrameOwner_h 103 #endif // RemoteFrameOwner_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/LocalFrameClientImpl.cpp ('k') | third_party/WebKit/Source/web/WebFrame.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698