| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_METRICS_H_ | 5 #ifndef CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_METRICS_H_ |
| 6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_METRICS_H_ | 6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_METRICS_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <map> | 9 #include <map> |
| 10 #include <set> | 10 #include <set> |
| (...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 347 EmbeddedWorkerStatus initial_worker_status, | 347 EmbeddedWorkerStatus initial_worker_status, |
| 348 StartSituation start_situation); | 348 StartSituation start_situation); |
| 349 | 349 |
| 350 // Records the result of trying to handle a request for a service worker | 350 // Records the result of trying to handle a request for a service worker |
| 351 // script. | 351 // script. |
| 352 static void RecordContextRequestHandlerStatus( | 352 static void RecordContextRequestHandlerStatus( |
| 353 ServiceWorkerContextRequestHandler::CreateJobStatus status, | 353 ServiceWorkerContextRequestHandler::CreateJobStatus status, |
| 354 bool is_installed, | 354 bool is_installed, |
| 355 bool is_main_script); | 355 bool is_main_script); |
| 356 | 356 |
| 357 static void RecordRuntime(base::TimeDelta time); |
| 358 |
| 357 private: | 359 private: |
| 358 DISALLOW_IMPLICIT_CONSTRUCTORS(ServiceWorkerMetrics); | 360 DISALLOW_IMPLICIT_CONSTRUCTORS(ServiceWorkerMetrics); |
| 359 }; | 361 }; |
| 360 | 362 |
| 361 } // namespace content | 363 } // namespace content |
| 362 | 364 |
| 363 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_METRICS_H_ | 365 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_METRICS_H_ |
| OLD | NEW |