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

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

Issue 1063823005: Service Worker: Use more specific errors when StartWorker fails (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 53
54 // Event handling failed (event.waitUntil Promise rejected). 54 // Event handling failed (event.waitUntil Promise rejected).
55 SERVICE_WORKER_ERROR_EVENT_WAITUNTIL_REJECTED, 55 SERVICE_WORKER_ERROR_EVENT_WAITUNTIL_REJECTED,
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.
64 SERVICE_WORKER_ERROR_SCRIPT_EVALUATE_FAILED,
nhiroki 2015/04/15 06:46:02 Probably you need to update histograms.xml.
falken 2015/04/15 06:54:36 Great point... done
65
63 SERVICE_WORKER_ERROR_MAX_VALUE 66 SERVICE_WORKER_ERROR_MAX_VALUE
64 }; 67 };
65 68
66 CONTENT_EXPORT const char* ServiceWorkerStatusToString( 69 CONTENT_EXPORT const char* ServiceWorkerStatusToString(
67 ServiceWorkerStatusCode code); 70 ServiceWorkerStatusCode code);
68 71
69 } // namespace content 72 } // namespace content
70 73
71 #endif // CONTENT_COMMON_SERVICE_WORKER_SERVICE_WORKER_STATUS_CODE_H_ 74 #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