| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/browser/service_worker/service_worker_registration_status.h" | 5 #include "content/browser/service_worker/service_worker_registration_status.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/strings/utf_string_conversions.h" | 8 #include "base/strings/utf_string_conversions.h" |
| 9 | 9 |
| 10 namespace content { | 10 namespace content { |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 case SERVICE_WORKER_ERROR_START_WORKER_FAILED: | 25 case SERVICE_WORKER_ERROR_START_WORKER_FAILED: |
| 26 case SERVICE_WORKER_ERROR_INSTALL_WORKER_FAILED: | 26 case SERVICE_WORKER_ERROR_INSTALL_WORKER_FAILED: |
| 27 *error_type = WebServiceWorkerError::InstallError; | 27 *error_type = WebServiceWorkerError::InstallError; |
| 28 return; | 28 return; |
| 29 | 29 |
| 30 case SERVICE_WORKER_ERROR_ACTIVATE_WORKER_FAILED: | 30 case SERVICE_WORKER_ERROR_ACTIVATE_WORKER_FAILED: |
| 31 *error_type = WebServiceWorkerError::ActivateError; | 31 *error_type = WebServiceWorkerError::ActivateError; |
| 32 return; | 32 return; |
| 33 | 33 |
| 34 case SERVICE_WORKER_ERROR_ABORT: | 34 case SERVICE_WORKER_ERROR_ABORT: |
| 35 case SERVICE_WORKER_ERROR_IPC_FAILED: |
| 35 case SERVICE_WORKER_ERROR_FAILED: | 36 case SERVICE_WORKER_ERROR_FAILED: |
| 36 case SERVICE_WORKER_ERROR_PROCESS_NOT_FOUND: | 37 case SERVICE_WORKER_ERROR_PROCESS_NOT_FOUND: |
| 37 // Unexpected, or should bail out before calling this, or we don't | 38 // Unexpected, or should bail out before calling this, or we don't |
| 38 // have a corresponding blink error code yet. | 39 // have a corresponding blink error code yet. |
| 39 break; // Fall through to NOTREACHED(). | 40 break; // Fall through to NOTREACHED(). |
| 40 } | 41 } |
| 41 NOTREACHED() << "Got unexpected error code: " | 42 NOTREACHED() << "Got unexpected error code: " |
| 42 << status << " " << ServiceWorkerStatusToString(status); | 43 << status << " " << ServiceWorkerStatusToString(status); |
| 43 } | 44 } |
| 44 | 45 |
| 45 } // namespace content | 46 } // namespace content |
| OLD | NEW |