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

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, 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) 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 LinkResourceType type() const override { return Style; } 67 LinkResourceType 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 DOMTokenListObserver { 131 class CORE_EXPORT HTMLLinkElement final : public HTMLElement, public LinkLoaderC lient, private DOMTokenListObserver {
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 String scope() const { return m_scope; } 145 String scope() const { return m_scope; }
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 void linkLoaded() override; 210 void linkLoaded() override;
212 void linkLoadingErrored() override; 211 void linkLoadingErrored() override;
213 void didStartLinkPrerender() override; 212 void didStartLinkPrerender() override;
214 void didStopLinkPrerender() override; 213 void didStopLinkPrerender() override;
215 void didSendLoadForLinkPrerender() override; 214 void didSendLoadForLinkPrerender() override;
216 void didSendDOMContentLoadedForLinkPrerender() override; 215 void didSendDOMContentLoadedForLinkPrerender() override;
217 216
218 // From DOMTokenListObserver 217 // From DOMTokenListObserver
219 void valueWasSet() final; 218 void valueWasSet() final;
220 219
221 OwnPtrWillBeMember<LinkResource> m_link; 220 Member<LinkResource> m_link;
222 OwnPtrWillBeMember<LinkLoader> m_linkLoader; 221 Member<LinkLoader> m_linkLoader;
223 222
224 String m_type; 223 String m_type;
225 String m_as; 224 String m_as;
226 String m_media; 225 String m_media;
227 RefPtrWillBeMember<DOMTokenList> m_sizes; 226 Member<DOMTokenList> m_sizes;
228 Vector<IntSize> m_iconSizes; 227 Vector<IntSize> m_iconSizes;
229 RawPtrWillBeMember<RelList> m_relList; 228 Member<RelList> m_relList;
230 LinkRelAttribute m_relAttribute; 229 LinkRelAttribute m_relAttribute;
231 String m_scope; 230 String m_scope;
232 231
233 bool m_createdByParser; 232 bool m_createdByParser;
234 bool m_isInShadowTree; 233 bool m_isInShadowTree;
235 }; 234 };
236 235
237 } // namespace blink 236 } // namespace blink
238 237
239 #endif // HTMLLinkElement_h 238 #endif // HTMLLinkElement_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLLabelElement.cpp ('k') | third_party/WebKit/Source/core/html/HTMLLinkElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698