Remove now unused IndexedDB code
authorandersca@apple.com <andersca@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 6 Jan 2015 18:46:15 +0000 (18:46 +0000)
committerandersca@apple.com <andersca@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 6 Jan 2015 18:46:15 +0000 (18:46 +0000)
https://bugs.webkit.org/show_bug.cgi?id=140128

Reviewed by Darin Adler.

Source/WebCore:

* CMakeLists.txt:
Remove files.

* Modules/indexeddb/DOMWindowIndexedDatabase.cpp:
Don't include PageGroupIndexedDatabase.h.

* Modules/indexeddb/IDBFactoryBackendInterface.cpp: Removed.
Remove this file, it just had one function calling through to the database strategy.

* Modules/indexeddb/IDBFactoryBackendInterface.h:
Remove the create function.

* Modules/indexeddb/PageGroupIndexedDatabase.cpp: Removed.
* Modules/indexeddb/PageGroupIndexedDatabase.h: Removed.
The backend is now per page, not per page group.

* WebCore.exp.in:
Remove an exported symbol.

* WebCore.vcxproj/WebCore.vcxproj:
* WebCore.vcxproj/WebCore.vcxproj.filters:
* WebCore.xcodeproj/project.pbxproj:
Remove files.

* page/PageGroup.h:
PageGroup is no longer supplementable.

* platform/DatabaseStrategy.cpp:
(WebCore::DatabaseStrategy::createIDBFactoryBackend): Deleted.
* platform/DatabaseStrategy.h:
Remove a header.

Source/WebKit2:

Remove a function.

* WebProcess/WebCoreSupport/WebPlatformStrategies.cpp:
(WebKit::WebPlatformStrategies::createIDBFactoryBackend): Deleted.
* WebProcess/WebCoreSupport/WebPlatformStrategies.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@177967 268f45cc-cd09-0410-ab3c-d52691b4dbfc

17 files changed:
Source/WebCore/CMakeLists.txt
Source/WebCore/ChangeLog
Source/WebCore/Modules/indexeddb/DOMWindowIndexedDatabase.cpp
Source/WebCore/Modules/indexeddb/IDBFactoryBackendInterface.cpp [deleted file]
Source/WebCore/Modules/indexeddb/IDBFactoryBackendInterface.h
Source/WebCore/Modules/indexeddb/PageGroupIndexedDatabase.cpp [deleted file]
Source/WebCore/Modules/indexeddb/PageGroupIndexedDatabase.h [deleted file]
Source/WebCore/WebCore.exp.in
Source/WebCore/WebCore.vcxproj/WebCore.vcxproj
Source/WebCore/WebCore.vcxproj/WebCore.vcxproj.filters
Source/WebCore/WebCore.xcodeproj/project.pbxproj
Source/WebCore/page/PageGroup.h
Source/WebCore/platform/DatabaseStrategy.cpp
Source/WebCore/platform/DatabaseStrategy.h
Source/WebKit2/ChangeLog
Source/WebKit2/WebProcess/WebCoreSupport/WebPlatformStrategies.cpp
Source/WebKit2/WebProcess/WebCoreSupport/WebPlatformStrategies.h

