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 #include "content/common/service_worker/service_worker_status_code.h" | 5 #include "content/common/service_worker/service_worker_status_code.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 | 8 |
9 namespace content { | 9 namespace content { |
10 | 10 |
(...skipping 19 matching lines...) Expand all Loading... |
30 return "ServiceWorker failed to activate"; | 30 return "ServiceWorker failed to activate"; |
31 case SERVICE_WORKER_ERROR_IPC_FAILED: | 31 case SERVICE_WORKER_ERROR_IPC_FAILED: |
32 return "IPC connection was closed or IPC error has occured"; | 32 return "IPC connection was closed or IPC error has occured"; |
33 case SERVICE_WORKER_ERROR_NETWORK: | 33 case SERVICE_WORKER_ERROR_NETWORK: |
34 return "Operation failed by network issue"; | 34 return "Operation failed by network issue"; |
35 case SERVICE_WORKER_ERROR_SECURITY: | 35 case SERVICE_WORKER_ERROR_SECURITY: |
36 return "Operation failed by security issue"; | 36 return "Operation failed by security issue"; |
37 case SERVICE_WORKER_ERROR_EVENT_WAITUNTIL_REJECTED: | 37 case SERVICE_WORKER_ERROR_EVENT_WAITUNTIL_REJECTED: |
38 return "ServiceWorker failed to handle event (event.waitUntil " | 38 return "ServiceWorker failed to handle event (event.waitUntil " |
39 "Promise rejected)"; | 39 "Promise rejected)"; |
| 40 case SERVICE_WORKER_ERROR_STATE: |
| 41 return "The ServiceWorker state was not valid"; |
40 } | 42 } |
41 NOTREACHED(); | 43 NOTREACHED(); |
42 return ""; | 44 return ""; |
43 } | 45 } |
44 | 46 |
45 } // namespace content | 47 } // namespace content |
OLD | NEW |