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

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: rebase 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 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;
}

Powered by Google App Engine
This is Rietveld 408576698