index 7730e9a..5af2aae 100644 (file)
@@ -818,7 +818,6 @@ set(WebCore_SOURCES
     Modules/indexeddb/IDBDatabaseMetadata.cpp
     Modules/indexeddb/IDBEventDispatcher.cpp
     Modules/indexeddb/IDBFactory.cpp
-    Modules/indexeddb/IDBFactoryBackendInterface.cpp
     Modules/indexeddb/IDBIndex.cpp
     Modules/indexeddb/IDBKey.cpp
     Modules/indexeddb/IDBKeyData.cpp
@@ -834,7 +833,6 @@ set(WebCore_SOURCES
     Modules/indexeddb/IDBTransactionBackendOperations.cpp
     Modules/indexeddb/IDBTransactionCoordinator.cpp
     Modules/indexeddb/IDBVersionChangeEvent.cpp
-    Modules/indexeddb/PageGroupIndexedDatabase.cpp
     Modules/indexeddb/WorkerGlobalScopeIndexedDatabase.cpp
 
     Modules/mediacontrols/MediaControlsHost.cpp
index 9ee52df..cc120d9 100644 (file)
@@ -1,5 +1,44 @@
 2015-01-06  Anders Carlsson  <andersca@apple.com>
 
+        Remove now unused IndexedDB code
+        https://bugs.webkit.org/show_bug.cgi?id=140128
+
+        Reviewed by Darin Adler.
+
+        * CMakeLists.txt:
+        Remove files.
+
+        * Modules/indexeddb/DOMWindowIndexedDatabase.cpp:
+        Don't include PageGroupIndexedDatabase.h.
+
+        * Modules/indexeddb/IDBFactoryBackendInterface.cpp: Removed.
+        Remove this file, it just had one function calling through to the database strategy.
+
+        * Modules/indexeddb/IDBFactoryBackendInterface.h:
+        Remove the create function.
+
+        * Modules/indexeddb/PageGroupIndexedDatabase.cpp: Removed.
+        * Modules/indexeddb/PageGroupIndexedDatabase.h: Removed.
+        The backend is now per page, not per page group.
+
+        * WebCore.exp.in:
+        Remove an exported symbol.
+
+        * WebCore.vcxproj/WebCore.vcxproj:
+        * WebCore.vcxproj/WebCore.vcxproj.filters:
+        * WebCore.xcodeproj/project.pbxproj:
+        Remove files.
+
+        * page/PageGroup.h:
+        PageGroup is no longer supplementable.
+
+        * platform/DatabaseStrategy.cpp:
+        (WebCore::DatabaseStrategy::createIDBFactoryBackend): Deleted.
+        * platform/DatabaseStrategy.h:
+        Remove a header.
+
+2015-01-06  Anders Carlsson  <andersca@apple.com>
+
         Try to fix the Windows build.
 
         * WebCore.vcxproj/copyForwardingHeaders.cmd:
index 3324374..2a1ae3c 100644 (file)
@@ -33,7 +33,6 @@
 #include "Document.h"
 #include "IDBFactory.h"
 #include "Page.h"
-#include "PageGroupIndexedDatabase.h"
 #include "SecurityOrigin.h"
 
 namespace WebCore {
diff --git a/Source/WebCore/Modules/indexeddb/IDBFactoryBackendInterface.cpp b/Source/WebCore/Modules/indexeddb/IDBFactoryBackendInterface.cpp
deleted file mode 100644 (file)
index a03b39b..0000000
+++ /dev/null
@@ -1,45 +0,0 @@
-/*
- * Copyright (C) 2010 Google 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.
- * 3.  Neither the name of Apple Inc. ("Apple") nor the names of
- *     its contributors may be used to endorse or promote products derived
- *     from this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY APPLE 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 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 "IDBFactoryBackendInterface.h"
-
-#if ENABLE(INDEXED_DATABASE)
-
-#include "DatabaseStrategy.h"
-#include "PlatformStrategies.h"
-
-namespace WebCore {
-
-PassRefPtr<IDBFactoryBackendInterface> IDBFactoryBackendInterface::create()
-{
-    return platformStrategies()->databaseStrategy()->createIDBFactoryBackend();
-}
-
-} // namespace WebCore
-
-#endif // ENABLE(INDEXED_DATABASE)
index 2eb1e05..3299019 100644 (file)
@@ -56,7 +56,6 @@ typedef int ExceptionCode;
 // trigger work on a background thread if necessary.
 class IDBFactoryBackendInterface : public RefCounted<IDBFactoryBackendInterface> {
 public:
-    static PassRefPtr<IDBFactoryBackendInterface> create();
     virtual ~IDBFactoryBackendInterface() { }
 
     virtual void getDatabaseNames(PassRefPtr<IDBCallbacks>, const SecurityOrigin& openingOrigin, const SecurityOrigin& mainFrameOrigin, ScriptExecutionContext*) = 0;
diff --git a/Source/WebCore/Modules/indexeddb/PageGroupIndexedDatabase.cpp b/Source/WebCore/Modules/indexeddb/PageGroupIndexedDatabase.cpp
deleted file mode 100644 (file)
index 19a3713..0000000
+++ /dev/null
@@ -1,71 +0,0 @@
-/*
- * Copyright (C) 2012, Google 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 GOOGLE 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 "PageGroupIndexedDatabase.h"
-
-#if ENABLE(INDEXED_DATABASE)
-
-#include "IDBFactoryBackendInterface.h"
-#include "PageGroup.h"
-
-namespace WebCore {
-
-PageGroupIndexedDatabase::PageGroupIndexedDatabase()
-{
-}
-
-PageGroupIndexedDatabase::~PageGroupIndexedDatabase()
-{
-}
-
-const char* PageGroupIndexedDatabase::supplementName()
-{
-    return "PageGroupIndexedDatabase";
-}
-
-PageGroupIndexedDatabase* PageGroupIndexedDatabase::from(PageGroup& group)
-{
-    PageGroupIndexedDatabase* supplement = static_cast<PageGroupIndexedDatabase*>(Supplement<PageGroup>::from(&group, supplementName()));
-    if (!supplement) {
-        auto newSupplement = std::make_unique<PageGroupIndexedDatabase>();
-        supplement = newSupplement.get();
-        provideTo(&group, supplementName(), WTF::move(newSupplement));
-    }
-    return supplement;
-}
-
-IDBFactoryBackendInterface* PageGroupIndexedDatabase::factoryBackend()
-{
-    // Do not add page setting based access control here since this object is shared by all pages in
-    // the group and having per-page controls is misleading.
-    if (!m_factoryBackend)
-        m_factoryBackend = IDBFactoryBackendInterface::create();
-    return m_factoryBackend.get();
-}
-
-} // namespace WebCore
-
-#endif // ENABLE(INDEXED_DATABASE)
diff --git a/Source/WebCore/Modules/indexeddb/PageGroupIndexedDatabase.h b/Source/WebCore/Modules/indexeddb/PageGroupIndexedDatabase.h
deleted file mode 100644 (file)
index 373ac89..0000000
+++ /dev/null
@@ -1,58 +0,0 @@
-/*
- * Copyright (C) 2012, Google 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 GOOGLE 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 PageGroupIndexedDatabase_h
-#define PageGroupIndexedDatabase_h
-
-#if ENABLE(INDEXED_DATABASE)
-
-#include "Supplementable.h"
-#include <wtf/text/WTFString.h>
-
-namespace WebCore {
-
-class IDBFactoryBackendInterface;
-class PageGroup;
-
-class PageGroupIndexedDatabase : public Supplement<PageGroup> {
-public:
-    explicit PageGroupIndexedDatabase();
-    virtual ~PageGroupIndexedDatabase();
-
-    static PageGroupIndexedDatabase* from(PageGroup&);
-
-    IDBFactoryBackendInterface* factoryBackend();
-
-private:
-    static const char* supplementName();
-
-    RefPtr<IDBFactoryBackendInterface> m_factoryBackend;
-};
-
-} // namespace WebCore
-
-#endif // ENABLE(INDEXED_DATABASE)
-
-#endif // PageGroupIndexedDatabase_h
index 6bb62fd..c68120a 100644 (file)
@@ -685,7 +685,6 @@ __ZN7WebCore16CSSParserContextC1ERNS_8DocumentERKNS_3URLERKN3WTF6StringE
 __ZN7WebCore16CalculationValue6createENSt3__110unique_ptrINS_18CalcExpressionNodeENS1_14default_deleteIS3_EEEENS_30CalculationPermittedValueRangeE
 __ZN7WebCore16DatabaseProviderD2Ev
 __ZN7WebCore16DatabaseStrategy17getDatabaseServerEv
-__ZN7WebCore16DatabaseStrategy23createIDBFactoryBackendEv
 __ZN7WebCore16DeviceMotionData12Acceleration6createEbdbdbd
 __ZN7WebCore16DeviceMotionData12RotationRate6createEbdbdbd
 __ZN7WebCore16DeviceMotionData6createEN3WTF10PassRefPtrINS0_12AccelerationEEES4_NS2_INS0_12RotationRateEEEbd
index 4f76693..613978c 100644 (file)
     <ClCompile Include="..\Modules\indexeddb\IDBCursorBackend.cpp" />
     <ClCompile Include="..\Modules\indexeddb\IDBDatabase.cpp" />
     <ClCompile Include="..\Modules\indexeddb\IDBFactory.cpp" />
-    <ClCompile Include="..\Modules\indexeddb\IDBFactoryBackendInterface.cpp" />
     <ClCompile Include="..\Modules\indexeddb\IDBIndex.cpp" />
     <ClCompile Include="..\Modules\indexeddb\IDBKey.cpp" />
     <ClCompile Include="..\Modules\indexeddb\IDBKeyData.cpp" />
     <ClCompile Include="..\Modules\indexeddb\IDBObjectStore.cpp" />
     <ClCompile Include="..\Modules\indexeddb\IDBRequest.cpp" />
     <ClCompile Include="..\Modules\indexeddb\IDBTransaction.cpp" />
-    <ClCompile Include="..\Modules\indexeddb\PageGroupIndexedDatabase.cpp" />
     <ClCompile Include="..\Modules\indexeddb\WorkerGlobalScopeIndexedDatabase.cpp" />
     <ClCompile Include="..\Modules\navigatorcontentutils\NavigatorContentUtils.cpp" />
     <ClCompile Include="..\Modules\proximity\DeviceProximityController.cpp" />
     <ClInclude Include="..\Modules\indexeddb\IDBObjectStoreBackendImpl.h" />
     <ClInclude Include="..\Modules\indexeddb\IDBRequest.h" />
     <ClInclude Include="..\Modules\indexeddb\IDBTransaction.h" />
-    <ClInclude Include="..\Modules\indexeddb\PageGroupIndexedDatabase.h" />
     <ClInclude Include="..\Modules\indexeddb\WorkerGlobalScopeIndexedDatabase.h" />
     <ClInclude Include="..\Modules\navigatorcontentutils\NavigatorContentUtils.h" />
     <ClInclude Include="..\Modules\proximity\DeviceProximityClient.h" />
index f959b63..c5540b2 100644 (file)
     <ClCompile Include="..\Modules\indexeddb\IDBFactory.cpp">
       <Filter>Modules\indexeddb</Filter>
     </ClCompile>
-    <ClCompile Include="..\Modules\indexeddb\IDBFactoryBackendInterface.cpp">
-      <Filter>Modules\indexeddb</Filter>
-    </ClCompile>
     <ClCompile Include="..\Modules\indexeddb\IDBIndex.cpp">
       <Filter>Modules\indexeddb</Filter>
     </ClCompile>
     <ClCompile Include="..\Modules\indexeddb\IDBTransaction.cpp">
       <Filter>Modules\indexeddb</Filter>
     </ClCompile>
-    <ClCompile Include="..\Modules\indexeddb\PageGroupIndexedDatabase.cpp">
-      <Filter>Modules\indexeddb</Filter>
-    </ClCompile>
     <ClCompile Include="..\Modules\indexeddb\WorkerGlobalScopeIndexedDatabase.cpp">
       <Filter>Modules\indexeddb</Filter>
     </ClCompile>
     <ClInclude Include="..\Modules\indexeddb\IDBTransaction.h">
       <Filter>Modules\indexeddb</Filter>
     </ClInclude>
-    <ClInclude Include="..\Modules\indexeddb\PageGroupIndexedDatabase.h">
-      <Filter>Modules\indexeddb</Filter>
-    </ClInclude>
     <ClInclude Include="..\Modules\indexeddb\WorkerGlobalScopeIndexedDatabase.h">
       <Filter>Modules\indexeddb</Filter>
     </ClInclude>
index cbfbcbd..cac2b8d 100644 (file)
                51D719D1181106E00016DC51 /* IDBEventDispatcher.h in Headers */ = {isa = PBXBuildFile; fileRef = 51D71987181106DF0016DC51 /* IDBEventDispatcher.h */; };
                51D719D2181106E00016DC51 /* IDBFactory.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 51D71988181106DF0016DC51 /* IDBFactory.cpp */; };
                51D719D3181106E00016DC51 /* IDBFactory.h in Headers */ = {isa = PBXBuildFile; fileRef = 51D71989181106DF0016DC51 /* IDBFactory.h */; };
-               51D719D5181106E00016DC51 /* IDBFactoryBackendInterface.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 51D7198B181106DF0016DC51 /* IDBFactoryBackendInterface.cpp */; };
                51D719D6181106E00016DC51 /* IDBFactoryBackendInterface.h in Headers */ = {isa = PBXBuildFile; fileRef = 51D7198C181106E00016DC51 /* IDBFactoryBackendInterface.h */; settings = {ATTRIBUTES = (Private, ); }; };
                51D719D8181106E00016DC51 /* IDBIndex.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 51D7198E181106E00016DC51 /* IDBIndex.cpp */; };
                51D719D9181106E00016DC51 /* IDBIndex.h in Headers */ = {isa = PBXBuildFile; fileRef = 51D7198F181106E00016DC51 /* IDBIndex.h */; };
                51D719F5181106E00016DC51 /* IDBVersionChangeEvent.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 51D719AB181106E00016DC51 /* IDBVersionChangeEvent.cpp */; };
                51D719F6181106E00016DC51 /* IDBVersionChangeEvent.h in Headers */ = {isa = PBXBuildFile; fileRef = 51D719AC181106E00016DC51 /* IDBVersionChangeEvent.h */; };
                51D719F8181106E00016DC51 /* IndexedDB.h in Headers */ = {isa = PBXBuildFile; fileRef = 51D719AE181106E00016DC51 /* IndexedDB.h */; settings = {ATTRIBUTES = (Private, ); }; };
