Changeset 109463 in webkit
- Timestamp:
- Mar 1, 2012 4:25:40 PM (12 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 added
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r109459 r109463 1 2012-03-01 Adam Barth <abarth@webkit.org> 2 3 Remove last ENABLED(INDEXED_DATABASE) ifdef from WebCore proper 4 https://bugs.webkit.org/show_bug.cgi?id=80061 5 6 Reviewed by Dimitri Glazkov. 7 8 This patch removes the last ENABLED(INDEXED_DATABASE) ifdef from 9 WebCore proper by moving the backend factory out of PageGroup and into 10 a supplement for PageGroup. After this patch, we're ready to move the 11 IDB code into Modules. 12 13 * Modules/indexeddb/DOMWindowIndexedDatabase.cpp: 14 (WebCore::DOMWindowIndexedDatabase::webkitIndexedDB): 15 * WebCore.gypi: 16 * inspector/InspectorIndexedDBAgent.cpp: 17 (WebCore::assertIDBFactory): 18 * page/PageGroup.cpp: 19 (WebCore): 20 * page/PageGroup.h: 21 (PageGroup): 22 1 23 2012-03-01 Dale Curtis <dalecurtis@chromium.org> 2 24 -
trunk/Source/WebCore/Modules/indexeddb/DOMWindowIndexedDatabase.cpp
r109392 r109463 11 11 * documentation and/or other materials provided with the distribution. 12 12 * 13 * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' AND13 * THIS SOFTWARE IS PROVIDED BY GOOGLE INC. AND ITS CONTRIBUTORS ``AS IS'' AND 14 14 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 15 15 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE … … 33 33 #include "IDBFactory.h" 34 34 #include "Page.h" 35 #include "PageGroup .h"35 #include "PageGroupIndexedDatabase.h" 36 36 #include "SecurityOrigin.h" 37 37 … … 84 84 85 85 if (!m_idbFactory && m_window->isCurrentlyDisplayedInFrame()) 86 m_idbFactory = IDBFactory::create( page->group().idbFactory());86 m_idbFactory = IDBFactory::create(PageGroupIndexedDatabase::from(page->group())->factoryBackend()); 87 87 return m_idbFactory.get(); 88 88 } -
trunk/Source/WebCore/Modules/indexeddb/DOMWindowIndexedDatabase.h
r109392 r109463 11 11 * documentation and/or other materials provided with the distribution. 12 12 * 13 * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' AND13 * THIS SOFTWARE IS PROVIDED BY GOOGLE INC. AND ITS CONTRIBUTORS ``AS IS'' AND 14 14 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 15 15 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -
trunk/Source/WebCore/WebCore.gypi
r109451 r109463 1297 1297 'Modules/indexeddb/DOMWindowIndexedDatabase.cpp', 1298 1298 'Modules/indexeddb/DOMWindowIndexedDatabase.h', 1299 'Modules/indexeddb/PageGroupIndexedDatabase.cpp', 1300 'Modules/indexeddb/PageGroupIndexedDatabase.h', 1299 1301 'Modules/intents/Intent.cpp', 1300 1302 'Modules/intents/Intent.h', -
trunk/Source/WebCore/inspector/InspectorIndexedDBAgent.cpp
r108495 r109463 59 59 #include "Page.h" 60 60 #include "PageGroup.h" 61 #include "PageGroupIndexedDatabase.h" 61 62 #include "SecurityOrigin.h" 62 63 … … 634 635 { 635 636 Page* page = document ? document->page() : 0; 636 IDBFactoryBackendInterface* idbFactory = page ? page->group().idbFactory() : 0;637 IDBFactoryBackendInterface* idbFactory = page ? PageGroupIndexedDatabase::from(page->group())->factoryBackend() : 0; 637 638 638 639 if (!idbFactory) -
trunk/Source/WebCore/page/PageGroup.cpp
r103793 r109463 262 262 } 263 263 264 #if ENABLE(INDEXED_DATABASE)265 IDBFactoryBackendInterface* PageGroup::idbFactory()266 {267 // Do not add page setting based access control here since this object is shared by all pages in268 // the group and having per-page controls is misleading.269 if (!m_factoryBackend)270 m_factoryBackend = IDBFactoryBackendInterface::create();271 return m_factoryBackend.get();272 }273 #endif274 275 264 void PageGroup::addUserScriptToWorld(DOMWrapperWorld* world, const String& source, const KURL& url, 276 265 PassOwnPtr<Vector<String> > whitelist, PassOwnPtr<Vector<String> > blacklist, -
trunk/Source/WebCore/page/PageGroup.h
r103365 r109463 30 30 #include <wtf/Noncopyable.h> 31 31 #include "LinkHash.h" 32 #include "Supplementable.h" 32 33 #include "UserScript.h" 33 34 #include "UserStyleSheet.h" … … 43 44 class StorageNamespace; 44 45 45 class PageGroup {46 class PageGroup : public Supplementable<PageGroup> { 46 47 WTF_MAKE_NONCOPYABLE(PageGroup); WTF_MAKE_FAST_ALLOCATED; 47 48 public: … … 82 83 bool hasLocalStorage() { return m_localStorage; } 83 84 84 #if ENABLE(INDEXED_DATABASE)85 IDBFactoryBackendInterface* idbFactory();86 bool hasIDBFactory() { return m_factoryBackend; }87 #endif88 89 85 void addUserScriptToWorld(DOMWrapperWorld*, const String& source, const KURL&, 90 86 PassOwnPtr<Vector<String> > whitelist, PassOwnPtr<Vector<String> > blacklist, … … 123 119 unsigned m_identifier; 124 120 RefPtr<StorageNamespace> m_localStorage; 125 #if ENABLE(INDEXED_DATABASE)126 RefPtr<IDBFactoryBackendInterface> m_factoryBackend;127 #endif128 121 129 122 OwnPtr<UserScriptMap> m_userScripts;
Note: See TracChangeset
for help on using the changeset viewer.