Index: content/browser/service_worker/service_worker_request_handler.cc |
diff --git a/content/browser/service_worker/service_worker_request_handler.cc b/content/browser/service_worker/service_worker_request_handler.cc |
index a04e01164528bc188533ebc547e92fc9f6e6eb6e..79fe141ea5bf20f4dfc2d77964a5eed95108f1fb 100644 |
--- a/content/browser/service_worker/service_worker_request_handler.cc |
+++ b/content/browser/service_worker/service_worker_request_handler.cc |
@@ -40,13 +40,13 @@ class ServiceWorkerRequestInterceptor |
DISALLOW_COPY_AND_ASSIGN(ServiceWorkerRequestInterceptor); |
}; |
-bool IsMethodSupported(const std::string& method) { |
+bool IsMethodSupportedForAppCache(const std::string& method) { |
return (method == "GET") || (method == "HEAD"); |
} |
-bool IsSchemeAndMethodSupported(const net::URLRequest* request) { |
+bool IsSchemeAndMethodSupportedForAppCache(const net::URLRequest* request) { |
return request->url().SchemeIsHTTPOrHTTPS() && |
- IsMethodSupported(request->method()); |
+ IsMethodSupportedForAppCache(request->method()); |
} |
} // namespace |
@@ -59,7 +59,7 @@ void ServiceWorkerRequestHandler::InitializeHandler( |
int provider_id, |
ResourceType::Type resource_type) { |
if (!ServiceWorkerUtils::IsFeatureEnabled() || |
- !IsSchemeAndMethodSupported(request)) { |
+ !IsSchemeAndMethodSupportedForAppCache(request)) { |
return; |
} |