summaryrefslogtreecommitdiff
path: root/UICaboodle/BrowserView.mm
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2010-11-05 19:01:02 -0700
committerJay Freeman (saurik) <saurik@saurik.com>2010-11-05 19:01:02 -0700
commit0352f2387a12df4f6a57b0b7fa68268223cbe823 (patch)
tree00db8d63164107dc2ef927625287d9ac57a053fd /UICaboodle/BrowserView.mm
parentd49718a1f7a4cf319866cf684a4a7adb7d3a6025 (diff)
Add some more #if LogBrowser love to BrowserController.
Diffstat (limited to 'UICaboodle/BrowserView.mm')
-rw-r--r--UICaboodle/BrowserView.mm9
1 files changed, 9 insertions, 0 deletions
diff --git a/UICaboodle/BrowserView.mm b/UICaboodle/BrowserView.mm
index 73f6155..ad27ef4 100644
--- a/UICaboodle/BrowserView.mm
+++ b/UICaboodle/BrowserView.mm
@@ -169,6 +169,7 @@ enum CYWebPolicyDecision {
switch (decision_) {
case CYWebPolicyDecisionUnknown:
default:
+ NSLog(@"CYWebPolicyDecisionUnknown");
return false;
case CYWebPolicyDecisionDownload: [listener_ download]; break;
@@ -458,6 +459,10 @@ static void $UIWebViewWebViewDelegate$webViewClose$(UIWebViewWebViewDelegate *se
}
- (void) loadRequest:(NSURLRequest *)request {
+#if LogBrowser
+ NSLog(@"loadRequest:%@", request);
+#endif
+
error_ = false;
WebThreadLock();
@@ -713,6 +718,10 @@ static void $UIWebViewWebViewDelegate$webViewClose$(UIWebViewWebViewDelegate *se
}
- (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;
}