-               51D719F9181106E00016DC51 /* PageGroupIndexedDatabase.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 51D719AF181106E00016DC51 /* PageGroupIndexedDatabase.cpp */; };
-               51D719FA181106E00016DC51 /* PageGroupIndexedDatabase.h in Headers */ = {isa = PBXBuildFile; fileRef = 51D719B0181106E00016DC51 /* PageGroupIndexedDatabase.h */; };
                51D719FB181106E00016DC51 /* WorkerGlobalScopeIndexedDatabase.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 51D719B1181106E00016DC51 /* WorkerGlobalScopeIndexedDatabase.cpp */; };
                51D719FC181106E00016DC51 /* WorkerGlobalScopeIndexedDatabase.h in Headers */ = {isa = PBXBuildFile; fileRef = 51D719B2181106E00016DC51 /* WorkerGlobalScopeIndexedDatabase.h */; };
                51DCE8020CAC9F1C00488358 /* JSSQLResultSetRowListCustom.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 51DCE8010CAC9F1C00488358 /* JSSQLResultSetRowListCustom.cpp */; };
                51D71988181106DF0016DC51 /* IDBFactory.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = IDBFactory.cpp; sourceTree = "<group>"; };
                51D71989181106DF0016DC51 /* IDBFactory.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = IDBFactory.h; sourceTree = "<group>"; };
                51D7198A181106DF0016DC51 /* IDBFactory.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = IDBFactory.idl; sourceTree = "<group>"; };
-               51D7198B181106DF0016DC51 /* IDBFactoryBackendInterface.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = IDBFactoryBackendInterface.cpp; sourceTree = "<group>"; };
                51D7198C181106E00016DC51 /* IDBFactoryBackendInterface.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = IDBFactoryBackendInterface.h; sourceTree = "<group>"; };
                51D7198E181106E00016DC51 /* IDBIndex.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = IDBIndex.cpp; sourceTree = "<group>"; };
                51D7198F181106E00016DC51 /* IDBIndex.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = IDBIndex.h; sourceTree = "<group>"; };
                51D719AC181106E00016DC51 /* IDBVersionChangeEvent.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = IDBVersionChangeEvent.h; sourceTree = "<group>"; };
                51D719AD181106E00016DC51 /* IDBVersionChangeEvent.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = IDBVersionChangeEvent.idl; sourceTree = "<group>"; };
                51D719AE181106E00016DC51 /* IndexedDB.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = IndexedDB.h; sourceTree = "<group>"; };
-               51D719AF181106E00016DC51 /* PageGroupIndexedDatabase.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = PageGroupIndexedDatabase.cpp; sourceTree = "<group>"; };
-               51D719B0181106E00016DC51 /* PageGroupIndexedDatabase.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PageGroupIndexedDatabase.h; sourceTree = "<group>"; };
                51D719B1181106E00016DC51 /* WorkerGlobalScopeIndexedDatabase.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = WorkerGlobalScopeIndexedDatabase.cpp; sourceTree = "<group>"; };
                51D719B2181106E00016DC51 /* WorkerGlobalScopeIndexedDatabase.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WorkerGlobalScopeIndexedDatabase.h; sourceTree = "<group>"; };
                51D719B3181106E00016DC51 /* WorkerGlobalScopeIndexedDatabase.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = WorkerGlobalScopeIndexedDatabase.idl; sourceTree = "<group>"; };
                                51D71988181106DF0016DC51 /* IDBFactory.cpp */,
                                51D71989181106DF0016DC51 /* IDBFactory.h */,
                                51D7198A181106DF0016DC51 /* IDBFactory.idl */,
