Index: content/browser/service_worker/service_worker_metrics.h |
diff --git a/content/browser/service_worker/service_worker_metrics.h b/content/browser/service_worker/service_worker_metrics.h |
index aca36c9e351e3bebeceacdef260a0b22e1c7df25..9be6cdb4a5147ff15ca6a9d2c40d4e7da42ee362 100644 |
--- a/content/browser/service_worker/service_worker_metrics.h |
+++ b/content/browser/service_worker/service_worker_metrics.h |
@@ -16,6 +16,8 @@ class GURL; |
namespace content { |
+enum class EmbeddedWorkerStatus; |
+ |
class ServiceWorkerMetrics { |
public: |
// Used for UMA. Append-only. |
@@ -161,6 +163,13 @@ class ServiceWorkerMetrics { |
StartSituation start_situation, |
EventType purpose); |
+ // Records the time taken to prepare an activated Service Worker for a main |
+ // frame fetch. |
+ static void RecordActivatedWorkerPreparationTimeForMainFrame( |
+ base::TimeDelta time, |
+ EmbeddedWorkerStatus initial_worker_status, |
+ StartSituation start_situation); |
+ |
// Records the result of trying to stop a worker. |
static void RecordWorkerStopped(StopStatus status); |