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

Unified Diff: content/common/service_worker/service_worker_status_code.h

Issue 962543005: Service Worker: Add metrics and timeout for starting a Service Worker. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: self-review Created 5 years, 10 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/common/service_worker/service_worker_status_code.h
diff --git a/content/common/service_worker/service_worker_status_code.h b/content/common/service_worker/service_worker_status_code.h
index 1e9cdd51a6caccbe555fed48e4ee0d4a119808fc..818c6d8343760cb2150fbaa5e2b4e246e908be94 100644
--- a/content/common/service_worker/service_worker_status_code.h
+++ b/content/common/service_worker/service_worker_status_code.h
@@ -54,6 +54,11 @@ enum ServiceWorkerStatusCode {
// An error triggered by invalid worker state.
SERVICE_WORKER_ERROR_STATE,
+
+ // The Service Worker took too long to finish a task.
+ SERVICE_WORKER_ERROR_TIMEOUT,
+
+ SERVICE_WORKER_ERROR_MAX_VALUE
};
CONTENT_EXPORT const char* ServiceWorkerStatusToString(

Powered by Google App Engine
This is Rietveld 408576698