| 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 14 matching lines...) Expand all Loading... |
| 25 SERVICE_WORKER_ERROR_START_WORKER_FAILED, | 25 SERVICE_WORKER_ERROR_START_WORKER_FAILED, |
| 26 | 26 |
| 27 // Could not find a renderer process to run a service worker. | 27 // Could not find a renderer process to run a service worker. |
| 28 SERVICE_WORKER_ERROR_PROCESS_NOT_FOUND, | 28 SERVICE_WORKER_ERROR_PROCESS_NOT_FOUND, |
| 29 | 29 |
| 30 // Install event handling failed. | 30 // Install event handling failed. |
| 31 SERVICE_WORKER_ERROR_INSTALL_WORKER_FAILED, | 31 SERVICE_WORKER_ERROR_INSTALL_WORKER_FAILED, |
| 32 | 32 |
| 33 // Activate event handling failed. | 33 // Activate event handling failed. |
| 34 SERVICE_WORKER_ERROR_ACTIVATE_WORKER_FAILED, | 34 SERVICE_WORKER_ERROR_ACTIVATE_WORKER_FAILED, |
| 35 |
| 36 // Sending an IPC to the worker failed (often due to child process is |
| 37 // terminated). |
| 38 SERVICE_WORKER_ERROR_IPC_FAILED, |
| 35 }; | 39 }; |
| 36 | 40 |
| 37 CONTENT_EXPORT const char* ServiceWorkerStatusToString( | 41 CONTENT_EXPORT const char* ServiceWorkerStatusToString( |
| 38 ServiceWorkerStatusCode code); | 42 ServiceWorkerStatusCode code); |
| 39 | 43 |
| 40 } // namespace content | 44 } // namespace content |
| 41 | 45 |
| 42 #endif // CONTENT_COMMON_SERVICE_WORKER_SERVICE_WORKER_STATUS_CODE_H_ | 46 #endif // CONTENT_COMMON_SERVICE_WORKER_SERVICE_WORKER_STATUS_CODE_H_ |
| OLD | NEW |