]> git.saurik.com Git - cydia.git/commitdiff
Add some more #if LogBrowser love to BrowserController.
authorJay Freeman (saurik) <saurik@saurik.com>
Sat, 6 Nov 2010 02:01:02 +0000 (19:01 -0700)
committerJay Freeman (saurik) <saurik@saurik.com>
Sat, 6 Nov 2010 02:01:02 +0000 (19:01 -0700)
UICaboodle/BrowserView.mm

index 73f615539260b782ccca8e6ccda846814e9b3378..ad27ef4e7c5e35691a9485785cfa742edf7bb18e 100644 (file)
@@ -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;
 }