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 e3c5ae1d2672f536e4d4b2f8ffb18848edd36d28..504a7a0d62f58469a1de201ee28b74f714060ce3 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 |
@@ -58,7 +58,7 @@ void ServiceWorkerRequestHandler::InitializeHandler( |
int process_id, |
int provider_id, |
ResourceType::Type resource_type) { |
- if (!IsSchemeAndMethodSupported(request)) { |
+ if (!IsSchemeAndMethodSupportedForAppCache(request)) { |
return; |
} |