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

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

Issue 1554903002: EventSender<T> singletons are better off on the Oilpan heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove no-op cancelEvent()s 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) 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 49
50 protected: 50 protected:
51 ImageLoaderClient() { } 51 ImageLoaderClient() { }
52 }; 52 };
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 using ImageEventSender = EventSender<ImageLoader>;
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 USING_FAST_MALLOC_WILL_BE_REMOVED(ImageLoader); 63 USING_FAST_MALLOC_WILL_BE_REMOVED(ImageLoader);
64 public: 64 public:
65 explicit ImageLoader(Element*); 65 explicit ImageLoader(Element*);
66 ~ImageLoader() override; 66 ~ImageLoader() override;
67 67
68 DECLARE_TRACE(); 68 DECLARE_TRACE();
69 69
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 bool m_imageComplete : 1; 186 bool m_imageComplete : 1;
187 bool m_loadingImageDocument : 1; 187 bool m_loadingImageDocument : 1;
188 bool m_elementIsProtected : 1; 188 bool m_elementIsProtected : 1;
189 bool m_suppressErrorEvents : 1; 189 bool m_suppressErrorEvents : 1;
190 unsigned m_highPriorityClientCount; 190 unsigned m_highPriorityClientCount;
191 }; 191 };
192 192
193 } 193 }
194 194
195 #endif 195 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLStyleElement.cpp ('k') | third_party/WebKit/Source/core/loader/ImageLoader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698