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

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

Issue 147593006: Refine error code returned by ServiceWorkerVersion::StartWorker (e.g. PROCESS_NOT_FOUND etc) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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 | Annotate | Revision Log
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 14 matching lines...) Expand all
25 SERVICE_WORKER_ERROR_START_WORKER_FAILED, 25 SERVICE_WORKER_ERROR_START_WORKER_FAILED,
26 26
27 // Could not find a renderer process to run a service worker. 27 // Could not find a renderer process to run a service worker.
28 SERVICE_WORKER_ERROR_PROCESS_NOT_FOUND, 28 SERVICE_WORKER_ERROR_PROCESS_NOT_FOUND,
29 29
30 // Install event handling failed. 30 // Install event handling failed.
31 SERVICE_WORKER_ERROR_INSTALL_WORKER_FAILED, 31 SERVICE_WORKER_ERROR_INSTALL_WORKER_FAILED,
32 32
33 // Activate event handling failed. 33 // Activate event handling failed.
34 SERVICE_WORKER_ERROR_ACTIVATE_WORKER_FAILED, 34 SERVICE_WORKER_ERROR_ACTIVATE_WORKER_FAILED,
35
36 // Sending an IPC to the worker failed (often due to child process is
37 // terminated).
38 SERVICE_WORKER_ERROR_IPC_FAILED,
35 }; 39 };
36 40
37 CONTENT_EXPORT const char* ServiceWorkerStatusToString( 41 CONTENT_EXPORT const char* ServiceWorkerStatusToString(
38 ServiceWorkerStatusCode code); 42 ServiceWorkerStatusCode code);
39 43
40 } // namespace content 44 } // namespace content
41 45
42 #endif // CONTENT_COMMON_SERVICE_WORKER_SERVICE_WORKER_STATUS_CODE_H_ 46 #endif // CONTENT_COMMON_SERVICE_WORKER_SERVICE_WORKER_STATUS_CODE_H_
OLDNEW
« no previous file with comments | « content/browser/service_worker/service_worker_version.cc ('k') | content/common/service_worker/service_worker_status_code.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698