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

Unified Diff: content/browser/service_worker/service_worker_request_handler.cc

Issue 344493002: Move all remaining appcache-related code to content namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: build file fiddling Created 6 years, 6 months 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/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;
}

Powered by Google App Engine
This is Rietveld 408576698