| 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 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 REQUEST_JOB_ERROR_FETCH_EVENT_DISPATCH, | 57 REQUEST_JOB_ERROR_FETCH_EVENT_DISPATCH, |
| 58 REQUEST_JOB_ERROR_BLOB_READ, | 58 REQUEST_JOB_ERROR_BLOB_READ, |
| 59 REQUEST_JOB_ERROR_STREAM_ABORTED, | 59 REQUEST_JOB_ERROR_STREAM_ABORTED, |
| 60 REQUEST_JOB_ERROR_KILLED, | 60 REQUEST_JOB_ERROR_KILLED, |
| 61 REQUEST_JOB_ERROR_KILLED_WITH_BLOB, | 61 REQUEST_JOB_ERROR_KILLED_WITH_BLOB, |
| 62 REQUEST_JOB_ERROR_KILLED_WITH_STREAM, | 62 REQUEST_JOB_ERROR_KILLED_WITH_STREAM, |
| 63 REQUEST_JOB_ERROR_DESTROYED, | 63 REQUEST_JOB_ERROR_DESTROYED, |
| 64 REQUEST_JOB_ERROR_DESTROYED_WITH_BLOB, | 64 REQUEST_JOB_ERROR_DESTROYED_WITH_BLOB, |
| 65 REQUEST_JOB_ERROR_DESTROYED_WITH_STREAM, | 65 REQUEST_JOB_ERROR_DESTROYED_WITH_STREAM, |
| 66 REQUEST_JOB_ERROR_BAD_DELEGATE, | 66 REQUEST_JOB_ERROR_BAD_DELEGATE, |
| 67 REQUEST_JOB_ERROR_REQUEST_BODY_BLOB_FAILED, |
| 67 NUM_REQUEST_JOB_RESULT_TYPES, | 68 NUM_REQUEST_JOB_RESULT_TYPES, |
| 68 }; | 69 }; |
| 69 | 70 |
| 70 // Used for UMA. Append-only. | 71 // Used for UMA. Append-only. |
| 71 enum class StopStatus { | 72 enum class StopStatus { |
| 72 NORMAL, | 73 NORMAL, |
| 73 DETACH_BY_REGISTRY, | 74 DETACH_BY_REGISTRY, |
| 74 TIMEOUT, | 75 TIMEOUT, |
| 75 // Add new types here. | 76 // Add new types here. |
| 76 NUM_TYPES | 77 NUM_TYPES |
| (...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 220 static void RecordStartStatusAfterFailure(int failure_count, | 221 static void RecordStartStatusAfterFailure(int failure_count, |
| 221 ServiceWorkerStatusCode status); | 222 ServiceWorkerStatusCode status); |
| 222 | 223 |
| 223 private: | 224 private: |
| 224 DISALLOW_IMPLICIT_CONSTRUCTORS(ServiceWorkerMetrics); | 225 DISALLOW_IMPLICIT_CONSTRUCTORS(ServiceWorkerMetrics); |
| 225 }; | 226 }; |
| 226 | 227 |
| 227 } // namespace content | 228 } // namespace content |
| 228 | 229 |
| 229 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_METRICS_H_ | 230 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_METRICS_H_ |
| OLD | NEW |