diff options
author | Steve Block <steveblock@google.com> | 2011-06-08 10:42:33 +0100 |
---|---|---|
committer | Steve Block <steveblock@google.com> | 2011-06-08 13:52:19 +0100 |
commit | 5461f2587f09db45fac0a6f6e1b9c62f638aebc0 (patch) | |
tree | af1db1ccafffc50b49e7edbf1a85845e4ea2a8d3 /Source/WebCore/page | |
parent | 74ee772b3c1ea8b557e5a596e9cbc655d1c0e161 (diff) | |
download | external_webkit-5461f2587f09db45fac0a6f6e1b9c62f638aebc0.zip external_webkit-5461f2587f09db45fac0a6f6e1b9c62f638aebc0.tar.gz external_webkit-5461f2587f09db45fac0a6f6e1b9c62f638aebc0.tar.bz2 |
Merge WebKit at r82507: Fix conflicts due to new StorageTracker
- FileSystemAndroid.cpp, FileSystemPOSIX.cpp
Use new common version of listDirectory(), which is identical to the
existing Android version.
- StorageNamespace.h, StorageNamespaceImpl.h
Conflict due to Android's clearPage()
- PageGroup.cpp
Conflict due to Android's clearDomStorage()
See http://trac.webkit.org/changeset/80892
Change-Id: Ifac131155f5019959de8761438cd0372547b0e6c
Diffstat (limited to 'Source/WebCore/page')
-rw-r--r-- | Source/WebCore/page/PageGroup.cpp | 91 |
1 files changed, 45 insertions, 46 deletions
diff --git a/Source/WebCore/page/PageGroup.cpp b/Source/WebCore/page/PageGroup.cpp index d53de08..969e2a6 100644 --- a/Source/WebCore/page/PageGroup.cpp +++ b/Source/WebCore/page/PageGroup.cpp @@ -116,19 +116,57 @@ void PageGroup::closeLocalStorage() #endif } -<<<<<<< HEAD -#if ENABLE(DOM_STORAGE) && defined(ANDROID) -void PageGroup::clearDomStorage() -======= #if ENABLE(DOM_STORAGE) void PageGroup::clearLocalStorageForAllOrigins() ->>>>>>> webkit.org at r82507 { if (!pageGroups) return; -<<<<<<< HEAD + PageGroupMap::iterator end = pageGroups->end(); + for (PageGroupMap::iterator it = pageGroups->begin(); it != end; ++it) { + if (it->second->hasLocalStorage()) + it->second->localStorage()->clearAllOriginsForDeletion(); + } +} + +void PageGroup::clearLocalStorageForOrigin(SecurityOrigin* origin) +{ + if (!pageGroups) + return; + + PageGroupMap::iterator end = pageGroups->end(); + for (PageGroupMap::iterator it = pageGroups->begin(); it != end; ++it) { + if (it->second->hasLocalStorage()) + it->second->localStorage()->clearOriginForDeletion(origin); + } +} + +void PageGroup::syncLocalStorage() +{ + if (!pageGroups) + return; + + PageGroupMap::iterator end = pageGroups->end(); + for (PageGroupMap::iterator it = pageGroups->begin(); it != end; ++it) { + if (it->second->hasLocalStorage()) + it->second->localStorage()->sync(); + } +} + +unsigned PageGroup::numberOfPageGroups() +{ + if (!pageGroups) + return 0; + + return pageGroups->size(); +} + +#if defined(ANDROID) +void PageGroup::clearDomStorage() +{ + if (!pageGroups) + return; PageGroupMap::iterator end = pageGroups->end(); @@ -206,47 +244,8 @@ void PageGroup::removeLocalStorage() m_localStorage = 0; } -======= - PageGroupMap::iterator end = pageGroups->end(); - for (PageGroupMap::iterator it = pageGroups->begin(); it != end; ++it) { - if (it->second->hasLocalStorage()) - it->second->localStorage()->clearAllOriginsForDeletion(); - } -} - -void PageGroup::clearLocalStorageForOrigin(SecurityOrigin* origin) -{ - if (!pageGroups) - return; - - PageGroupMap::iterator end = pageGroups->end(); - for (PageGroupMap::iterator it = pageGroups->begin(); it != end; ++it) { - if (it->second->hasLocalStorage()) - it->second->localStorage()->clearOriginForDeletion(origin); - } -} - -void PageGroup::syncLocalStorage() -{ - if (!pageGroups) - return; - - PageGroupMap::iterator end = pageGroups->end(); - for (PageGroupMap::iterator it = pageGroups->begin(); it != end; ++it) { - if (it->second->hasLocalStorage()) - it->second->localStorage()->sync(); - } -} - -unsigned PageGroup::numberOfPageGroups() -{ - if (!pageGroups) - return 0; - - return pageGroups->size(); -} +#endif // PLATFORM(ANDROID) ->>>>>>> webkit.org at r82507 #endif void PageGroup::addPage(Page* page) |