| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 case WebServiceWorkerError::ErrorTypeNotFound: | 66 case WebServiceWorkerError::ErrorTypeNotFound: |
| 67 return createException(NotFoundError, "The specified Service Worker reso
urce was not found.", webError.message); | 67 return createException(NotFoundError, "The specified Service Worker reso
urce was not found.", webError.message); |
| 68 case WebServiceWorkerError::ErrorTypeSecurity: | 68 case WebServiceWorkerError::ErrorTypeSecurity: |
| 69 return createException(SecurityError, "The Service Worker security polic
y prevented an action.", webError.message); | 69 return createException(SecurityError, "The Service Worker security polic
y prevented an action.", webError.message); |
| 70 case WebServiceWorkerError::ErrorTypeState: | 70 case WebServiceWorkerError::ErrorTypeState: |
| 71 return createException(InvalidStateError, "The Service Worker state was
not valid.", webError.message); | 71 return createException(InvalidStateError, "The Service Worker state was
not valid.", webError.message); |
| 72 case WebServiceWorkerError::ErrorTypeTimeout: | 72 case WebServiceWorkerError::ErrorTypeTimeout: |
| 73 return createException(AbortError, "The Service Worker operation timed o
ut.", webError.message); | 73 return createException(AbortError, "The Service Worker operation timed o
ut.", webError.message); |
| 74 case WebServiceWorkerError::ErrorTypeUnknown: | 74 case WebServiceWorkerError::ErrorTypeUnknown: |
| 75 return createException(UnknownError, "An unknown error occurred within S
ervice Worker.", webError.message); | 75 return createException(UnknownError, "An unknown error occurred within S
ervice Worker.", webError.message); |
| 76 case WebServiceWorkerError::ErrorTypeType: |
| 77 // ErrorTypeType should have been handled before reaching this point. |
| 78 ASSERT_NOT_REACHED(); |
| 79 return DOMException::create(UnknownError); |
| 76 } | 80 } |
| 77 ASSERT_NOT_REACHED(); | 81 ASSERT_NOT_REACHED(); |
| 78 return DOMException::create(UnknownError); | 82 return DOMException::create(UnknownError); |
| 79 } | 83 } |
| 80 | 84 |
| 81 } // namespace blink | 85 } // namespace blink |
| OLD | NEW |