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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 | 56 |
57 // An error triggered by invalid worker state. | 57 // An error triggered by invalid worker state. |
58 SERVICE_WORKER_ERROR_STATE, | 58 SERVICE_WORKER_ERROR_STATE, |
59 | 59 |
60 // The Service Worker took too long to finish a task. | 60 // The Service Worker took too long to finish a task. |
61 SERVICE_WORKER_ERROR_TIMEOUT, | 61 SERVICE_WORKER_ERROR_TIMEOUT, |
62 | 62 |
63 // An error occurred during initial script evaluation. | 63 // An error occurred during initial script evaluation. |
64 SERVICE_WORKER_ERROR_SCRIPT_EVALUATE_FAILED, | 64 SERVICE_WORKER_ERROR_SCRIPT_EVALUATE_FAILED, |
65 | 65 |
| 66 // Generic error to indicate failure to read/write the disk cache. |
| 67 SERVICE_WORKER_ERROR_DISK_CACHE, |
| 68 |
66 SERVICE_WORKER_ERROR_MAX_VALUE | 69 SERVICE_WORKER_ERROR_MAX_VALUE |
67 }; | 70 }; |
68 | 71 |
69 CONTENT_EXPORT const char* ServiceWorkerStatusToString( | 72 CONTENT_EXPORT const char* ServiceWorkerStatusToString( |
70 ServiceWorkerStatusCode code); | 73 ServiceWorkerStatusCode code); |
71 | 74 |
72 } // namespace content | 75 } // namespace content |
73 | 76 |
74 #endif // CONTENT_COMMON_SERVICE_WORKER_SERVICE_WORKER_STATUS_CODE_H_ | 77 #endif // CONTENT_COMMON_SERVICE_WORKER_SERVICE_WORKER_STATUS_CODE_H_ |
OLD | NEW |