-                               51D7198B181106DF0016DC51 /* IDBFactoryBackendInterface.cpp */,
                                51D7198C181106E00016DC51 /* IDBFactoryBackendInterface.h */,
                                5123AF1C18918AE40031CDC9 /* IDBGetResult.h */,
                                51D7198E181106E00016DC51 /* IDBIndex.cpp */,
                                51D719AC181106E00016DC51 /* IDBVersionChangeEvent.h */,
                                51D719AD181106E00016DC51 /* IDBVersionChangeEvent.idl */,
                                51D719AE181106E00016DC51 /* IndexedDB.h */,
-                               51D719AF181106E00016DC51 /* PageGroupIndexedDatabase.cpp */,
-                               51D719B0181106E00016DC51 /* PageGroupIndexedDatabase.h */,
                                51D719B1181106E00016DC51 /* WorkerGlobalScopeIndexedDatabase.cpp */,
                                51D719B2181106E00016DC51 /* WorkerGlobalScopeIndexedDatabase.h */,
                                51D719B3181106E00016DC51 /* WorkerGlobalScopeIndexedDatabase.idl */,
                                A5A2AF0C1829734300DE1729 /* PageDebuggable.h in Headers */,
                                F34742DD134362F000531BC2 /* PageDebuggerAgent.h in Headers */,
                                9302B0BF0D79F82C00C7EE83 /* PageGroup.h in Headers */,
