PageRenderTime 29ms CodeModel.GetById 17ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/core/externals/update-engine/Core/KSFetcherFactory.h

http://macfuse.googlecode.com/
C++ Header | 32 lines | 6 code | 6 blank | 20 comment | 0 complexity | be88aa659bdb41238b293f4feead0cad MD5 | raw file
 1// Copyright 2008 Google Inc.
 2//
 3// Licensed under the Apache License, Version 2.0 (the "License");
 4// you may not use this file except in compliance with the License.
 5// You may obtain a copy of the License at
 6//
 7//     http://www.apache.org/licenses/LICENSE-2.0
 8//
 9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15#import <Foundation/Foundation.h>
16
17@class GDataHTTPFetcher;
18
19// A factory class that creates GDataHTTPFetcher objects.  We pass this
20// to a KSUpdateChecker.  Since a KSUpdateChecker may need more than
21// one GDataHTTPFetcher (depending on the KSServer implementation), we
22// must pass in a factory instead of just a GDataHTTPFetcher.
23@interface KSFetcherFactory : NSObject
24
25// Returns an autoreleased instance of KSFetcherFactory
26+ (KSFetcherFactory *)factory;
27
28// Returns an autoreleased object compatible with GDataHTTPFetcher,
29// initialized with the given NSURLRequest.
30- (GDataHTTPFetcher *)createFetcherForRequest:(NSURLRequest *)request;
31
32@end