OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef WebFrameletImpl_h |
| 6 #define WebFrameletImpl_h |
| 7 |
| 8 #include "core/frame/Framelet.h" |
| 9 #include "platform/heap/Handle.h" |
| 10 #include "public/web/WebFramelet.h" |
| 11 #include "web/FrameletClientImpl.h" |
| 12 |
| 13 namespace blink { |
| 14 |
| 15 class HTMLFrameletElement; |
| 16 class FrameOwner; |
| 17 |
| 18 class WebFrameletImpl final : public RefCountedWillBeGarbageCollectedFinalized<W
ebFrameletImpl>, public WebFramelet { |
| 19 public: |
| 20 ~WebFrameletImpl() override; |
| 21 void close() override; |
| 22 |
| 23 static WebFrameletImpl* create(WebFrameletClient*); |
| 24 |
| 25 void setWebLayer(WebLayer*) override; |
| 26 |
| 27 WebFrameletClient* client() override; |
| 28 |
| 29 void initializeCoreFramelet(FrameOwner*); |
| 30 Framelet* framelet() const { return m_framelet.get(); } |
| 31 |
| 32 void setCoreFramelet(PassRefPtrWillBeRawPtr<Framelet>); |
| 33 |
| 34 private: |
| 35 WebFrameletImpl(WebFrameletClient*); |
| 36 |
| 37 OwnPtrWillBeMember<FrameletClientImpl> m_frameletClient; |
| 38 RefPtrWillBeMember<Framelet> m_framelet; |
| 39 WebFrameletClient* m_client; |
| 40 |
| 41 #if ENABLE(OILPAN) |
| 42 SelfKeepAlive<WebFramelet> m_selfKeepAlive; |
| 43 #endif |
| 44 }; |
| 45 |
| 46 } // namespace blink |
| 47 |
| 48 #endif // WebFrameletImpl_h |
OLD | NEW |