static NSString *Idiom_;
static NSMutableSet *BridgedHosts_;
+static NSMutableSet *PipelinedHosts_;
static NSString *kCydiaProgressEventTypeError = @"Error";
static NSString *kCydiaProgressEventTypeInformation = @"Information";
if (false);
else if (selector == @selector(addBridgedHost:))
return @"addBridgedHost";
+ else if (selector == @selector(addPipelinedHost:))
+ return @"addPipelinedHost";
else if (selector == @selector(addTrivialSource:))
return @"addTrivialSource";
else if (selector == @selector(close))
[BridgedHosts_ performSelectorOnMainThread:@selector(addObject:) withObject:host waitUntilDone:NO];
}
+- (void) addPipelinedHost:(NSString *)host {
+ [PipelinedHosts_ performSelectorOnMainThread:@selector(addObject:) withObject:host waitUntilDone:NO];
+}
+
- (void) popViewController:(NSNumber *)value {
if (value == (id) [WebUndefined undefined])
value = [NSNumber numberWithBool:YES];
NSString *host([url host]);
if ([copy respondsToSelector:@selector(setHTTPShouldUsePipelining:)])
- if ([BridgedHosts_ containsObject:host])
+ if ([PipelinedHosts_ containsObject:host])
[copy setHTTPShouldUsePipelining:YES];
if ((self = _NSURLConnection$init$(self, _cmd, copy, delegate, usesCache, maxContentLength, startImmediately, connectionProperties)) != nil) {
}
BridgedHosts_ = [NSMutableSet setWithCapacity:2];
+ PipelinedHosts_ = [NSMutableSet setWithCapacity:2];
UI_ = CydiaURL([NSString stringWithFormat:@"ui/ios~%@", Idiom_]);