switch (decision_) {
case CYWebPolicyDecisionUnknown:
default:
+ NSLog(@"CYWebPolicyDecisionUnknown");
return false;
case CYWebPolicyDecisionDownload: [listener_ download]; break;
}
- (void) loadRequest:(NSURLRequest *)request {
+#if LogBrowser
+ NSLog(@"loadRequest:%@", request);
+#endif
+
error_ = false;
WebThreadLock();
}
- (NSURLRequest *) webView:(WebView *)view resource:(id)identifier willSendRequest:(NSURLRequest *)request redirectResponse:(NSURLResponse *)response fromDataSource:(WebDataSource *)source {
+#if LogBrowser
+ NSLog(@"resource:%@ willSendRequest:%@ redirectResponse:%@ fromDataSource:%@", identifier, request, response, source);
+#endif
+
return request;
}