diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2011-02-26 08:11:00 -0800 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2011-03-07 02:41:24 -0800 |
commit | 834c18a40b98da3d3cbccfeb84d266b954a81f25 (patch) | |
tree | bcb467edefdaf87ccf9a5f8c183c9fd84fb8879a /MobileCydia.mm | |
parent | bc061528be3e3c61ba19b525d7ce1814c7e7c622 (diff) |
Split PipelinedHosts_ from BridgedHosts_.
Diffstat (limited to 'MobileCydia.mm')
-rw-r--r-- | MobileCydia.mm | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm index 1ac856e..af616c4 100644 --- a/MobileCydia.mm +++ b/MobileCydia.mm @@ -1087,6 +1087,7 @@ static CGFloat ScreenScale_; static NSString *Idiom_; static NSMutableSet *BridgedHosts_; +static NSMutableSet *PipelinedHosts_; static NSString *kCydiaProgressEventTypeError = @"Error"; static NSString *kCydiaProgressEventTypeInformation = @"Information"; @@ -4209,6 +4210,8 @@ static NSMutableSet *Diversions_; 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)) @@ -4321,6 +4324,10 @@ static NSMutableSet *Diversions_; [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]; @@ -10027,7 +10034,7 @@ MSHook(id, NSURLConnection$init$, NSURLConnection *self, SEL _cmd, NSURLRequest 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) { @@ -10065,6 +10072,7 @@ int main(int argc, char *argv[]) { _pooled } BridgedHosts_ = [NSMutableSet setWithCapacity:2]; + PipelinedHosts_ = [NSMutableSet setWithCapacity:2]; UI_ = CydiaURL([NSString stringWithFormat:@"ui/ios~%@", Idiom_]); |