summaryrefslogtreecommitdiffstats
path: root/WebKit/mac/Misc/WebDownload.m
diff options
context:
space:
mode:
authorThe Android Open Source Project <initial-contribution@android.com>2008-12-17 18:05:15 -0800
committerThe Android Open Source Project <initial-contribution@android.com>2008-12-17 18:05:15 -0800
commit1cbdecfa9fc428ac2d8aca0fa91c9580b3d57353 (patch)
tree4457a7306ea5acb43fe05bfe0973b1f7faf97ba2 /WebKit/mac/Misc/WebDownload.m
parent9364f22aed35e1a1e9d07c121510f80be3ab0502 (diff)
downloadexternal_webkit-1cbdecfa9fc428ac2d8aca0fa91c9580b3d57353.zip
external_webkit-1cbdecfa9fc428ac2d8aca0fa91c9580b3d57353.tar.gz
external_webkit-1cbdecfa9fc428ac2d8aca0fa91c9580b3d57353.tar.bz2
Code drop from //branches/cupcake/...@124589
Diffstat (limited to 'WebKit/mac/Misc/WebDownload.m')
-rw-r--r--WebKit/mac/Misc/WebDownload.m11
1 files changed, 10 insertions, 1 deletions
diff --git a/WebKit/mac/Misc/WebDownload.m b/WebKit/mac/Misc/WebDownload.m
index 50a5777..2c53c1b 100644
--- a/WebKit/mac/Misc/WebDownload.m
+++ b/WebKit/mac/Misc/WebDownload.m
@@ -30,8 +30,8 @@
#import <Foundation/NSURLAuthenticationChallenge.h>
#import <Foundation/NSURLDownload.h>
-#import <JavaScriptCore/Assertions.h>
#import <WebKit/WebPanelAuthenticationHandler.h>
+#import <wtf/Assertions.h>
#import "WebTypesInternal.h"
@@ -96,6 +96,9 @@
- (void)downloadDidBegin:(NSURLDownload *)download
{
+#if !defined(BUILDING_ON_TIGER) && !defined(BUILDING_ON_LEOPARD)
+ [[NSProcessInfo processInfo] disableSuddenTermination];
+#endif
[realDelegate downloadDidBegin:download];
}
@@ -154,11 +157,17 @@
- (void)downloadDidFinish:(NSURLDownload *)download
{
+#if !defined(BUILDING_ON_TIGER) && !defined(BUILDING_ON_LEOPARD)
+ [[NSProcessInfo processInfo] enableSuddenTermination];
+#endif
[realDelegate downloadDidFinish:download];
}
- (void)download:(NSURLDownload *)download didFailWithError:(NSError *)error
{
+#if !defined(BUILDING_ON_TIGER) && !defined(BUILDING_ON_LEOPARD)
+ [[NSProcessInfo processInfo] enableSuddenTermination];
+#endif
[realDelegate download:download didFailWithError:error];
}