| 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_COMMON_SERVICE_WORKER_SERVICE_WORKER_STATUS_CODE_H_ | 5 #ifndef CONTENT_COMMON_SERVICE_WORKER_SERVICE_WORKER_STATUS_CODE_H_ |
| 6 #define CONTENT_COMMON_SERVICE_WORKER_SERVICE_WORKER_STATUS_CODE_H_ | 6 #define CONTENT_COMMON_SERVICE_WORKER_SERVICE_WORKER_STATUS_CODE_H_ |
| 7 | 7 |
| 8 #include "content/common/content_export.h" | 8 #include "content/common/content_export.h" |
| 9 | 9 |
| 10 namespace content { | 10 namespace content { |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 SERVICE_WORKER_ERROR_IPC_FAILED, | 44 SERVICE_WORKER_ERROR_IPC_FAILED, |
| 45 | 45 |
| 46 // Operation is failed by network issue. | 46 // Operation is failed by network issue. |
| 47 SERVICE_WORKER_ERROR_NETWORK, | 47 SERVICE_WORKER_ERROR_NETWORK, |
| 48 | 48 |
| 49 // Operation is failed by security issue. | 49 // Operation is failed by security issue. |
| 50 SERVICE_WORKER_ERROR_SECURITY, | 50 SERVICE_WORKER_ERROR_SECURITY, |
| 51 | 51 |
| 52 // Event handling failed (event.waitUntil Promise rejected). | 52 // Event handling failed (event.waitUntil Promise rejected). |
| 53 SERVICE_WORKER_ERROR_EVENT_WAITUNTIL_REJECTED, | 53 SERVICE_WORKER_ERROR_EVENT_WAITUNTIL_REJECTED, |
| 54 |
| 55 // An error triggered by invalid worker state. |
| 56 SERVICE_WORKER_ERROR_STATE, |
| 54 }; | 57 }; |
| 55 | 58 |
| 56 CONTENT_EXPORT const char* ServiceWorkerStatusToString( | 59 CONTENT_EXPORT const char* ServiceWorkerStatusToString( |
| 57 ServiceWorkerStatusCode code); | 60 ServiceWorkerStatusCode code); |
| 58 | 61 |
| 59 } // namespace content | 62 } // namespace content |
| 60 | 63 |
| 61 #endif // CONTENT_COMMON_SERVICE_WORKER_SERVICE_WORKER_STATUS_CODE_H_ | 64 #endif // CONTENT_COMMON_SERVICE_WORKER_SERVICE_WORKER_STATUS_CODE_H_ |
| OLD | NEW |