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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 | 62 |
63 bool hasPendingBeforeLoadEvent() const { return m_hasPendingBeforeLoadEvent;
} | 63 bool hasPendingBeforeLoadEvent() const { return m_hasPendingBeforeLoadEvent;
} |
64 bool hasPendingActivity() const { return m_hasPendingLoadEvent || m_hasPendi
ngErrorEvent; } | 64 bool hasPendingActivity() const { return m_hasPendingLoadEvent || m_hasPendi
ngErrorEvent; } |
65 | 65 |
66 void dispatchPendingEvent(ImageEventSender*); | 66 void dispatchPendingEvent(ImageEventSender*); |
67 | 67 |
68 static void dispatchPendingBeforeLoadEvents(); | 68 static void dispatchPendingBeforeLoadEvents(); |
69 static void dispatchPendingLoadEvents(); | 69 static void dispatchPendingLoadEvents(); |
70 static void dispatchPendingErrorEvents(); | 70 static void dispatchPendingErrorEvents(); |
71 | 71 |
72 virtual void reportMemoryUsage(MemoryObjectInfo*) const; | |
73 | |
74 protected: | 72 protected: |
75 virtual void notifyFinished(CachedResource*); | 73 virtual void notifyFinished(CachedResource*); |
76 | 74 |
77 private: | 75 private: |
78 virtual void dispatchLoadEvent() = 0; | 76 virtual void dispatchLoadEvent() = 0; |
79 virtual String sourceURI(const AtomicString&) const = 0; | 77 virtual String sourceURI(const AtomicString&) const = 0; |
80 | 78 |
81 void updatedHasPendingEvent(); | 79 void updatedHasPendingEvent(); |
82 | 80 |
83 void dispatchPendingBeforeLoadEvent(); | 81 void dispatchPendingBeforeLoadEvent(); |
(...skipping 16 matching lines...) Expand all Loading... |
100 bool m_hasPendingLoadEvent : 1; | 98 bool m_hasPendingLoadEvent : 1; |
101 bool m_hasPendingErrorEvent : 1; | 99 bool m_hasPendingErrorEvent : 1; |
102 bool m_imageComplete : 1; | 100 bool m_imageComplete : 1; |
103 bool m_loadManually : 1; | 101 bool m_loadManually : 1; |
104 bool m_elementIsProtected : 1; | 102 bool m_elementIsProtected : 1; |
105 }; | 103 }; |
106 | 104 |
107 } | 105 } |
108 | 106 |
109 #endif | 107 #endif |
OLD | NEW |