| 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 16 matching lines...) Expand all  Loading... | 
|  27 #define DOMWindowProperty_h |  27 #define DOMWindowProperty_h | 
|  28  |  28  | 
|  29 #include "core/CoreExport.h" |  29 #include "core/CoreExport.h" | 
|  30 #include "platform/heap/Handle.h" |  30 #include "platform/heap/Handle.h" | 
|  31  |  31  | 
|  32 namespace blink { |  32 namespace blink { | 
|  33  |  33  | 
|  34 class LocalDOMWindow; |  34 class LocalDOMWindow; | 
|  35 class LocalFrame; |  35 class LocalFrame; | 
|  36  |  36  | 
|  37 class CORE_EXPORT DOMWindowProperty : public WillBeGarbageCollectedMixin { |  37 class CORE_EXPORT DOMWindowProperty : public GarbageCollectedMixin { | 
|  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     EAGERLY_FINALIZE_WILL_BE_REMOVED(); |  | 
|  47     DECLARE_VIRTUAL_TRACE(); |  46     DECLARE_VIRTUAL_TRACE(); | 
|  48  |  47  | 
|  49 protected: |  48 protected: | 
|  50     // TODO(Oilpan): when ~DOMWindowProperty is removed, check classes that deri
    ve |  49     // TODO(Oilpan): when ~DOMWindowProperty is removed, check classes that deri
    ve | 
|  51     // from it. Several will then be able to derive from GarbageCollected<> inst
    ead. |  50     // from it. Several will then be able to derive from GarbageCollected<> inst
    ead. | 
|  52 #if !ENABLE(OILPAN) |  51 #if !ENABLE(OILPAN) | 
|  53     virtual ~DOMWindowProperty(); |  52     virtual ~DOMWindowProperty(); | 
|  54 #endif |  53 #endif | 
|  55  |  54  | 
|  56     RawPtrWillBeMember<LocalFrame> m_frame; |  55     Member<LocalFrame> m_frame; | 
|  57  |  56  | 
|  58 #if !ENABLE(OILPAN) |  57 #if !ENABLE(OILPAN) | 
|  59 private: |  58 private: | 
|  60     LocalDOMWindow* m_associatedDOMWindow; |  59     LocalDOMWindow* m_associatedDOMWindow; | 
|  61 #endif |  60 #endif | 
|  62 }; |  61 }; | 
|  63  |  62  | 
|  64 } // namespace blink |  63 } // namespace blink | 
|  65  |  64  | 
|  66 #endif // DOMWindowProperty_h |  65 #endif // DOMWindowProperty_h | 
| OLD | NEW |