| 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 case SERVICE_WORKER_ERROR_ABORT: | 52 case SERVICE_WORKER_ERROR_ABORT: |
| 53 *error_type = WebServiceWorkerError::ErrorTypeAbort; | 53 *error_type = WebServiceWorkerError::ErrorTypeAbort; |
| 54 return; | 54 return; |
| 55 | 55 |
| 56 case SERVICE_WORKER_ERROR_ACTIVATE_WORKER_FAILED: | 56 case SERVICE_WORKER_ERROR_ACTIVATE_WORKER_FAILED: |
| 57 case SERVICE_WORKER_ERROR_IPC_FAILED: | 57 case SERVICE_WORKER_ERROR_IPC_FAILED: |
| 58 case SERVICE_WORKER_ERROR_FAILED: | 58 case SERVICE_WORKER_ERROR_FAILED: |
| 59 case SERVICE_WORKER_ERROR_EXISTS: | 59 case SERVICE_WORKER_ERROR_EXISTS: |
| 60 case SERVICE_WORKER_ERROR_EVENT_WAITUNTIL_REJECTED: | 60 case SERVICE_WORKER_ERROR_EVENT_WAITUNTIL_REJECTED: |
| 61 case SERVICE_WORKER_ERROR_STATE: | 61 case SERVICE_WORKER_ERROR_STATE: |
| 62 case SERVICE_WORKER_ERROR_DISK_CACHE: |
| 62 case SERVICE_WORKER_ERROR_MAX_VALUE: | 63 case SERVICE_WORKER_ERROR_MAX_VALUE: |
| 63 // Unexpected, or should have bailed out before calling this, or we don't | 64 // Unexpected, or should have bailed out before calling this, or we don't |
| 64 // have a corresponding blink error code yet. | 65 // have a corresponding blink error code yet. |
| 65 break; // Fall through to NOTREACHED(). | 66 break; // Fall through to NOTREACHED(). |
| 66 } | 67 } |
| 67 NOTREACHED() << "Got unexpected error code: " | 68 NOTREACHED() << "Got unexpected error code: " |
| 68 << status << " " << ServiceWorkerStatusToString(status); | 69 << status << " " << ServiceWorkerStatusToString(status); |
| 69 } | 70 } |
| 70 | 71 |
| 71 } // namespace content | 72 } // namespace content |
| OLD | NEW |