Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1181)

Unified Diff: third_party/WebKit/Source/web/WebFrameletImpl.h

Issue 1602663003: Framelet Prototype 2016 using Mojo IPC Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased. Disabled oilpan Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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
« no previous file with comments | « third_party/WebKit/Source/web/FrameletClientImpl.cpp ('k') | third_party/WebKit/Source/web/WebFrameletImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698