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

Side by Side Diff: Source/core/loader/ImageLoader.h

Issue 1304043006: Make classes and structures in core/loader fast-allocated. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 3 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) 2004, 2009 Apple Inc. All rights reserved. 4 * Copyright (C) 2004, 2009 Apple Inc. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 53
54 class Element; 54 class Element;
55 class ImageLoader; 55 class ImageLoader;
56 class LayoutImageResource; 56 class LayoutImageResource;
57 57
58 template<typename T> class EventSender; 58 template<typename T> class EventSender;
59 typedef EventSender<ImageLoader> ImageEventSender; 59 typedef EventSender<ImageLoader> ImageEventSender;
60 60
61 class CORE_EXPORT ImageLoader : public NoBaseWillBeGarbageCollectedFinalized<Ima geLoader>, public ImageResourceClient { 61 class CORE_EXPORT ImageLoader : public NoBaseWillBeGarbageCollectedFinalized<Ima geLoader>, public ImageResourceClient {
62 WILL_BE_USING_PRE_FINALIZER(ImageLoader, dispose); 62 WILL_BE_USING_PRE_FINALIZER(ImageLoader, dispose);
63 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED(ImageLoader);
63 public: 64 public:
64 explicit ImageLoader(Element*); 65 explicit ImageLoader(Element*);
65 ~ImageLoader() override; 66 ~ImageLoader() override;
66 67
67 DECLARE_TRACE(); 68 DECLARE_TRACE();
68 69
69 enum UpdateFromElementBehavior { 70 enum UpdateFromElementBehavior {
70 // This should be the update behavior when the element is attached to a document, or when DOM mutations trigger a new load. 71 // This should be the update behavior when the element is attached to a document, or when DOM mutations trigger a new load.
71 // Starts loading if a load hasn't already been started. 72 // Starts loading if a load hasn't already been started.
72 UpdateNormal, 73 UpdateNormal,
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 bool m_imageComplete : 1; 181 bool m_imageComplete : 1;
181 bool m_loadingImageDocument : 1; 182 bool m_loadingImageDocument : 1;
182 bool m_elementIsProtected : 1; 183 bool m_elementIsProtected : 1;
183 bool m_suppressErrorEvents : 1; 184 bool m_suppressErrorEvents : 1;
184 unsigned m_highPriorityClientCount; 185 unsigned m_highPriorityClientCount;
185 }; 186 };
186 187
187 } 188 }
188 189
189 #endif 190 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698