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

Side by Side Diff: third_party/WebKit/Source/core/html/HTMLLinkElement.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, 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 * Copyright (C) 2003, 2008, 2010 Apple Inc. All rights reserved. 4 * Copyright (C) 2003, 2008, 2010 Apple Inc. All rights reserved.
5 * Copyright (C) 2011 Google Inc. All rights reserved. 5 * Copyright (C) 2011 Google 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 // 50 //
51 // LinkStyle handles dynaically change-able link resources, which is 51 // LinkStyle handles dynaically change-able link resources, which is
52 // typically @rel="stylesheet". 52 // typically @rel="stylesheet".
53 // 53 //
54 // It could be @rel="shortcut icon" or soething else though. Each of 54 // It could be @rel="shortcut icon" or soething else though. Each of
55 // types might better be handled by a separate class, but dynamically 55 // types might better be handled by a separate class, but dynamically
56 // changing @rel makes it harder to move such a design so we are 56 // changing @rel makes it harder to move such a design so we are
57 // sticking current way so far. 57 // sticking current way so far.
58 // 58 //
59 class LinkStyle final : public LinkResource, ResourceOwner<StyleSheetResource> { 59 class LinkStyle final : public LinkResource, ResourceOwner<StyleSheetResource> {
60 USING_FAST_MALLOC_WILL_BE_REMOVED(LinkStyle); 60 USING_GARBAGE_COLLECTED_MIXIN(LinkStyle);
61 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(LinkStyle);
62 public: 61 public:
63 static PassOwnPtrWillBeRawPtr<LinkStyle> create(HTMLLinkElement* owner); 62 static RawPtr<LinkStyle> create(HTMLLinkElement* owner);
64 63
65 explicit LinkStyle(HTMLLinkElement* owner); 64 explicit LinkStyle(HTMLLinkElement* owner);
66 ~LinkStyle() override; 65 ~LinkStyle() override;
67 66
68 Type type() const override { return Style; } 67 Type type() const override { return Style; }
69 void process() override; 68 void process() override;
70 void ownerRemoved() override; 69 void ownerRemoved() override;
71 bool hasLoaded() const override { return m_loadedSheet; } 70 bool hasLoaded() const override { return m_loadedSheet; }
72 DECLARE_VIRTUAL_TRACE(); 71 DECLARE_VIRTUAL_TRACE();
73 72
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 void setFetchFollowingCORS() 111 void setFetchFollowingCORS()
113 { 112 {
114 ASSERT(!m_fetchFollowingCORS); 113 ASSERT(!m_fetchFollowingCORS);
115 m_fetchFollowingCORS = true; 114 m_fetchFollowingCORS = true;
116 } 115 }
117 void clearFetchFollowingCORS() 116 void clearFetchFollowingCORS()
118 { 117 {
119 m_fetchFollowingCORS = false; 118 m_fetchFollowingCORS = false;
120 } 119 }
121 120
122 RefPtrWillBeMember<CSSStyleSheet> m_sheet; 121 Member<CSSStyleSheet> m_sheet;
123 DisabledState m_disabledState; 122 DisabledState m_disabledState;
124 PendingSheetType m_pendingSheetType; 123 PendingSheetType m_pendingSheetType;
125 bool m_loading; 124 bool m_loading;
126 bool m_firedLoad; 125 bool m_firedLoad;
127 bool m_loadedSheet; 126 bool m_loadedSheet;
128 bool m_fetchFollowingCORS; 127 bool m_fetchFollowingCORS;
129 }; 128 };
130 129
131 130
132 class CORE_EXPORT HTMLLinkElement final : public HTMLElement, public LinkLoaderC lient, private DOMSettableTokenListObserver { 131 class CORE_EXPORT HTMLLinkElement final : public HTMLElement, public LinkLoaderC lient, private DOMSettableTokenListObserver {
133 DEFINE_WRAPPERTYPEINFO(); 132 DEFINE_WRAPPERTYPEINFO();
134 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(HTMLLinkElement); 133 USING_GARBAGE_COLLECTED_MIXIN(HTMLLinkElement);
135 public: 134 public:
136 static PassRefPtrWillBeRawPtr<HTMLLinkElement> create(Document&, bool create dByParser); 135 static RawPtr<HTMLLinkElement> create(Document&, bool createdByParser);
137 ~HTMLLinkElement() override; 136 ~HTMLLinkElement() override;
138 137
139 KURL href() const; 138 KURL href() const;
140 const AtomicString& rel() const; 139 const AtomicString& rel() const;
141 String media() const { return m_media; } 140 String media() const { return m_media; }
142 String typeValue() const { return m_type; } 141 String typeValue() const { return m_type; }
143 String asValue() const { return m_as; } 142 String asValue() const { return m_as; }
144 const LinkRelAttribute& relAttribute() const { return m_relAttribute; } 143 const LinkRelAttribute& relAttribute() const { return m_relAttribute; }
145 DOMTokenList& relList() const { return static_cast<DOMTokenList&>(*m_relList ); } 144 DOMTokenList& relList() const { return static_cast<DOMTokenList&>(*m_relList ); }
146 145
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 void linkLoaded() override; 209 void linkLoaded() override;
211 void linkLoadingErrored() override; 210 void linkLoadingErrored() override;
212 void didStartLinkPrerender() override; 211 void didStartLinkPrerender() override;
213 void didStopLinkPrerender() override; 212 void didStopLinkPrerender() override;
214 void didSendLoadForLinkPrerender() override; 213 void didSendLoadForLinkPrerender() override;
215 void didSendDOMContentLoadedForLinkPrerender() override; 214 void didSendDOMContentLoadedForLinkPrerender() override;
216 215
217 // From DOMSettableTokenListObserver 216 // From DOMSettableTokenListObserver
218 void valueWasSet() final; 217 void valueWasSet() final;
219 218
220 OwnPtrWillBeMember<LinkResource> m_link; 219 Member<LinkResource> m_link;
221 OwnPtrWillBeMember<LinkLoader> m_linkLoader; 220 Member<LinkLoader> m_linkLoader;
222 221
223 String m_type; 222 String m_type;
224 String m_as; 223 String m_as;
225 String m_media; 224 String m_media;
226 RefPtrWillBeMember<DOMSettableTokenList> m_sizes; 225 Member<DOMSettableTokenList> m_sizes;
227 Vector<IntSize> m_iconSizes; 226 Vector<IntSize> m_iconSizes;
228 OwnPtrWillBeMember<RelList> m_relList; 227 Member<RelList> m_relList;
229 LinkRelAttribute m_relAttribute; 228 LinkRelAttribute m_relAttribute;
230 229
231 bool m_createdByParser; 230 bool m_createdByParser;
232 bool m_isInShadowTree; 231 bool m_isInShadowTree;
233 }; 232 };
234 233
235 } // namespace blink 234 } // namespace blink
236 235
237 #endif // HTMLLinkElement_h 236 #endif // HTMLLinkElement_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698