OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. | 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 m_pendingActivityCount++; | 69 m_pendingActivityCount++; |
70 } | 70 } |
71 | 71 |
72 template<class T> void unsetPendingActivity(T* thisObject) | 72 template<class T> void unsetPendingActivity(T* thisObject) |
73 { | 73 { |
74 ASSERT(m_pendingActivityCount > 0); | 74 ASSERT(m_pendingActivityCount > 0); |
75 --m_pendingActivityCount; | 75 --m_pendingActivityCount; |
76 thisObject->deref(); | 76 thisObject->deref(); |
77 } | 77 } |
78 | 78 |
79 virtual void reportMemoryUsage(MemoryObjectInfo*) const; | |
80 | |
81 protected: | 79 protected: |
82 virtual ~ActiveDOMObject(); | 80 virtual ~ActiveDOMObject(); |
83 | 81 |
84 private: | 82 private: |
85 unsigned m_pendingActivityCount; | 83 unsigned m_pendingActivityCount; |
86 #if !ASSERT_DISABLED | 84 #if !ASSERT_DISABLED |
87 bool m_suspendIfNeededCalled; | 85 bool m_suspendIfNeededCalled; |
88 #endif | 86 #endif |
89 }; | 87 }; |
90 | 88 |
91 } // namespace WebCore | 89 } // namespace WebCore |
92 | 90 |
93 #endif // ActiveDOMObject_h | 91 #endif // ActiveDOMObject_h |
OLD | NEW |