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

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

Issue 287843002: ServiceWorker: DB functions should return status code instead of boolean (2) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 7 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
« no previous file with comments | « content/common/service_worker/service_worker_status_code.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 12 matching lines...) Expand all
23 case SERVICE_WORKER_ERROR_EXISTS: 23 case SERVICE_WORKER_ERROR_EXISTS:
24 return "Already exists"; 24 return "Already exists";
25 case SERVICE_WORKER_ERROR_START_WORKER_FAILED: 25 case SERVICE_WORKER_ERROR_START_WORKER_FAILED:
26 return "ServiceWorker cannot be started"; 26 return "ServiceWorker cannot be started";
27 case SERVICE_WORKER_ERROR_INSTALL_WORKER_FAILED: 27 case SERVICE_WORKER_ERROR_INSTALL_WORKER_FAILED:
28 return "ServiceWorker failed to install"; 28 return "ServiceWorker failed to install";
29 case SERVICE_WORKER_ERROR_ACTIVATE_WORKER_FAILED: 29 case SERVICE_WORKER_ERROR_ACTIVATE_WORKER_FAILED:
30 return "ServiceWorker failed to activate"; 30 return "ServiceWorker failed to activate";
31 case SERVICE_WORKER_ERROR_IPC_FAILED: 31 case SERVICE_WORKER_ERROR_IPC_FAILED:
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_DB_CORRUPTED:
34 return "Database has been corrupted";
35 } 33 }
36 NOTREACHED(); 34 NOTREACHED();
37 return ""; 35 return "";
38 } 36 }
39 37
40 } // namespace content 38 } // namespace content
OLDNEW
« no previous file with comments | « content/common/service_worker/service_worker_status_code.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698