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

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

Issue 1569273004: Move ResourceOwner on to the oilpan heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: win_chromium_compile_dbg_ng is the worst Created 4 years, 11 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
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_FAST_MALLOC_WILL_BE_REMOVED(LinkStyle);
61 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(LinkStyle);
61 public: 62 public:
62 static PassOwnPtrWillBeRawPtr<LinkStyle> create(HTMLLinkElement* owner); 63 static PassOwnPtrWillBeRawPtr<LinkStyle> create(HTMLLinkElement* owner);
63 64
64 explicit LinkStyle(HTMLLinkElement* owner); 65 explicit LinkStyle(HTMLLinkElement* owner);
65 ~LinkStyle() override; 66 ~LinkStyle() override;
66 67
67 Type type() const override { return Style; } 68 Type type() const override { return Style; }
68 void process() override; 69 void process() override;
69 void ownerRemoved() override; 70 void ownerRemoved() override;
70 bool hasLoaded() const override { return m_loadedSheet; } 71 bool hasLoaded() const override { return m_loadedSheet; }
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 void linkLoadingErrored() override; 211 void linkLoadingErrored() override;
211 void didStartLinkPrerender() override; 212 void didStartLinkPrerender() override;
212 void didStopLinkPrerender() override; 213 void didStopLinkPrerender() override;
213 void didSendLoadForLinkPrerender() override; 214 void didSendLoadForLinkPrerender() override;
214 void didSendDOMContentLoadedForLinkPrerender() override; 215 void didSendDOMContentLoadedForLinkPrerender() override;
215 216
216 // From DOMSettableTokenListObserver 217 // From DOMSettableTokenListObserver
217 void valueWasSet() final; 218 void valueWasSet() final;
218 219
219 OwnPtrWillBeMember<LinkResource> m_link; 220 OwnPtrWillBeMember<LinkResource> m_link;
220 LinkLoader m_linkLoader; 221 OwnPtrWillBeMember<LinkLoader> m_linkLoader;
221 222
222 String m_type; 223 String m_type;
223 String m_as; 224 String m_as;
224 String m_media; 225 String m_media;
225 RefPtrWillBeMember<DOMSettableTokenList> m_sizes; 226 RefPtrWillBeMember<DOMSettableTokenList> m_sizes;
226 Vector<IntSize> m_iconSizes; 227 Vector<IntSize> m_iconSizes;
227 OwnPtrWillBeMember<RelList> m_relList; 228 OwnPtrWillBeMember<RelList> m_relList;
228 LinkRelAttribute m_relAttribute; 229 LinkRelAttribute m_relAttribute;
229 230
230 bool m_createdByParser; 231 bool m_createdByParser;
231 bool m_isInShadowTree; 232 bool m_isInShadowTree;
232 }; 233 };
233 234
234 } // namespace blink 235 } // namespace blink
235 236
236 #endif // HTMLLinkElement_h 237 #endif // HTMLLinkElement_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/fetch/ResourceOwner.h ('k') | third_party/WebKit/Source/core/html/HTMLLinkElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698