| 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 WebSharedWorkerCreationContextType_h | 5 #ifndef WebSharedWorkerCreationContextType_h |
| 6 #define WebSharedWorkerCreationContextType_h | 6 #define WebSharedWorkerCreationContextType_h |
| 7 | 7 |
| 8 #include "../platform/WebCommon.h" | 8 #include "public/platform/WebCommon.h" |
| 9 | 9 |
| 10 namespace blink { | 10 namespace blink { |
| 11 | 11 |
| 12 // Describes the type of context (secure or non-secure) that created a | 12 // Describes the type of context (secure or non-secure) that created a |
| 13 // SharedWorker. | 13 // SharedWorker. |
| 14 enum WebSharedWorkerCreationContextType { | 14 enum WebSharedWorkerCreationContextType { |
| 15 // The shared worker was created from a nonsecure context. | 15 // The shared worker was created from a nonsecure context. |
| 16 kWebSharedWorkerCreationContextTypeNonsecure = 0, | 16 kWebSharedWorkerCreationContextTypeNonsecure = 0, |
| 17 // The shared worker was created from a secure context. | 17 // The shared worker was created from a secure context. |
| 18 kWebSharedWorkerCreationContextTypeSecure, | 18 kWebSharedWorkerCreationContextTypeSecure, |
| 19 kWebSharedWorkerCreationContextTypeLast = | 19 kWebSharedWorkerCreationContextTypeLast = |
| 20 kWebSharedWorkerCreationContextTypeSecure | 20 kWebSharedWorkerCreationContextTypeSecure |
| 21 }; | 21 }; |
| 22 | 22 |
| 23 } // namespace blink | 23 } // namespace blink |
| 24 | 24 |
| 25 #endif // WebSharedWorkerCreationContextType_h | 25 #endif // WebSharedWorkerCreationContextType_h |
| OLD | NEW |