Changeset 429 for trunk/WebKit/mac/WebView/WebDataSource.mm
- Timestamp:
- 08/04/08 12:23:14 (5 months ago)
- Files:
-
- trunk/WebKit/mac/WebView/WebDataSource.mm (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/WebKit/mac/WebView/WebDataSource.mm
r370 r429 41 41 #import "WebKitLogging.h" 42 42 #import "WebKitStatisticsPrivate.h" 43 #import "WebKitNSStringExtras.h" 43 44 #import "WebNSURLExtras.h" 44 45 #import "WebNSURLRequestExtras.h" … … 48 49 #import "WebResourcePrivate.h" 49 50 #import "WebViewInternal.h" 51 #import <WebCore/ApplicationCacheStorage.h> 50 52 #import <WebCore/FrameLoader.h> 51 53 #import <WebCore/KURL.h> … … 181 183 } 182 184 185 - (BOOL)_transferApplicationCache:(NSString*)destinationBundleIdentifier 186 { 187 DocumentLoader* loader = [self _documentLoader]; 188 189 if (!loader) 190 return NO; 191 192 ApplicationCache* cache = loader->applicationCache(); 193 if (!cache) 194 return YES; 195 196 NSString *cacheDir = [NSString _webkit_applicationCacheDirectoryWithBundleIdentifier:destinationBundleIdentifier]; 197 198 return ApplicationCacheStorage::storeCopyOfCache(cacheDir, cache); 199 } 200 183 201 @end 184 202
