| Index: content/browser/service_worker/service_worker_utils.h
|
| diff --git a/content/browser/service_worker/service_worker_utils.h b/content/browser/service_worker/service_worker_utils.h
|
| index 60ce5ce755156bc6df75b5d430527b5c5fce8921..81d6c44f17c952804349993edaca042ce804a175 100644
|
| --- a/content/browser/service_worker/service_worker_utils.h
|
| +++ b/content/browser/service_worker/service_worker_utils.h
|
| @@ -5,23 +5,18 @@
|
| #ifndef CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_UTILS_H_
|
| #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_UTILS_H_
|
|
|
| +#include "base/macros.h"
|
| #include "content/common/content_export.h"
|
| #include "content/common/service_worker/service_worker_status_code.h"
|
| #include "content/public/common/resource_type.h"
|
| -
|
| -class GURL;
|
| +#include "url/gurl.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 IsMainResourceType(ResourceType type) {
|
| + return IsResourceTypeFrame(type) || type == RESOURCE_TYPE_SHARED_WORKER;
|
| }
|
|
|
| // A helper for creating a do-nothing status callback.
|
|
|