diff options
author | Andrei Popescu <andreip@google.com> | 2009-07-21 13:10:06 +0100 |
---|---|---|
committer | Andrei Popescu <andreip@google.com> | 2009-07-21 13:31:30 +0100 |
commit | c60802dd50f86c37e0596d41c3ef6fc2c8804da4 (patch) | |
tree | ef54137cbf064976e5f146c125691c40fb1136d3 /WebKitTools/DumpRenderTree/mac/LayoutTestControllerMac.mm | |
parent | ce39e03a248f9bee3e746c15e7961b3e40a871ed (diff) | |
download | external_webkit-c60802dd50f86c37e0596d41c3ef6fc2c8804da4.zip external_webkit-c60802dd50f86c37e0596d41c3ef6fc2c8804da4.tar.gz external_webkit-c60802dd50f86c37e0596d41c3ef6fc2c8804da4.tar.bz2 |
Implements a mechanism that limit the growth of the application cache
Diffstat (limited to 'WebKitTools/DumpRenderTree/mac/LayoutTestControllerMac.mm')
-rw-r--r-- | WebKitTools/DumpRenderTree/mac/LayoutTestControllerMac.mm | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/WebKitTools/DumpRenderTree/mac/LayoutTestControllerMac.mm b/WebKitTools/DumpRenderTree/mac/LayoutTestControllerMac.mm index c80c78f..3aa1f2c 100644 --- a/WebKitTools/DumpRenderTree/mac/LayoutTestControllerMac.mm +++ b/WebKitTools/DumpRenderTree/mac/LayoutTestControllerMac.mm @@ -39,6 +39,7 @@ #import <JavaScriptCore/JSStringRefCF.h> #import <WebKit/DOMDocument.h> #import <WebKit/DOMElement.h> +#import <WebKit/WebApplicationCache.h> #import <WebKit/WebBackForwardList.h> #import <WebKit/WebDatabaseManagerPrivate.h> #import <WebKit/WebDataSource.h> @@ -210,6 +211,11 @@ void LayoutTestController::setAcceptsEditing(bool newAcceptsEditing) [(EditingDelegate *)[[mainFrame webView] editingDelegate] setAcceptsEditing:newAcceptsEditing]; } +void LayoutTestController::setAppCacheMaximumSize(unsigned long long size) +{ + [WebApplicationCache setMaximumSize:size]; +} + void LayoutTestController::setAuthorAndUserStylesEnabled(bool flag) { [[[mainFrame webView] preferences] setAuthorAndUserStylesEnabled:flag]; |