| 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 KURL; |
| 14 class LocalFrame; | 15 class LocalFrame; |
| 15 class MessageEvent; | 16 class MessageEvent; |
| 16 class SecurityOrigin; | 17 class SecurityOrigin; |
| 17 enum class FrameDetachType; | 18 enum class FrameDetachType; |
| 18 | 19 |
| 19 class CORE_EXPORT FrameClient : public NoBaseWillBeGarbageCollectedFinalized<Fra
meClient> { | 20 class CORE_EXPORT FrameClient : public NoBaseWillBeGarbageCollectedFinalized<Fra
meClient> { |
| 20 USING_FAST_MALLOC_WILL_BE_REMOVED(FrameClient); | 21 USING_FAST_MALLOC_WILL_BE_REMOVED(FrameClient); |
| 21 public: | 22 public: |
| 22 virtual bool inShadowTree() const = 0; | 23 virtual bool inShadowTree() const = 0; |
| 23 | 24 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 36 virtual Frame* firstChild() const = 0; | 37 virtual Frame* firstChild() const = 0; |
| 37 virtual Frame* lastChild() const = 0; | 38 virtual Frame* lastChild() const = 0; |
| 38 | 39 |
| 39 virtual unsigned backForwardLength() = 0; | 40 virtual unsigned backForwardLength() = 0; |
| 40 | 41 |
| 41 // Returns true if the embedder intercepted the postMessage call | 42 // Returns true if the embedder intercepted the postMessage call |
| 42 virtual bool willCheckAndDispatchMessageEvent(SecurityOrigin* /*target*/, Me
ssageEvent*, LocalFrame* /*sourceFrame*/) const { return false; } | 43 virtual bool willCheckAndDispatchMessageEvent(SecurityOrigin* /*target*/, Me
ssageEvent*, LocalFrame* /*sourceFrame*/) const { return false; } |
| 43 | 44 |
| 44 virtual void frameFocused() const = 0; | 45 virtual void frameFocused() const = 0; |
| 45 | 46 |
| 47 virtual void triedDisplayingInsecureContent(SecurityOrigin*, const KURL&) co
nst = 0; |
| 48 virtual void triedRunningInsecureContent(SecurityOrigin*, const KURL&) const
= 0; |
| 49 |
| 46 virtual ~FrameClient() { } | 50 virtual ~FrameClient() { } |
| 47 | 51 |
| 48 DEFINE_INLINE_VIRTUAL_TRACE() { } | 52 DEFINE_INLINE_VIRTUAL_TRACE() { } |
| 49 }; | 53 }; |
| 50 | 54 |
| 51 } // namespace blink | 55 } // namespace blink |
| 52 | 56 |
| 53 #endif // FrameClient_h | 57 #endif // FrameClient_h |
| OLD | NEW |