| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. | 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. |
| 3 * Copyright (C) 2012 Google Inc. All Rights Reserved. | 3 * Copyright (C) 2012 Google Inc. All Rights Reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 // Used to specify whether |isSecureContext| should walk the | 66 // Used to specify whether |isSecureContext| should walk the |
| 67 // ancestor tree to decide whether to restrict usage of a powerful | 67 // ancestor tree to decide whether to restrict usage of a powerful |
| 68 // feature. | 68 // feature. |
| 69 enum SecureContextCheck { | 69 enum SecureContextCheck { |
| 70 StandardSecureContextCheck, | 70 StandardSecureContextCheck, |
| 71 WebCryptoSecureContextCheck | 71 WebCryptoSecureContextCheck |
| 72 }; | 72 }; |
| 73 | 73 |
| 74 virtual bool isDocument() const { return false; } | 74 virtual bool isDocument() const { return false; } |
| 75 virtual bool isWorkerGlobalScope() const { return false; } | 75 virtual bool isWorkerGlobalScope() const { return false; } |
| 76 virtual bool isWorkletGlobalScope() const { return false; } |
| 76 virtual bool isDedicatedWorkerGlobalScope() const { return false; } | 77 virtual bool isDedicatedWorkerGlobalScope() const { return false; } |
| 77 virtual bool isSharedWorkerGlobalScope() const { return false; } | 78 virtual bool isSharedWorkerGlobalScope() const { return false; } |
| 78 virtual bool isServiceWorkerGlobalScope() const { return false; } | 79 virtual bool isServiceWorkerGlobalScope() const { return false; } |
| 79 virtual bool isCompositorWorkerGlobalScope() const { return false; } | 80 virtual bool isCompositorWorkerGlobalScope() const { return false; } |
| 80 virtual bool isJSExecutionForbidden() const { return false; } | 81 virtual bool isJSExecutionForbidden() const { return false; } |
| 81 | 82 |
| 82 virtual bool isContextThread() const { return true; } | 83 virtual bool isContextThread() const { return true; } |
| 83 | 84 |
| 84 SecurityOrigin* securityOrigin(); | 85 SecurityOrigin* securityOrigin(); |
| 85 ContentSecurityPolicy* contentSecurityPolicy(); | 86 ContentSecurityPolicy* contentSecurityPolicy(); |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 194 | 195 |
| 195 Deque<OwnPtr<SuspendableTask>> m_suspendedTasks; | 196 Deque<OwnPtr<SuspendableTask>> m_suspendedTasks; |
| 196 bool m_isRunSuspendableTasksScheduled; | 197 bool m_isRunSuspendableTasksScheduled; |
| 197 | 198 |
| 198 ReferrerPolicy m_referrerPolicy; | 199 ReferrerPolicy m_referrerPolicy; |
| 199 }; | 200 }; |
| 200 | 201 |
| 201 } // namespace blink | 202 } // namespace blink |
| 202 | 203 |
| 203 #endif // ExecutionContext_h | 204 #endif // ExecutionContext_h |
| OLD | NEW |