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 { |
11 | 11 |
12 // Generic service worker operation statuses. | 12 // Generic service worker operation statuses. |
13 enum ServiceWorkerStatusCode { | 13 enum CONTENT_EXPORT ServiceWorkerStatusCode { |
14 // Operation succeeded. | 14 // Operation succeeded. |
15 SERVICE_WORKER_OK, | 15 SERVICE_WORKER_OK, |
16 | 16 |
17 // Generic operation error (more specific error code should be used in | 17 // Generic operation error (more specific error code should be used in |
18 // general). | 18 // general). |
19 SERVICE_WORKER_ERROR_FAILED, | 19 SERVICE_WORKER_ERROR_FAILED, |
20 | 20 |
21 // Operation was aborted (e.g. due to context or child process shutdown). | 21 // Operation was aborted (e.g. due to context or child process shutdown). |
22 SERVICE_WORKER_ERROR_ABORT, | 22 SERVICE_WORKER_ERROR_ABORT, |
23 | 23 |
(...skipping 19 matching lines...) Expand all Loading... |
43 // terminated). | 43 // terminated). |
44 SERVICE_WORKER_ERROR_IPC_FAILED, | 44 SERVICE_WORKER_ERROR_IPC_FAILED, |
45 }; | 45 }; |
46 | 46 |
47 CONTENT_EXPORT const char* ServiceWorkerStatusToString( | 47 CONTENT_EXPORT const char* ServiceWorkerStatusToString( |
48 ServiceWorkerStatusCode code); | 48 ServiceWorkerStatusCode code); |
49 | 49 |
50 } // namespace content | 50 } // namespace content |
51 | 51 |
52 #endif // CONTENT_COMMON_SERVICE_WORKER_SERVICE_WORKER_STATUS_CODE_H_ | 52 #endif // CONTENT_COMMON_SERVICE_WORKER_SERVICE_WORKER_STATUS_CODE_H_ |
OLD | NEW |