-                               51D719FA181106E00016DC51 /* PageGroupIndexedDatabase.h in Headers */,
                                7A674BDC0F9EBF4E006CF099 /* PageGroupLoadDeferrer.h in Headers */,
                                2D5C9D0019C7B52E00B3C5C1 /* PageOverlay.h in Headers */,
                                2D5C9D0219C7B52E00B3C5C1 /* PageOverlayController.h in Headers */,
                                5163117D1851242B00534647 /* IDBDatabaseMetadata.cpp in Sources */,
                                51D719D0181106E00016DC51 /* IDBEventDispatcher.cpp in Sources */,
                                51D719D2181106E00016DC51 /* IDBFactory.cpp in Sources */,
-                               51D719D5181106E00016DC51 /* IDBFactoryBackendInterface.cpp in Sources */,
                                51D719D8181106E00016DC51 /* IDBIndex.cpp in Sources */,
                                51D719DB181106E00016DC51 /* IDBKey.cpp in Sources */,
                                511EC1A8188DAE7B00BA3EB6 /* IDBKeyData.cpp in Sources */,
                                A5A2AF0B1829734300DE1729 /* PageDebuggable.cpp in Sources */,
                                F34742DC134362F000531BC2 /* PageDebuggerAgent.cpp in Sources */,
                                9302B0BD0D79F82900C7EE83 /* PageGroup.cpp in Sources */,
