Fix build for future versions of Clang.
[WebKit-https.git] / Source / WebCore / page / MainFrame.h
index 9e95ec9..c221167 100644 (file)
 #include "Frame.h"
 #include <wtf/Vector.h>
 
-#if USE(APPLE_INTERNAL_SDK)
-#include <WebKitAdditions/MainFrameIncludes.h>
-#endif
-
 namespace WebCore {
 
 class PageConfiguration;
 class PageOverlayController;
+class PaymentCoordinator;
 class ScrollLatchingState;
 class ServicesOverlayController;
 class WheelEventDeltaFilter;
@@ -66,8 +63,8 @@ public:
     void removeLatchingStateForTarget(Element&);
 #endif // PLATFORM(MAC)
 
-#if USE(APPLE_INTERNAL_SDK)
-#include <WebKitAdditions/MainFrameMembers.h>
+#if ENABLE(APPLE_PAY)
+    PaymentCoordinator& paymentCoordinator() const { return *m_paymentCoordinator; }
 #endif
 
 private:
@@ -86,12 +83,11 @@ private:
 
     std::unique_ptr<WheelEventDeltaFilter> m_recentWheelEventDeltaFilter;
     std::unique_ptr<PageOverlayController> m_pageOverlayController;
-};
 
-inline bool Frame::isMainFrame() const
-{
-    return this == &m_mainFrame;
-}
+#if ENABLE(APPLE_PAY)
+    std::unique_ptr<PaymentCoordinator> m_paymentCoordinator;
+#endif
+};
 
 }