diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2011-03-05 03:54:19 -0800 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2011-03-07 02:41:37 -0800 |
commit | d323285e7d6f4836a189d9419b716b7dbc8c2da6 (patch) | |
tree | 4f51eaf53ddb0bfc4c744d101c275c414f0e0285 /CyteKit/WebView.h | |
parent | 9dbfe708245db7d2dd2c8e779efb413ef0c3f8d3 (diff) |
Disallow serializing ignored URLs to the state.
Diffstat (limited to 'CyteKit/WebView.h')
-rw-r--r-- | CyteKit/WebView.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/CyteKit/WebView.h b/CyteKit/WebView.h index 91878b7..0c96f6f 100644 --- a/CyteKit/WebView.h +++ b/CyteKit/WebView.h @@ -50,11 +50,19 @@ #include <JavaScriptCore/JavaScriptCore.h> +enum CYWebPolicyDecision { + CYWebPolicyDecisionUnknown, + CYWebPolicyDecisionDownload, + CYWebPolicyDecisionIgnore, + CYWebPolicyDecisionUse, +}; + @protocol CyteWebViewDelegate <UIWebViewDelegate> - (void) webView:(WebView *)view addMessageToConsole:(NSDictionary *)message; - (void) webView:(WebView *)view decidePolicyForNavigationAction:(NSDictionary *)action request:(NSURLRequest *)request frame:(WebFrame *)frame decisionListener:(id<WebPolicyDecisionListener>)listener; - (void) webView:(WebView *)view decidePolicyForNewWindowAction:(NSDictionary *)action request:(NSURLRequest *)request newFrameName:(NSString *)name decisionListener:(id<WebPolicyDecisionListener>)listener; - (void) webView:(WebView *)view didClearWindowObject:(WebScriptObject *)window forFrame:(WebFrame *)frame; +- (void) webView:(WebView *)view didDecidePolicy:(CYWebPolicyDecision)decision forNavigationAction:(NSDictionary *)action request:(NSURLRequest *)request frame:(WebFrame *)frame; - (void) webView:(WebView *)view didFailLoadWithError:(NSError *)error forFrame:(WebFrame *)frame; - (void) webView:(WebView *)view didFailProvisionalLoadWithError:(NSError *)error forFrame:(WebFrame *)frame; - (void) webView:(WebView *)view didFinishLoadForFrame:(WebFrame *)frame; |