| 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 11 matching lines...) Expand all Loading... |
| 22 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 22 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 24 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 24 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 25 * | 25 * |
| 26 */ | 26 */ |
| 27 | 27 |
| 28 #ifndef ExecutionContext_h | 28 #ifndef ExecutionContext_h |
| 29 #define ExecutionContext_h | 29 #define ExecutionContext_h |
| 30 | 30 |
| 31 #include "core/dom/ContextLifecycleNotifier.h" | 31 #include "core/dom/ContextLifecycleNotifier.h" |
| 32 #include "core/dom/ContextLifecycleObserver.h" |
| 32 #include "core/dom/SecurityContext.h" | 33 #include "core/dom/SecurityContext.h" |
| 33 #include "core/fetch/AccessControlStatus.h" | 34 #include "core/fetch/AccessControlStatus.h" |
| 34 #include "platform/Supplementable.h" | 35 #include "platform/Supplementable.h" |
| 35 #include "platform/heap/Handle.h" | 36 #include "platform/heap/Handle.h" |
| 36 #include "platform/weborigin/KURL.h" | 37 #include "platform/weborigin/KURL.h" |
| 37 #include "wtf/OwnPtr.h" | 38 #include "wtf/OwnPtr.h" |
| 38 #include "wtf/PassOwnPtr.h" | 39 #include "wtf/PassOwnPtr.h" |
| 39 | 40 |
| 40 namespace blink { | 41 namespace blink { |
| 41 | 42 |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 165 // Counter that keeps track of how many window interaction calls are allowed | 166 // Counter that keeps track of how many window interaction calls are allowed |
| 166 // for this ExecutionContext. Callers are expected to call | 167 // for this ExecutionContext. Callers are expected to call |
| 167 // |allowWindowInteraction()| and |consumeWindowInteraction()| in order to | 168 // |allowWindowInteraction()| and |consumeWindowInteraction()| in order to |
| 168 // increment and decrement the counter. | 169 // increment and decrement the counter. |
| 169 int m_windowInteractionTokens; | 170 int m_windowInteractionTokens; |
| 170 }; | 171 }; |
| 171 | 172 |
| 172 } // namespace blink | 173 } // namespace blink |
| 173 | 174 |
| 174 #endif // ExecutionContext_h | 175 #endif // ExecutionContext_h |
| OLD | NEW |