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

Unified Diff: third_party/WebKit/Source/core/frame/WebRemoteFrameBase.h

Issue 2878623002: Introduce WebRemoteFrameBase to break dependencies on WebRemoteFrameImpl. (Closed)
Patch Set: Fix windows linker errors. Created 3 years, 7 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/core/frame/WebRemoteFrameBase.h
diff --git a/third_party/WebKit/Source/core/frame/WebRemoteFrameBase.h b/third_party/WebKit/Source/core/frame/WebRemoteFrameBase.h
new file mode 100644
index 0000000000000000000000000000000000000000..3a6cf4000eb503670864139f0079e95a32940f3b
--- /dev/null
+++ b/third_party/WebKit/Source/core/frame/WebRemoteFrameBase.h
@@ -0,0 +1,40 @@
+// Copyright 2017 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 WebViewBase_h
sashab 2017/05/15 01:59:48 Remove #ifndef WebViewBase_h
+
+#ifndef WebRemoteFrameBase_h
+#define WebRemoteFrameBase_h
+
+#include "core/CoreExport.h"
+#include "public/web/WebRemoteFrame.h"
+
+namespace blink {
+
+class FrameOwner;
+class Page;
+class RemoteFrame;
+
+class WebRemoteFrameBase : public GarbageCollectedFinalized<WebRemoteFrameBase>,
+ public WebRemoteFrame {
+ public:
+ CORE_EXPORT static WebRemoteFrameBase* FromFrame(RemoteFrame&);
+
+ virtual void InitializeCoreFrame(Page&,
+ FrameOwner*,
+ const AtomicString& name) = 0;
+ virtual RemoteFrame* GetFrame() const = 0;
+
+ DEFINE_INLINE_VIRTUAL_TRACE() {}
+
+ protected:
+ explicit WebRemoteFrameBase(WebTreeScopeType scope) : WebRemoteFrame(scope) {}
+};
+
+DEFINE_TYPE_CASTS(WebRemoteFrameBase,
+ WebFrame,
+ frame,
+ frame->IsWebRemoteFrame(),
+ frame.IsWebRemoteFrame());
+} // namespace blink
+
+#endif // WebRemoteFrameBase_h
« no previous file with comments | « third_party/WebKit/Source/core/frame/BUILD.gn ('k') | third_party/WebKit/Source/core/frame/WebRemoteFrameBase.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698