-                               51D719F9181106E00016DC51 /* PageGroupIndexedDatabase.cpp in Sources */,
                                7A674BDB0F9EBF4E006CF099 /* PageGroupLoadDeferrer.cpp in Sources */,
                                1C26497C0D7E24EC00BD10F2 /* PageMac.cpp in Sources */,
                                2D5C9CFF19C7B52E00B3C5C1 /* PageOverlay.cpp in Sources */,
index 09d5b4b..de08cd6 100644 (file)
@@ -38,7 +38,7 @@ namespace WebCore {
     class CaptionUserPreferences;
 #endif
 
-    class PageGroup : public Supplementable<PageGroup> {
+    class PageGroup {
         WTF_MAKE_NONCOPYABLE(PageGroup); WTF_MAKE_FAST_ALLOCATED;
     public:
         WEBCORE_EXPORT explicit PageGroup(const String& name);
index 053946c..fb8f777 100644 (file)
@@ -27,7 +27,6 @@
 #include "DatabaseStrategy.h"
 
 #include "DatabaseServer.h"
-#include "IDBFactoryBackendInterface.h"
 
 namespace WebCore {
 
@@ -38,12 +37,4 @@ AbstractDatabaseServer* DatabaseStrategy::getDatabaseServer()
 }
 #endif // ENABLE(SQL_DATABASE)
 
-#if ENABLE(INDEXED_DATABASE)
-PassRefPtr<IDBFactoryBackendInterface> DatabaseStrategy::createIDBFactoryBackend()
-{
-    // FIXME: Need a better platform abstraction here, but this stop gap will work for now.
-    return 0;
-}
-#endif // ENABLE(INDEXED_DATABASE)
-
 } // namespace WebCore
index 5c16df5..4830f77 100644 (file)
@@ -32,7 +32,6 @@
 namespace WebCore {
 
 class AbstractDatabaseServer;
-class IDBFactoryBackendInterface;
 
 class WEBCORE_EXPORT DatabaseStrategy {
 public:
@@ -40,10 +39,6 @@ public:
     WEBCORE_EXPORT virtual AbstractDatabaseServer* getDatabaseServer();
 #endif
 
-#if ENABLE(INDEXED_DATABASE)
-    WEBCORE_EXPORT virtual PassRefPtr<IDBFactoryBackendInterface> createIDBFactoryBackend();
-#endif
-
 protected:
     virtual ~DatabaseStrategy() { }
 };
index 1f3efa6..7220608 100644 (file)
@@ -1,3 +1,16 @@
+2015-01-06  Anders Carlsson  <andersca@apple.com>
+
+        Remove now unused IndexedDB code
+        https://bugs.webkit.org/show_bug.cgi?id=140128
+
+        Reviewed by Darin Adler.
+
+        Remove a function.
+
+        * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp:
+        (WebKit::WebPlatformStrategies::createIDBFactoryBackend): Deleted.
+        * WebProcess/WebCoreSupport/WebPlatformStrategies.h:
+
 2015-01-06  Darin Adler  <darin@apple.com>
 
         Fix race in FindController code
index 3b03d06..e1b28b0 100644 (file)
@@ -205,17 +205,6 @@ AbstractDatabaseServer* WebPlatformStrategies::getDatabaseServer()
 }
 #endif // ENABLE(SQL_DATABASE)
 
-#if ENABLE(INDEXED_DATABASE)
-PassRefPtr<IDBFactoryBackendInterface> WebPlatformStrategies::createIDBFactoryBackend()
-{
-#if !ENABLE(DATABASE_PROCESS)
-    return DatabaseStrategy::createIDBFactoryBackend();
-#endif
-
-    return WebIDBFactoryBackend::create();
-}
-#endif // ENABLE(INDEXED_DATABASE)
-
 // LoaderStrategy
 
 #if ENABLE(NETWORK_PROCESS)
index 10e1233..a3f5921 100644 (file)
@@ -65,9 +65,6 @@ private:
 #if ENABLE(SQL_DATABASE)
     virtual WebCore::AbstractDatabaseServer* getDatabaseServer() override;
 #endif
-#if ENABLE(INDEXED_DATABASE)
-    virtual PassRefPtr<WebCore::IDBFactoryBackendInterface> createIDBFactoryBackend() override;
-#endif
 
     // WebCore::LoaderStrategy
 #if ENABLE(NETWORK_PROCESS)