Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1082)

Unified Diff: content/browser/appcache/appcache_interceptor.cc

Issue 2501343003: PlzNavigate: AppCache support. (Closed)
Patch Set: Address review comments Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/appcache/appcache_interceptor.cc
diff --git a/content/browser/appcache/appcache_interceptor.cc b/content/browser/appcache/appcache_interceptor.cc
index acc98c0a8e82cdb0246a470975bacf60965f5ca1..8b916091dc7fcd9b23c5d6013c26e06eee851078 100644
--- a/content/browser/appcache/appcache_interceptor.cc
+++ b/content/browser/appcache/appcache_interceptor.cc
@@ -32,13 +32,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;
@@ -52,6 +51,15 @@ 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);
« no previous file with comments | « content/browser/appcache/appcache_interceptor.h ('k') | content/browser/appcache/appcache_navigation_handle.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698