#ifndef CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_UTILS_H_
#define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_UTILS_H_
#include "webkit/common/resource_type.h"
namespace content {
class ServiceWorkerUtils {
public:
static bool IsMainResourceType(ResourceType::Type type) {
return ResourceType::IsFrame(type) ||
ResourceType::IsSharedWorker(type);
}
static bool IsServiceWorkerResourceType(ResourceType::Type type) {
return ResourceType::IsServiceWorker(type);
}
static bool IsFeatureEnabled();
};
}
#endif