Index: third_party/WebKit/Source/web/WebFrameletImpl.h |
diff --git a/third_party/WebKit/Source/web/WebFrameletImpl.h b/third_party/WebKit/Source/web/WebFrameletImpl.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..3953e9e218de025a8c45033cb9d2c3ce5be00e0e |
--- /dev/null |
+++ b/third_party/WebKit/Source/web/WebFrameletImpl.h |
@@ -0,0 +1,48 @@ |
+// Copyright 2015 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef WebFrameletImpl_h |
+#define WebFrameletImpl_h |
+ |
+#include "core/frame/Framelet.h" |
+#include "platform/heap/Handle.h" |
+#include "public/web/WebFramelet.h" |
+#include "web/FrameletClientImpl.h" |
+ |
+namespace blink { |
+ |
+class HTMLFrameletElement; |
+class FrameOwner; |
+ |
+class WebFrameletImpl final : public RefCountedWillBeGarbageCollectedFinalized<WebFrameletImpl>, public WebFramelet { |
+public: |
+ ~WebFrameletImpl() override; |
+ void close() override; |
+ |
+ static WebFrameletImpl* create(WebFrameletClient*); |
+ |
+ void setWebLayer(WebLayer*) override; |
+ |
+ WebFrameletClient* client() override; |
+ |
+ void initializeCoreFramelet(FrameOwner*); |
+ Framelet* framelet() const { return m_framelet.get(); } |
+ |
+ void setCoreFramelet(PassRefPtrWillBeRawPtr<Framelet>); |
+ |
+private: |
+ WebFrameletImpl(WebFrameletClient*); |
+ |
+ OwnPtrWillBeMember<FrameletClientImpl> m_frameletClient; |
+ RefPtrWillBeMember<Framelet> m_framelet; |
+ WebFrameletClient* m_client; |
+ |
+#if ENABLE(OILPAN) |
+ SelfKeepAlive<WebFramelet> m_selfKeepAlive; |
+#endif |
+}; |
+ |
+} // namespace blink |
+ |
+#endif // WebFrameletImpl_h |