- added file type and NSURLResponse caching SPI
[WebKit-https.git] / WebKitLibraries / WebKitSystemInterface.h
1 /*      
2     WebKitSystemInterface.h
3     Copyright (C) 2005 Apple Computer, Inc. All rights reserved.    
4     
5     Public header file.
6 */
7
8 #import <Cocoa/Cocoa.h>
9
10 typedef enum {
11     WKCertificateParseResultSucceeded  = 0,
12     WKCertificateParseResultFailed     = 1,
13     WKCertificateParseResultPKCS7      = 2,
14 } WKCertificateParseResult;
15
16 CFStringRef WKCopyCFLocalizationPreferredName(CFStringRef localization);
17 CFStringRef WKSignedPublicKeyAndChallengeString(unsigned keySize, CFStringRef challenge, CFStringRef keyDescription);
18 WKCertificateParseResult WKAddCertificatesToKeychainFromData(const void *bytes, unsigned length);
19
20 NSString *WKGetPreferredExtensionForMIMEType(NSString *type);
21 NSArray *WKGetExtensionsForMIMEType(NSString *type);
22 NSString *WKGetMIMETypeForExtension(NSString *extension);
23
24 NSDate *WKGetNSURLResponseLastModifiedDate(NSURLResponse *response);
25 NSTimeInterval WKGetNSURLResponseFreshnessLifetime(NSURLResponse *response);
26 NSTimeInterval WKGetNSURLResponseCalculatedExpiration(NSURLResponse *response);
27 BOOL WKGetNSURLResponseMustRevalidate(NSURLResponse *response);
28