Changeset 194124 in webkit
- Timestamp:
- Dec 15, 2015 4:52:55 PM (8 years ago)
- Location:
- trunk/Source/WebKit2
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit2/ChangeLog
r194108 r194124 1 2015-12-15 Anders Carlsson <andersca@apple.com> 2 3 Call DatabaseManager directly from WKBundle.cpp 4 https://bugs.webkit.org/show_bug.cgi?id=152317 5 6 Reviewed by Tim Horton. 7 8 This is in preparation for getting rid of some old database manager code. 9 10 * WebProcess/InjectedBundle/API/c/WKBundle.cpp: 11 (WKBundleClearAllDatabases): 12 (WKBundleSetDatabaseQuota): 13 * WebProcess/InjectedBundle/InjectedBundle.cpp: 14 (WebKit::InjectedBundle::clearAllDatabases): Deleted. 15 (WebKit::InjectedBundle::setDatabaseQuota): Deleted. 16 * WebProcess/InjectedBundle/InjectedBundle.h: 17 1 18 2015-12-15 Daniel Bates <dabates@apple.com> 2 19 -
trunk/Source/WebKit2/WebProcess/InjectedBundle/API/c/WKBundle.cpp
r191047 r194124 38 38 #include "WebPage.h" 39 39 #include "WebPageGroupProxy.h" 40 40 #include <WebCore/DatabaseManager.h> 41 42 using namespace WebCore; 41 43 using namespace WebKit; 42 44 … … 199 201 } 200 202 201 void WKBundleClearAllDatabases(WKBundleRef bundleRef)202 { 203 toImpl(bundleRef)->clearAllDatabases();203 void WKBundleClearAllDatabases(WKBundleRef) 204 { 205 DatabaseManager::singleton().deleteAllDatabases(); 204 206 } 205 207 206 208 void WKBundleSetDatabaseQuota(WKBundleRef bundleRef, uint64_t quota) 207 209 { 208 toImpl(bundleRef)->setDatabaseQuota(quota); 210 // Historically, we've used the following (somewhat non-sensical) string 211 // for the databaseIdentifier of local files. 212 DatabaseManager::singleton().setQuota(SecurityOrigin::createFromDatabaseIdentifier("file__0").ptr(), quota); 209 213 } 210 214 -
trunk/Source/WebKit2/WebProcess/InjectedBundle/InjectedBundle.cpp
r192995 r194124 343 343 } 344 344 345 void InjectedBundle::clearAllDatabases()346 {347 WebProcess::singleton().supplement<WebDatabaseManager>()->deleteAllDatabases();348 }349 350 void InjectedBundle::setDatabaseQuota(uint64_t quota)351 {352 // Historically, we've used the following (somewhat non-sensical) string353 // for the databaseIdentifier of local files.354 WebProcess::singleton().supplement<WebDatabaseManager>()->setQuotaForOrigin("file__0", quota);355 }356 357 345 int InjectedBundle::numberOfPages(WebFrame* frame, double pageWidthInPixels, double pageHeightInPixels) 358 346 { -
trunk/Source/WebKit2/WebProcess/InjectedBundle/InjectedBundle.h
r192093 r194124 134 134 void removeAllUserContent(WebPageGroupProxy*); 135 135 136 // Local storage API137 void clearAllDatabases();138 void setDatabaseQuota(uint64_t);139 140 136 // Garbage collection API 141 137 void garbageCollectJavaScriptObjects();
Note: See TracChangeset
for help on using the changeset viewer.