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

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: add comment 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..2a9f0edfb6564afd7dcfe63918feeb87878316c1 100644
--- a/content/common/service_worker/service_worker_status_code.h
+++ b/content/common/service_worker/service_worker_status_code.h
@@ -10,6 +10,8 @@
namespace content {
// Generic service worker operation statuses.
+// This enum is used in UMA histograms, so don't change the order or remove
+// entries.
enum ServiceWorkerStatusCode {
// Operation succeeded.
SERVICE_WORKER_OK,
@@ -54,6 +56,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