Index: content/common/service_worker/service_worker_utils.h |
diff --git a/content/common/service_worker/service_worker_utils.h b/content/common/service_worker/service_worker_utils.h |
index 1f7473580e4b95cba7551f1862633d54e388a941..8538b5ea304b5ca365b772fb7ecc144308d3baee 100644 |
--- a/content/common/service_worker/service_worker_utils.h |
+++ b/content/common/service_worker/service_worker_utils.h |
@@ -8,6 +8,7 @@ |
#include "base/macros.h" |
#include "content/common/content_export.h" |
#include "content/common/service_worker/service_worker_status_code.h" |
+#include "content/common/service_worker/service_worker_types.h" |
#include "content/public/common/resource_type.h" |
#include "url/gurl.h" |
@@ -38,6 +39,12 @@ class ServiceWorkerUtils { |
static bool ContainsDisallowedCharacter(const GURL& scope, |
const GURL& script_url, |
std::string* error_message); |
+ |
+ // PlzNavigate |
+ // Returns true if the |provider_id| was assigned by the browser process. |
+ static bool IsBrowserAssignedProviderId(int provider_id) { |
+ return provider_id < kInvalidServiceWorkerProviderId; |
+ } |
}; |
class CONTENT_EXPORT LongestScopeMatcher { |