Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(212)

Side by Side Diff: content/common/service_worker/service_worker_status_code.h

Issue 567903002: ServiceWorker: Change worker script fetch error code(2/3). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase & fix typo Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 24 matching lines...) Expand all
35 35
36 // Install event handling failed. 36 // Install event handling failed.
37 SERVICE_WORKER_ERROR_INSTALL_WORKER_FAILED, 37 SERVICE_WORKER_ERROR_INSTALL_WORKER_FAILED,
38 38
39 // Activate event handling failed. 39 // Activate event handling failed.
40 SERVICE_WORKER_ERROR_ACTIVATE_WORKER_FAILED, 40 SERVICE_WORKER_ERROR_ACTIVATE_WORKER_FAILED,
41 41
42 // Sending an IPC to the worker failed (often due to child process is 42 // Sending an IPC to the worker failed (often due to child process is
43 // terminated). 43 // terminated).
44 SERVICE_WORKER_ERROR_IPC_FAILED, 44 SERVICE_WORKER_ERROR_IPC_FAILED,
45
46 // Operation is failed by network issue.
47 SERVICE_WORKER_ERROR_NETWORK,
48
49 // Operation is failed by security issue.
50 SERVICE_WORKER_ERROR_SECURITY,
45 }; 51 };
46 52
47 CONTENT_EXPORT const char* ServiceWorkerStatusToString( 53 CONTENT_EXPORT const char* ServiceWorkerStatusToString(
48 ServiceWorkerStatusCode code); 54 ServiceWorkerStatusCode code);
49 55
50 } // namespace content 56 } // namespace content
51 57
52 #endif // CONTENT_COMMON_SERVICE_WORKER_SERVICE_WORKER_STATUS_CODE_H_ 58 #endif // CONTENT_COMMON_SERVICE_WORKER_SERVICE_WORKER_STATUS_CODE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698