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 25 matching lines...) Expand all Loading... |
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: | 40 case SERVICE_WORKER_ERROR_STATE: |
41 return "The ServiceWorker state was not valid"; | 41 return "The ServiceWorker state was not valid"; |
42 case SERVICE_WORKER_ERROR_TIMEOUT: | 42 case SERVICE_WORKER_ERROR_TIMEOUT: |
43 return "The ServiceWorker timed out"; | 43 return "The ServiceWorker timed out"; |
44 case SERVICE_WORKER_ERROR_SCRIPT_EVALUATE_FAILED: | 44 case SERVICE_WORKER_ERROR_SCRIPT_EVALUATE_FAILED: |
45 return "ServiceWorker script evaluation failed"; | 45 return "ServiceWorker script evaluation failed"; |
| 46 case SERVICE_WORKER_ERROR_DISK_CACHE: |
| 47 return "Disk cache error"; |
46 case SERVICE_WORKER_ERROR_MAX_VALUE: | 48 case SERVICE_WORKER_ERROR_MAX_VALUE: |
47 NOTREACHED(); | 49 NOTREACHED(); |
48 } | 50 } |
49 NOTREACHED(); | 51 NOTREACHED(); |
50 return ""; | 52 return ""; |
51 } | 53 } |
52 | 54 |
53 } // namespace content | 55 } // namespace content |
OLD | NEW |