OLD | NEW |
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 13 matching lines...) Expand all Loading... |
24 #define ImageLoader_h | 24 #define ImageLoader_h |
25 | 25 |
26 #include "core/CoreExport.h" | 26 #include "core/CoreExport.h" |
27 #include "core/fetch/ImageResource.h" | 27 #include "core/fetch/ImageResource.h" |
28 #include "core/fetch/ImageResourceObserver.h" | 28 #include "core/fetch/ImageResourceObserver.h" |
29 #include "core/fetch/ResourceClient.h" | 29 #include "core/fetch/ResourceClient.h" |
30 #include "platform/heap/Handle.h" | 30 #include "platform/heap/Handle.h" |
31 #include "wtf/HashSet.h" | 31 #include "wtf/HashSet.h" |
32 #include "wtf/WeakPtr.h" | 32 #include "wtf/WeakPtr.h" |
33 #include "wtf/text/AtomicString.h" | 33 #include "wtf/text/AtomicString.h" |
34 #include <memory> | |
35 | 34 |
36 namespace blink { | 35 namespace blink { |
37 | 36 |
38 class IncrementLoadEventDelayCount; | 37 class IncrementLoadEventDelayCount; |
39 class FetchRequest; | 38 class FetchRequest; |
40 class Document; | 39 class Document; |
41 class Element; | 40 class Element; |
42 class ImageLoader; | 41 class ImageLoader; |
43 class LayoutImageResource; | 42 class LayoutImageResource; |
44 | 43 |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 Member<Element> m_element; | 151 Member<Element> m_element; |
153 Member<ImageResource> m_image; | 152 Member<ImageResource> m_image; |
154 // FIXME: Oilpan: We might be able to remove this Persistent hack when | 153 // FIXME: Oilpan: We might be able to remove this Persistent hack when |
155 // ImageResourceClient is traceable. | 154 // ImageResourceClient is traceable. |
156 GC_PLUGIN_IGNORE("http://crbug.com/383741") | 155 GC_PLUGIN_IGNORE("http://crbug.com/383741") |
157 Persistent<Element> m_keepAlive; | 156 Persistent<Element> m_keepAlive; |
158 | 157 |
159 Timer<ImageLoader> m_derefElementTimer; | 158 Timer<ImageLoader> m_derefElementTimer; |
160 AtomicString m_failedLoadURL; | 159 AtomicString m_failedLoadURL; |
161 WeakPtr<Task> m_pendingTask; // owned by Microtask | 160 WeakPtr<Task> m_pendingTask; // owned by Microtask |
162 std::unique_ptr<IncrementLoadEventDelayCount> m_loadDelayCounter; | 161 OwnPtr<IncrementLoadEventDelayCount> m_loadDelayCounter; |
163 bool m_hasPendingLoadEvent : 1; | 162 bool m_hasPendingLoadEvent : 1; |
164 bool m_hasPendingErrorEvent : 1; | 163 bool m_hasPendingErrorEvent : 1; |
165 bool m_imageComplete : 1; | 164 bool m_imageComplete : 1; |
166 bool m_loadingImageDocument : 1; | 165 bool m_loadingImageDocument : 1; |
167 bool m_elementIsProtected : 1; | 166 bool m_elementIsProtected : 1; |
168 bool m_suppressErrorEvents : 1; | 167 bool m_suppressErrorEvents : 1; |
169 }; | 168 }; |
170 | 169 |
171 } // namespace blink | 170 } // namespace blink |
172 | 171 |
173 #endif | 172 #endif |
OLD | NEW |