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

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

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 #include "content/common/service_worker/service_worker_status_code.h" 5 #include "content/common/service_worker/service_worker_status_code.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 8
9 namespace content { 9 namespace content {
10 10
(...skipping 21 matching lines...) Expand all
32 return "IPC connection was closed or IPC error has occured"; 32 return "IPC connection was closed or IPC error has occured";
33 case SERVICE_WORKER_ERROR_NETWORK: 33 case SERVICE_WORKER_ERROR_NETWORK:
34 return "Operation failed by network issue"; 34 return "Operation failed by network issue";
35 case SERVICE_WORKER_ERROR_SECURITY: 35 case SERVICE_WORKER_ERROR_SECURITY:
36 return "Operation failed by security issue"; 36 return "Operation failed by security issue";
37 case SERVICE_WORKER_ERROR_EVENT_WAITUNTIL_REJECTED: 37 case SERVICE_WORKER_ERROR_EVENT_WAITUNTIL_REJECTED:
38 return "ServiceWorker failed to handle event (event.waitUntil " 38 return "ServiceWorker failed to handle event (event.waitUntil "
39 "Promise rejected)"; 39 "Promise rejected)";
40 case SERVICE_WORKER_ERROR_STATE: 40 case SERVICE_WORKER_ERROR_STATE:
41 return "The ServiceWorker state was not valid"; 41 return "The ServiceWorker state was not valid";
42 case SERVICE_WORKER_ERROR_TIMEOUT:
43 return "The ServiceWorker timed out.";
kinuko 2015/03/02 03:19:33 nit: not remember why, but it looks we don't seem
falken 2015/03/02 04:19:17 to minimize patch, removed the period
44 case SERVICE_WORKER_ERROR_MAX_VALUE:
45 NOTREACHED();
42 } 46 }
43 NOTREACHED(); 47 NOTREACHED();
44 return ""; 48 return "";
45 } 49 }
46 50
47 } // namespace content 51 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698