| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be found | 2 // Use of this source code is governed by a BSD-style license that can be found |
| 3 // in the LICENSE file. | 3 // in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef WebSharedWorkerCreationErrors_h | 5 #ifndef WebSharedWorkerCreationErrors_h |
| 6 #define WebSharedWorkerCreationErrors_h | 6 #define WebSharedWorkerCreationErrors_h |
| 7 | 7 |
| 8 #include "../platform/WebCommon.h" | 8 #include "../platform/WebCommon.h" |
| 9 | 9 |
| 10 namespace blink { | 10 namespace blink { |
| 11 | 11 |
| 12 // Describes errors that can occur while creating a SharedWorker. | 12 // Describes errors that can occur while creating a SharedWorker. |
| 13 enum WebWorkerCreationError { | 13 enum WebWorkerCreationError { |
| 14 WebWorkerCreationErrorNone = 0, | 14 WebWorkerCreationErrorNone = 0, |
| 15 WebWorkerCreationErrorURLMismatch, | |
| 16 WebWorkerCreationErrorSecureContextMismatch, | 15 WebWorkerCreationErrorSecureContextMismatch, |
| 17 WebWorkerCreationErrorLast = WebWorkerCreationErrorSecureContextMismatch | 16 WebWorkerCreationErrorLast = WebWorkerCreationErrorSecureContextMismatch |
| 18 }; | 17 }; |
| 19 | 18 |
| 20 } // namespace blink | 19 } // namespace blink |
| 21 | 20 |
| 22 #endif // WebSharedWorkerCreationErrors_h | 21 #endif // WebSharedWorkerCreationErrors_h |
| OLD | NEW |