Changeset 96405 in webkit
- Timestamp:
- Sep 30, 2011 10:26:14 AM (13 years ago)
- Location:
- trunk
- Files:
-
- 1 deleted
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r96404 r96405 1 2011-09-30 Qi Zhang <qi.2.zhang@nokia.com> 2 3 WebKitTestRunner needs layoutTestController.setAppCacheMaximumSize 4 https://bugs.webkit.org/show_bug.cgi?id=42698 5 6 Reviewed by Andreas Kling. 7 8 Removed http/tests/appcache/max-size.html from skipped list, and also the "failed" expected file for http/tests/appcache/interrupted-update-expected.html 9 10 * platform/mac-wk2/http/tests/appcache: Removed. 11 * platform/mac-wk2/http/tests/appcache/interrupted-update-expected.txt: Removed. 12 * platform/wk2/Skipped: 13 1 14 2011-09-30 Ned Holbrook <nholbrook@apple.com> 2 15 -
trunk/LayoutTests/platform/wk2/Skipped
r96221 r96405 710 710 security/set-form-autocomplete-attribute.html 711 711 712 # WebKitTestRunner needs layoutTestController.setAppCacheMaximumSize713 # <https://bugs.webkit.org/show_bug.cgi?id=42698>714 http/tests/appcache/max-size.html715 716 712 # WebKitTestRunner needs layoutTestController.setWillSendRequestClearHeader 717 713 # <https://bugs.webkit.org/show_bug.cgi?id=42699> -
trunk/Source/WebKit2/ChangeLog
r96400 r96405 1 2011-09-30 Qi Zhang <qi.2.zhang@nokia.com> 2 3 WebKitTestRunner needs layoutTestController.setAppCacheMaximumSize 4 https://bugs.webkit.org/show_bug.cgi?id=42698 5 6 Reviewed by Andreas Kling. 7 8 Implemented layoutTestController.setAppCacheMaximumSize and layoutTestController.clearApplicationCache, 9 and call clearApplicationCache when layoutTest start up. 10 11 * WebProcess/ApplicationCache/WebApplicationCacheManager.cpp: 12 (WebKit::WebApplicationCacheManager::setAppCacheMaximumSize): 13 * WebProcess/ApplicationCache/WebApplicationCacheManager.h: 14 * WebProcess/InjectedBundle/API/c/WKBundle.cpp: 15 (WKBundleClearApplicationCache): 16 (WKBundleSetAppCacheMaximumSize): 17 * WebProcess/InjectedBundle/API/c/WKBundlePrivate.h: 18 * WebProcess/InjectedBundle/InjectedBundle.cpp: 19 (WebKit::InjectedBundle::clearApplicationCache): 20 (WebKit::InjectedBundle::setAppCacheMaximumSize): 21 * WebProcess/InjectedBundle/InjectedBundle.h: 22 1 23 2011-09-30 Carlos Garcia Campos <cgarcia@igalia.com> 2 24 -
trunk/Source/WebKit2/WebProcess/ApplicationCache/WebApplicationCacheManager.cpp
r95919 r96405 100 100 } 101 101 102 void WebApplicationCacheManager::setAppCacheMaximumSize(uint64_t size) 103 { 104 WebProcess::LocalTerminationDisabler terminationDisabler(WebProcess::shared()); 105 106 cacheStorage().setMaximumSize(size); 107 } 108 102 109 } // namespace WebKit -
trunk/Source/WebKit2/WebProcess/ApplicationCache/WebApplicationCacheManager.h
r95901 r96405 48 48 void didReceiveMessage(CoreIPC::Connection*, CoreIPC::MessageID, CoreIPC::ArgumentDecoder*); 49 49 50 void deleteAllEntries(); 51 void setAppCacheMaximumSize(uint64_t); 50 52 private: 51 53 WebApplicationCacheManager(); … … 53 55 void getApplicationCacheOrigins(uint64_t callbackID); 54 56 void deleteEntriesForOrigin(const SecurityOriginData&); 55 void deleteAllEntries();56 57 57 58 void didReceiveWebApplicationCacheManagerMessage(CoreIPC::Connection*, CoreIPC::MessageID, CoreIPC::ArgumentDecoder*); -
trunk/Source/WebKit2/WebProcess/InjectedBundle/API/c/WKBundle.cpp
r95901 r96405 192 192 } 193 193 194 void WKBundleClearApplicationCache(WKBundleRef bundleRef) 195 { 196 toImpl(bundleRef)->clearApplicationCache(); 197 } 198 199 void WKBundleSetAppCacheMaximumSize(WKBundleRef bundleRef, uint64_t size) 200 { 201 toImpl(bundleRef)->setAppCacheMaximumSize(size); 202 } 203 194 204 int WKBundleNumberOfPages(WKBundleRef bundleRef, WKBundleFrameRef frameRef, double pageWidthInPixels, double pageHeightInPixels) 195 205 { -
trunk/Source/WebKit2/WebProcess/InjectedBundle/API/c/WKBundlePrivate.h
r95901 r96405 74 74 WK_EXPORT void WKBundleClearAllDatabases(WKBundleRef bundle); 75 75 WK_EXPORT void WKBundleSetDatabaseQuota(WKBundleRef bundle, uint64_t); 76 WK_EXPORT void WKBundleClearApplicationCache(WKBundleRef bundle); 77 WK_EXPORT void WKBundleSetAppCacheMaximumSize(WKBundleRef bundle, uint64_t size); 76 78 WK_EXPORT int WKBundleNumberOfPages(WKBundleRef bundle, WKBundleFrameRef frameRef, double pageWidthInPixels, double pageHeightInPixels); 77 79 WK_EXPORT int WKBundlePageNumberForElementById(WKBundleRef bundle, WKBundleFrameRef frameRef, WKStringRef idRef, double pageWidthInPixels, double pageHeightInPixels); -
trunk/Source/WebKit2/WebProcess/InjectedBundle/InjectedBundle.cpp
r95901 r96405 34 34 #include "WKAPICast.h" 35 35 #include "WKBundleAPICast.h" 36 #include "WebApplicationCacheManager.h" 36 37 #include "WebContextMessageKinds.h" 37 38 #include "WebCoreArgumentCoders.h" … … 194 195 } 195 196 197 void InjectedBundle::clearApplicationCache() 198 { 199 WebApplicationCacheManager::shared().deleteAllEntries(); 200 } 201 202 void InjectedBundle::setAppCacheMaximumSize(uint64_t size) 203 { 204 WebApplicationCacheManager::shared().setAppCacheMaximumSize(size); 205 } 206 196 207 int InjectedBundle::numberOfPages(WebFrame* frame, double pageWidthInPixels, double pageHeightInPixels) 197 208 { -
trunk/Source/WebKit2/WebProcess/InjectedBundle/InjectedBundle.h
r95901 r96405 124 124 void setDatabaseQuota(uint64_t); 125 125 126 // Application Cache API 127 void clearApplicationCache(); 128 void setAppCacheMaximumSize(uint64_t); 129 126 130 // Garbage collection API 127 131 void garbageCollectJavaScriptObjects(); -
trunk/Tools/ChangeLog
r96402 r96405 1 2011-09-30 Qi Zhang <qi.2.zhang@nokia.com> 2 3 WebKitTestRunner needs layoutTestController.setAppCacheMaximumSize 4 https://bugs.webkit.org/show_bug.cgi?id=42698 5 6 Reviewed by Andreas Kling. 7 8 Implemented layoutTestController.setAppCacheMaximumSize and layoutTestController.clearApplicationCache, 9 and call clearApplicationCache when layoutTest start up. 10 11 * WebKitTestRunner/InjectedBundle/Bindings/LayoutTestController.idl: 12 * WebKitTestRunner/InjectedBundle/InjectedBundle.cpp: 13 (WTR::InjectedBundle::beginTesting): 14 * WebKitTestRunner/InjectedBundle/LayoutTestController.cpp: 15 (WTR::LayoutTestController::clearAllApplicationCaches): 16 (WTR::LayoutTestController::setAppCacheMaximumSize): 17 * WebKitTestRunner/InjectedBundle/LayoutTestController.h: 18 1 19 2011-09-30 Zeno Albisser <zeno.albisser@nokia.com> 2 20 -
trunk/Tools/WebKitTestRunner/InjectedBundle/Bindings/LayoutTestController.idl
r95109 r96405 97 97 DOMString pathToLocalResource(in DOMString url); 98 98 99 // Application Cache API 100 void clearAllApplicationCaches(); 101 void setAppCacheMaximumSize(in unsigned long long size); 102 99 103 // Compositing testing. 100 104 DOMString layerTreeAsText(); -
trunk/Tools/WebKitTestRunner/InjectedBundle/InjectedBundle.cpp
r96005 r96405 191 191 192 192 WKBundleClearAllDatabases(m_bundle); 193 WKBundleClearApplicationCache(m_bundle); 193 194 WKBundleResetOriginAccessWhitelists(m_bundle); 194 195 } -
trunk/Tools/WebKitTestRunner/InjectedBundle/LayoutTestController.cpp
r96005 r96405 328 328 } 329 329 330 void LayoutTestController::clearAllApplicationCaches() 331 { 332 WKBundleClearApplicationCache(InjectedBundle::shared().bundle()); 333 } 334 335 void LayoutTestController::setAppCacheMaximumSize(uint64_t size) 336 { 337 WKBundleSetAppCacheMaximumSize(InjectedBundle::shared().bundle(), size); 338 } 339 330 340 bool LayoutTestController::isCommandEnabled(JSStringRef name) 331 341 { -
trunk/Tools/WebKitTestRunner/InjectedBundle/LayoutTestController.h
r95109 r96405 126 126 JSRetainPtr<JSStringRef> pathToLocalResource(JSStringRef); 127 127 128 // Application Cache 129 void clearAllApplicationCaches(); 130 void setAppCacheMaximumSize(uint64_t); 131 128 132 // Printing 129 133 int numberOfPages(double pageWidthInPixels, double pageHeightInPixels);
Note: See TracChangeset
for help on using the changeset viewer.