Diff
Modified: trunk/Source/WebKit/ChangeLog (176572 => 176573)
--- trunk/Source/WebKit/ChangeLog 2014-11-29 07:11:50 UTC (rev 176572)
+++ trunk/Source/WebKit/ChangeLog 2014-11-29 17:47:35 UTC (rev 176573)
@@ -1,5 +1,14 @@
2014-11-27 Anders Carlsson <[email protected]>
+ Add a stubbed out WebVisitedLinkStore class on Windows
+ https://bugs.webkit.org/show_bug.cgi?id=139078
+
+ Reviewed by Sam Weinig.
+
+ * WebKit.vcxproj/WebKit/WebKit.vcxproj:
+
+2014-11-27 Anders Carlsson <[email protected]>
+
Add a stubbed out WebVisitedLinkStore to WebViewGroup
https://bugs.webkit.org/show_bug.cgi?id=139066
Modified: trunk/Source/WebKit/WebKit.vcxproj/WebKit/WebKit.vcxproj (176572 => 176573)
--- trunk/Source/WebKit/WebKit.vcxproj/WebKit/WebKit.vcxproj 2014-11-29 07:11:50 UTC (rev 176572)
+++ trunk/Source/WebKit/WebKit.vcxproj/WebKit/WebKit.vcxproj 2014-11-29 17:47:35 UTC (rev 176573)
@@ -336,6 +336,7 @@
<ClCompile Include="..\..\win\WebCoreSupport\WebInspectorClient.cpp" />
<ClCompile Include="..\..\win\WebCoreSupport\WebInspectorDelegate.cpp" />
<ClCompile Include="..\..\win\WebCoreSupport\WebPlatformStrategies.cpp" />
+ <ClCompile Include="..\..\win\WebCoreSupport\WebVisitedLinkStore.cpp" />
<ClCompile Include="..\..\win\WebDatabaseManager.cpp" />
<ClCompile Include="..\..\win\WebDataSource.cpp" />
<ClCompile Include="..\..\win\WebDocumentLoader.cpp" />
@@ -474,6 +475,7 @@
<ClInclude Include="..\..\win\WebCoreSupport\WebInspectorClient.h" />
<ClInclude Include="..\..\win\WebCoreSupport\WebInspectorDelegate.h" />
<ClInclude Include="..\..\win\WebCoreSupport\WebPlatformStrategies.h" />
+ <ClInclude Include="..\..\win\WebCoreSupport\WebVisitedLinkStore.h" />
<ClInclude Include="..\..\win\WebDatabaseManager.h" />
<ClInclude Include="..\..\win\WebDataSource.h" />
<ClInclude Include="..\..\win\WebDocumentLoader.h" />
Modified: trunk/Source/WebKit/win/ChangeLog (176572 => 176573)
--- trunk/Source/WebKit/win/ChangeLog 2014-11-29 07:11:50 UTC (rev 176572)
+++ trunk/Source/WebKit/win/ChangeLog 2014-11-29 17:47:35 UTC (rev 176573)
@@ -1,3 +1,18 @@
+2014-11-27 Anders Carlsson <[email protected]>
+
+ Add a stubbed out WebVisitedLinkStore class on Windows
+ https://bugs.webkit.org/show_bug.cgi?id=139078
+
+ Reviewed by Sam Weinig.
+
+ * WebCoreSupport/WebVisitedLinkStore.cpp: Added.
+ (WebVisitedLinkStore::shared):
+ (WebVisitedLinkStore::WebVisitedLinkStore):
+ (WebVisitedLinkStore::~WebVisitedLinkStore):
+ (WebVisitedLinkStore::isLinkVisited):
+ (WebVisitedLinkStore::addVisitedLink):
+ * WebCoreSupport/WebVisitedLinkStore.h: Added.
+
2014-11-24 Anders Carlsson <[email protected]>
Stub out user content WebView member functions on Windows
Added: trunk/Source/WebKit/win/WebCoreSupport/WebVisitedLinkStore.cpp (0 => 176573)
--- trunk/Source/WebKit/win/WebCoreSupport/WebVisitedLinkStore.cpp (rev 0)
+++ trunk/Source/WebKit/win/WebCoreSupport/WebVisitedLinkStore.cpp 2014-11-29 17:47:35 UTC (rev 176573)
@@ -0,0 +1,55 @@
+/*
+ * Copyright (C) 2014 Apple Inc. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
+ * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
+ * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
+ * THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#include "config.h"
+#include "WebVisitedLinkStore.h"
+
+#include <wtf/NeverDestroyed.h>
+
+WebVisitedLinkStore& WebVisitedLinkStore::shared()
+{
+ static NeverDestroyed<WebVisitedLinkStore> visitedLinkStore;
+
+ return visitedLinkStore;
+}
+
+WebVisitedLinkStore::WebVisitedLinkStore()
+{
+}
+
+WebVisitedLinkStore::~WebVisitedLinkStore()
+{
+}
+
+bool WebVisitedLinkStore::isLinkVisited(WebCore::Page&, WebCore::LinkHash, const WebCore::URL& baseURL, const AtomicString& attributeURL)
+{
+ // FIXME: Implement.
+ return false;
+}
+
+void WebVisitedLinkStore::addVisitedLink(WebCore::Page&, WebCore::LinkHash)
+{
+ // FIXME: Implement.
+}
Added: trunk/Source/WebKit/win/WebCoreSupport/WebVisitedLinkStore.h (0 => 176573)
--- trunk/Source/WebKit/win/WebCoreSupport/WebVisitedLinkStore.h (rev 0)
+++ trunk/Source/WebKit/win/WebCoreSupport/WebVisitedLinkStore.h 2014-11-29 17:47:35 UTC (rev 176573)
@@ -0,0 +1,43 @@
+/*
+ * Copyright (C) 2014 Apple Inc. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
+ * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
+ * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
+ * THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#ifndef WebVisitedLinkStore_h
+#define WebVisitedLinkStore_h
+
+#include <WebCore/VisitedLinkStore.h>
+#include <wtf/PassRef.h>
+
+class WebVisitedLinkStore final : public WebCore::VisitedLinkStore {
+public:
+ static WebVisitedLinkStore& shared();
+ WebVisitedLinkStore();
+ virtual ~WebVisitedLinkStore();
+
+private:
+ virtual bool isLinkVisited(WebCore::Page&, WebCore::LinkHash, const WebCore::URL& baseURL, const AtomicString& attributeURL) override;
+ virtual void addVisitedLink(WebCore::Page&, WebCore::LinkHash) override;
+};
+
+#endif // WebVisitedLinkStore_h