Index: content/browser/appcache/appcache_interceptor.cc |
diff --git a/content/browser/appcache/appcache_interceptor.cc b/content/browser/appcache/appcache_interceptor.cc |
index 85022442562c6f188f524bd50fabdf98e3b33f3b..ac23b154855271433930791b5dfc42ebe7b40574 100644 |
--- a/content/browser/appcache/appcache_interceptor.cc |
+++ b/content/browser/appcache/appcache_interceptor.cc |
@@ -31,13 +31,12 @@ AppCacheRequestHandler* AppCacheInterceptor::GetHandler( |
request->GetUserData(&kHandlerKey)); |
} |
-void AppCacheInterceptor::SetExtraRequestInfo( |
- net::URLRequest* request, |
- AppCacheServiceImpl* service, |
- int process_id, |
- int host_id, |
- ResourceType resource_type, |
- bool should_reset_appcache) { |
+void AppCacheInterceptor::SetExtraRequestInfo(net::URLRequest* request, |
+ AppCacheServiceImpl* service, |
+ int process_id, |
+ int host_id, |
+ ResourceType resource_type, |
+ bool should_reset_appcache) { |
if (!service || (host_id == kAppCacheNoHostId)) |
return; |
@@ -51,9 +50,20 @@ void AppCacheInterceptor::SetExtraRequestInfo( |
if (!host) |
return; |
+ SetExtraRequestInfoForHost(request, host, resource_type, |
+ should_reset_appcache); |
+} |
+ |
+void AppCacheInterceptor::SetExtraRequestInfoForHost( |
+ net::URLRequest* request, |
+ AppCacheHost* host, |
+ ResourceType resource_type, |
+ bool should_reset_appcache) { |
// Create a handler for this request and associate it with the request. |
AppCacheRequestHandler* handler = |
- host->CreateRequestHandler(request, resource_type, should_reset_appcache); |
+ host->CreateRequestHandler(request, |
+ resource_type, |
+ should_reset_appcache); |
if (handler) |
SetHandler(request, handler); |
} |