| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef FrameClient_h | 5 #ifndef FrameClient_h |
| 6 #define FrameClient_h | 6 #define FrameClient_h |
| 7 | 7 |
| 8 #include "core/CoreExport.h" | 8 #include "core/CoreExport.h" |
| 9 #include "platform/heap/Handle.h" | 9 #include "platform/heap/Handle.h" |
| 10 | 10 |
| 11 namespace blink { | 11 namespace blink { |
| 12 | 12 |
| 13 class Frame; | 13 class Frame; |
| 14 class LocalFrame; | 14 class LocalFrame; |
| 15 class MessageEvent; | 15 class MessageEvent; |
| 16 class SecurityOrigin; | 16 class SecurityOrigin; |
| 17 enum class FrameDetachType; | 17 enum class FrameDetachType; |
| 18 | 18 |
| 19 class CORE_EXPORT FrameClient : public NoBaseWillBeGarbageCollectedFinalized<Fra
meClient> { | 19 class CORE_EXPORT FrameClient : public GarbageCollectedFinalized<FrameClient> { |
| 20 USING_FAST_MALLOC_WILL_BE_REMOVED(FrameClient); | |
| 21 public: | 20 public: |
| 22 virtual bool inShadowTree() const = 0; | 21 virtual bool inShadowTree() const = 0; |
| 23 | 22 |
| 24 // TODO(dcheng): Move this into FrameLoaderClient, since remote frames don't | 23 // TODO(dcheng): Move this into FrameLoaderClient, since remote frames don't |
| 25 // need this. | 24 // need this. |
| 26 virtual void willBeDetached() = 0; | 25 virtual void willBeDetached() = 0; |
| 27 virtual void detached(FrameDetachType) = 0; | 26 virtual void detached(FrameDetachType) = 0; |
| 28 | 27 |
| 29 virtual Frame* opener() const = 0; | 28 virtual Frame* opener() const = 0; |
| 30 virtual void setOpener(Frame*) = 0; | 29 virtual void setOpener(Frame*) = 0; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 44 virtual void frameFocused() const = 0; | 43 virtual void frameFocused() const = 0; |
| 45 | 44 |
| 46 virtual ~FrameClient() { } | 45 virtual ~FrameClient() { } |
| 47 | 46 |
| 48 DEFINE_INLINE_VIRTUAL_TRACE() { } | 47 DEFINE_INLINE_VIRTUAL_TRACE() { } |
| 49 }; | 48 }; |
| 50 | 49 |
| 51 } // namespace blink | 50 } // namespace blink |
| 52 | 51 |
| 53 #endif // FrameClient_h | 52 #endif // FrameClient_h |
| OLD | NEW |