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

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

Issue 962543005: Service Worker: Add metrics and timeout for starting a Service Worker. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: self-review Created 5 years, 9 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 SERVICE_WORKER_ERROR_NETWORK, 47 SERVICE_WORKER_ERROR_NETWORK,
48 48
49 // Operation is failed by security issue. 49 // Operation is failed by security issue.
50 SERVICE_WORKER_ERROR_SECURITY, 50 SERVICE_WORKER_ERROR_SECURITY,
51 51
52 // Event handling failed (event.waitUntil Promise rejected). 52 // Event handling failed (event.waitUntil Promise rejected).
53 SERVICE_WORKER_ERROR_EVENT_WAITUNTIL_REJECTED, 53 SERVICE_WORKER_ERROR_EVENT_WAITUNTIL_REJECTED,
54 54
55 // An error triggered by invalid worker state. 55 // An error triggered by invalid worker state.
56 SERVICE_WORKER_ERROR_STATE, 56 SERVICE_WORKER_ERROR_STATE,
57
58 // The Service Worker took too long to finish a task.
59 SERVICE_WORKER_ERROR_TIMEOUT,
60
61 SERVICE_WORKER_ERROR_MAX_VALUE
57 }; 62 };
58 63
59 CONTENT_EXPORT const char* ServiceWorkerStatusToString( 64 CONTENT_EXPORT const char* ServiceWorkerStatusToString(
60 ServiceWorkerStatusCode code); 65 ServiceWorkerStatusCode code);
61 66
62 } // namespace content 67 } // namespace content
63 68
64 #endif // CONTENT_COMMON_SERVICE_WORKER_SERVICE_WORKER_STATUS_CODE_H_ 69 #endif // CONTENT_COMMON_SERVICE_WORKER_SERVICE_WORKER_STATUS_CODE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698