@@ -1236,14 +1236,6 @@ - (BOOL)shouldCreateRenderers
12361236 return _shouldCreateRenderers;
12371237}
12381238
1239- - (int )numPendingOrLoadingRequests
1240- {
1241- Document *doc = m_frame->document ();
1242- if (doc)
1243- return NumberOfPendingOrLoadingRequests (doc->docLoader ());
1244- return 0 ;
1245- }
1246-
12471239- (BOOL )doneProcessingData
12481240{
12491241 Document *doc = m_frame->document ();
@@ -2148,11 +2140,6 @@ - (void)frameDetached
21482140 m_frame->loader ()->detachFromParent ();
21492141}
21502142
2151- - (void )tokenizerProcessedData
2152- {
2153- m_frame->loader ()->checkLoadComplete ();
2154- }
2155-
21562143- (void )receivedData : (NSData *)data textEncodingName : (NSString *)textEncodingName
21572144{
21582145 // Set the encoding. This only needs to be done once, but it's harmless to do it again later.
@@ -2166,24 +2153,6 @@ - (void)receivedData:(NSData *)data textEncodingName:(NSString *)textEncodingNam
21662153 [self addData: data];
21672154}
21682155
2169- - (id <WebCoreResourceHandle>)startLoadingResource : (id <WebCoreResourceLoader>)resourceLoader withMethod : (NSString *)method URL : (NSURL *)URL customHeaders : (NSDictionary *)customHeaders
2170- {
2171- // If we are no longer attached to a page, this must be an attempted load from an
2172- // onunload handler, so let's just block it.
2173- if (!m_frame->page ())
2174- return nil ;
2175-
2176- // Since this is a subresource, we can load any URL (we ignore the return value).
2177- // But we still want to know whether we should hide the referrer or not, so we call the canLoadURL method.
2178- String referrer = m_frame->referrer ();
2179- bool hideReferrer;
2180- m_frame->loader ()->canLoad (URL, referrer, hideReferrer);
2181- if (hideReferrer)
2182- referrer = String ();
2183-
2184- return SubresourceLoader::create (m_frame, resourceLoader, method, URL, customHeaders, referrer);
2185- }
2186-
21872156- (void )objectLoadedFromCacheWithURL : (NSURL *)URL response : (NSURLResponse *)response data : (NSData *)data
21882157{
21892158 if (!m_frame)
@@ -2198,25 +2167,6 @@ - (void)objectLoadedFromCacheWithURL:(NSURL *)URL response:(NSURLResponse *)resp
21982167 [request release ];
21992168}
22002169
2201- - (id <WebCoreResourceHandle>)startLoadingResource : (id <WebCoreResourceLoader>)resourceLoader withMethod : (NSString *)method URL : (NSURL *)URL
2202- customHeaders : (NSDictionary *)customHeaders postData : (NSArray *)postData
2203- {
2204- // If we are no longer attached to a Page, this must be an attempted load from an
2205- // onunload handler, so let's just block it.
2206- if (!m_frame->page ())
2207- return nil ;
2208-
2209- // Since this is a subresource, we can load any URL (we ignore the return value).
2210- // But we still want to know whether we should hide the referrer or not, so we call the canLoadURL method.
2211- String referrer = m_frame->referrer ();
2212- bool hideReferrer;
2213- m_frame->loader ()->canLoad (URL, referrer, hideReferrer);
2214- if (hideReferrer)
2215- referrer = String ();
2216-
2217- return SubresourceLoader::create (m_frame, resourceLoader, method, URL, customHeaders, postData, referrer);
2218- }
2219-
22202170- (NSData *)syncLoadResourceWithMethod : (NSString *)method URL : (NSURL *)URL customHeaders : (NSDictionary *)requestHeaders postData : (NSArray *)postData finalURL : (NSURL **)finalURL responseHeaders : (NSDictionary **)responseHeaderDict statusCode : (int *)statusCode
22212171{
22222172 // Since this is a subresource, we can load any URL (we ignore the return value).
@@ -2292,28 +2242,6 @@ - (NSData *)syncLoadResourceWithMethod:(NSString *)method URL:(NSURL *)URL custo
22922242
22932243// -------------------
22942244
2295- - (NSString *)incomingReferrer
2296- {
2297- return [m_frame->loader ()->documentLoader ()->request () valueForHTTPHeaderField: @" Referer" ];
2298- }
2299-
2300- - (BOOL )isReloading
2301- {
2302- return [m_frame->loader ()->documentLoader ()->request () cachePolicy ] == NSURLRequestReloadIgnoringCacheData;
2303- }
2304-
2305- - (void )loadEmptyDocumentSynchronously
2306- {
2307- if (!m_frame)
2308- return ;
2309-
2310- NSURL *url = [[NSURL alloc ] initWithString: @" " ];
2311- NSURLRequest *request = [[NSURLRequest alloc ] initWithURL: url];
2312- m_frame->loader ()->load (request);
2313- [request release ];
2314- [url release ];
2315- }
2316-
23172245- (FrameMac*)_frame
23182246{
23192247 return m_frame;
0 commit comments