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

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

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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) 2006, 2007, 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2009 Apple Inc. All rights reserved.
3 * 3 *
4 * This library is free software; you can redistribute it and/or 4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public 5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either 6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version. 7 * version 2 of the License, or (at your option) any later version.
8 * 8 *
9 * This library is distributed in the hope that it will be useful, 9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 21 matching lines...) Expand all
32 32
33 namespace blink { 33 namespace blink {
34 34
35 class LocalDOMWindow; 35 class LocalDOMWindow;
36 class ExceptionState; 36 class ExceptionState;
37 class Frame; 37 class Frame;
38 class LayoutPart; 38 class LayoutPart;
39 class Widget; 39 class Widget;
40 40
41 class CORE_EXPORT HTMLFrameOwnerElement : public HTMLElement, public FrameOwner { 41 class CORE_EXPORT HTMLFrameOwnerElement : public HTMLElement, public FrameOwner {
42 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(HTMLFrameOwnerElement); 42 USING_GARBAGE_COLLECTED_MIXIN(HTMLFrameOwnerElement);
43 public: 43 public:
44 ~HTMLFrameOwnerElement() override; 44 ~HTMLFrameOwnerElement() override;
45 45
46 Frame* contentFrame() const { return m_contentFrame; } 46 Frame* contentFrame() const { return m_contentFrame; }
47 DOMWindow* contentWindow() const; 47 DOMWindow* contentWindow() const;
48 Document* contentDocument() const; 48 Document* contentDocument() const;
49 49
50 void disconnectContentFrame(); 50 void disconnectContentFrame();
51 51
52 // Most subclasses use LayoutPart (either LayoutEmbeddedObject or LayoutIFra me) 52 // Most subclasses use LayoutPart (either LayoutEmbeddedObject or LayoutIFra me)
53 // except for HTMLObjectElement and HTMLEmbedElement which may return any 53 // except for HTMLObjectElement and HTMLEmbedElement which may return any
54 // LayoutObject when using fallback content. 54 // LayoutObject when using fallback content.
55 LayoutPart* layoutPart() const; 55 LayoutPart* layoutPart() const;
56 56
57 Document* getSVGDocument(ExceptionState&) const; 57 Document* getSVGDocument(ExceptionState&) const;
58 58
59 virtual bool loadedNonEmptyDocument() const { return false; } 59 virtual bool loadedNonEmptyDocument() const { return false; }
60 virtual void didLoadNonEmptyDocument() { } 60 virtual void didLoadNonEmptyDocument() { }
61 61
62 void setWidget(PassRefPtrWillBeRawPtr<Widget>); 62 void setWidget(RawPtr<Widget>);
63 PassRefPtrWillBeRawPtr<Widget> releaseWidget(); 63 RawPtr<Widget> releaseWidget();
64 Widget* ownedWidget() const; 64 Widget* ownedWidget() const;
65 65
66 class UpdateSuspendScope { 66 class UpdateSuspendScope {
67 STACK_ALLOCATED(); 67 STACK_ALLOCATED();
68 public: 68 public:
69 UpdateSuspendScope(); 69 UpdateSuspendScope();
70 ~UpdateSuspendScope(); 70 ~UpdateSuspendScope();
71 71
72 private: 72 private:
73 void performDeferredWidgetTreeOperations(); 73 void performDeferredWidgetTreeOperations();
(...skipping 18 matching lines...) Expand all
92 void setSandboxFlags(SandboxFlags); 92 void setSandboxFlags(SandboxFlags);
93 93
94 bool loadOrRedirectSubframe(const KURL&, const AtomicString& frameName, bool replaceCurrentItem); 94 bool loadOrRedirectSubframe(const KURL&, const AtomicString& frameName, bool replaceCurrentItem);
95 95
96 private: 96 private:
97 bool isKeyboardFocusable() const override; 97 bool isKeyboardFocusable() const override;
98 bool isFrameOwnerElement() const final { return true; } 98 bool isFrameOwnerElement() const final { return true; }
99 99
100 virtual ReferrerPolicy referrerPolicyAttribute() { return ReferrerPolicyDefa ult; } 100 virtual ReferrerPolicy referrerPolicyAttribute() { return ReferrerPolicyDefa ult; }
101 101
102 RawPtrWillBeMember<Frame> m_contentFrame; 102 Member<Frame> m_contentFrame;
103 RefPtrWillBeMember<Widget> m_widget; 103 Member<Widget> m_widget;
104 SandboxFlags m_sandboxFlags; 104 SandboxFlags m_sandboxFlags;
105 }; 105 };
106 106
107 DEFINE_ELEMENT_TYPE_CASTS(HTMLFrameOwnerElement, isFrameOwnerElement()); 107 DEFINE_ELEMENT_TYPE_CASTS(HTMLFrameOwnerElement, isFrameOwnerElement());
108 108
109 class SubframeLoadingDisabler { 109 class SubframeLoadingDisabler {
110 STACK_ALLOCATED(); 110 STACK_ALLOCATED();
111 public: 111 public:
112 explicit SubframeLoadingDisabler(Node& root) : SubframeLoadingDisabler(&root ) 112 explicit SubframeLoadingDisabler(Node& root) : SubframeLoadingDisabler(&root )
113 { 113 {
(...skipping 15 matching lines...) Expand all
129 static bool canLoadFrame(HTMLFrameOwnerElement& owner) 129 static bool canLoadFrame(HTMLFrameOwnerElement& owner)
130 { 130 {
131 for (Node* node = &owner; node; node = node->parentOrShadowHostNode()) { 131 for (Node* node = &owner; node; node = node->parentOrShadowHostNode()) {
132 if (disabledSubtreeRoots().contains(node)) 132 if (disabledSubtreeRoots().contains(node))
133 return false; 133 return false;
134 } 134 }
135 return true; 135 return true;
136 } 136 }
137 137
138 private: 138 private:
139 CORE_EXPORT static WillBeHeapHashCountedSet<RawPtrWillBeMember<Node>>& disab ledSubtreeRoots(); 139 CORE_EXPORT static HeapHashCountedSet<Member<Node>>& disabledSubtreeRoots();
140 140
141 RawPtrWillBeMember<Node> m_root; 141 Member<Node> m_root;
142 }; 142 };
143 143
144 DEFINE_TYPE_CASTS(HTMLFrameOwnerElement, FrameOwner, owner, owner->isLocal(), ow ner.isLocal()); 144 DEFINE_TYPE_CASTS(HTMLFrameOwnerElement, FrameOwner, owner, owner->isLocal(), ow ner.isLocal());
145 145
146 } // namespace blink 146 } // namespace blink
147 147
148 #endif // HTMLFrameOwnerElement_h 148 #endif // HTMLFrameOwnerElement_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLFormElement.cpp ('k') | third_party/WebKit/Source/core/html/HTMLFrameOwnerElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698