| 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 | 63 |
| 64 // Used to specify whether |isSecureContext| should walk the | 64 // Used to specify whether |isSecureContext| should walk the |
| 65 // ancestor tree to decide whether to restrict usage of a powerful | 65 // ancestor tree to decide whether to restrict usage of a powerful |
| 66 // feature. | 66 // feature. |
| 67 enum SecureContextCheck { | 67 enum SecureContextCheck { |
| 68 StandardSecureContextCheck, | 68 StandardSecureContextCheck, |
| 69 WebCryptoSecureContextCheck | 69 WebCryptoSecureContextCheck |
| 70 }; | 70 }; |
| 71 | 71 |
| 72 virtual bool isDocument() const { return false; } | 72 virtual bool isDocument() const { return false; } |
| 73 virtual bool isWorkerOrWorkletGlobalScope() const { return false; } |
| 73 virtual bool isWorkerGlobalScope() const { return false; } | 74 virtual bool isWorkerGlobalScope() const { return false; } |
| 74 virtual bool isWorkletGlobalScope() const { return false; } | 75 virtual bool isWorkletGlobalScope() const { return false; } |
| 75 virtual bool isMainThreadWorkletGlobalScope() const { return false; } | 76 virtual bool isMainThreadWorkletGlobalScope() 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 isAnimationWorkletGlobalScope() const { return false; } | 81 virtual bool isAnimationWorkletGlobalScope() const { return false; } |
| 81 virtual bool isAudioWorkletGlobalScope() const { return false; } | 82 virtual bool isAudioWorkletGlobalScope() const { return false; } |
| 82 virtual bool isPaintWorkletGlobalScope() const { return false; } | 83 virtual bool isPaintWorkletGlobalScope() const { return false; } |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 201 // |allowWindowInteraction()| and |consumeWindowInteraction()| in order to | 202 // |allowWindowInteraction()| and |consumeWindowInteraction()| in order to |
| 202 // increment and decrement the counter. | 203 // increment and decrement the counter. |
| 203 int m_windowInteractionTokens; | 204 int m_windowInteractionTokens; |
| 204 | 205 |
| 205 ReferrerPolicy m_referrerPolicy; | 206 ReferrerPolicy m_referrerPolicy; |
| 206 }; | 207 }; |
| 207 | 208 |
| 208 } // namespace blink | 209 } // namespace blink |
| 209 | 210 |
| 210 #endif // ExecutionContext_h | 211 #endif // ExecutionContext_h |
| OLD | NEW |