| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Google, Inc. All Rights Reserved. | 2 * Copyright (C) 2011 Google, 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 25 matching lines...) Expand all Loading... |
| 36 | 36 |
| 37 class CORE_EXPORT DOMWindowProperty : public WillBeGarbageCollectedMixin { | 37 class CORE_EXPORT DOMWindowProperty : public WillBeGarbageCollectedMixin { |
| 38 public: | 38 public: |
| 39 explicit DOMWindowProperty(LocalFrame*); | 39 explicit DOMWindowProperty(LocalFrame*); |
| 40 | 40 |
| 41 virtual void willDestroyGlobalObjectInFrame(); | 41 virtual void willDestroyGlobalObjectInFrame(); |
| 42 virtual void willDetachGlobalObjectFromFrame(); | 42 virtual void willDetachGlobalObjectFromFrame(); |
| 43 | 43 |
| 44 LocalFrame* frame() const { return m_frame; } | 44 LocalFrame* frame() const { return m_frame; } |
| 45 | 45 |
| 46 // TODO(Oilpan): remove eager sweeping once DOMWindowProperty is | 46 EAGERLY_FINALIZE_WILL_BE_REMOVED(); |
| 47 // always on the heap. | |
| 48 EAGERLY_SWEEP(); | |
| 49 DECLARE_VIRTUAL_TRACE(); | 47 DECLARE_VIRTUAL_TRACE(); |
| 50 | 48 |
| 51 protected: | 49 protected: |
| 52 // TODO(Oilpan): when ~DOMWindowProperty is removed, check classes that deri
ve | 50 // TODO(Oilpan): when ~DOMWindowProperty is removed, check classes that deri
ve |
| 53 // from it. Several will then be able to derive from GarbageCollected<> inst
ead. | 51 // from it. Several will then be able to derive from GarbageCollected<> inst
ead. |
| 54 #if !ENABLE(OILPAN) | 52 #if !ENABLE(OILPAN) |
| 55 virtual ~DOMWindowProperty(); | 53 virtual ~DOMWindowProperty(); |
| 56 #endif | 54 #endif |
| 57 | 55 |
| 58 RawPtrWillBeMember<LocalFrame> m_frame; | 56 RawPtrWillBeMember<LocalFrame> m_frame; |
| 59 | 57 |
| 60 #if !ENABLE(OILPAN) | 58 #if !ENABLE(OILPAN) |
| 61 private: | 59 private: |
| 62 LocalDOMWindow* m_associatedDOMWindow; | 60 LocalDOMWindow* m_associatedDOMWindow; |
| 63 #endif | 61 #endif |
| 64 }; | 62 }; |
| 65 | 63 |
| 66 } // namespace blink | 64 } // namespace blink |
| 67 | 65 |
| 68 #endif // DOMWindowProperty_h | 66 #endif // DOMWindowProperty_h |
| OLD | NEW |