| Index: content/common/service_worker/service_worker_status_code.cc | 
| diff --git a/content/common/service_worker/service_worker_status_code.cc b/content/common/service_worker/service_worker_status_code.cc | 
| new file mode 100644 | 
| index 0000000000000000000000000000000000000000..1e6eb4c911d8ed07eadc452a127f6ae033117f02 | 
| --- /dev/null | 
| +++ b/content/common/service_worker/service_worker_status_code.cc | 
| @@ -0,0 +1,32 @@ | 
| +// Copyright 2014 The Chromium Authors. All rights reserved. | 
| +// Use of this source code is governed by a BSD-style license that can be | 
| +// found in the LICENSE file. | 
| + | 
| +#include "content/common/service_worker/service_worker_status_code.h" | 
| + | 
| +#include "base/logging.h" | 
| + | 
| +namespace content { | 
| + | 
| +const char* ServiceWorkerStatusToString(ServiceWorkerStatusCode status) { | 
| +  switch (status) { | 
| +    case SERVICE_WORKER_OK: | 
| +      return "Operation has succeeded"; | 
| +    case SERVICE_WORKER_ERROR_FAILED: | 
| +      return "Operation has failed (unknown reason)"; | 
| +    case SERVICE_WORKER_ERROR_ABORT: | 
| +      return "Operation has been aborted"; | 
| +    case SERVICE_WORKER_ERROR_PROCESS_NOT_FOUND: | 
| +      return "Could not find a renderer process to run a service worker"; | 
| +    case SERVICE_WORKER_ERROR_START_WORKER_FAILED: | 
| +      return "ServiceWorker cannot be started"; | 
| +    case SERVICE_WORKER_ERROR_INSTALL_WORKER_FAILED: | 
| +      return "ServiceWorker failed to install"; | 
| +    case SERVICE_WORKER_ERROR_ACTIVATE_WORKER_FAILED: | 
| +      return "ServiceWorker failed to activate"; | 
| +  } | 
| +  NOTREACHED(); | 
| +  return ""; | 
| +} | 
| + | 
| +}  // namespace content | 
|  |