| 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 class DOMTimerCoordinator; | 45 class DOMTimerCoordinator; |
| 46 class ErrorEvent; | 46 class ErrorEvent; |
| 47 class EventQueue; | 47 class EventQueue; |
| 48 class EventTarget; | 48 class EventTarget; |
| 49 class ExecutionContextTask; | 49 class ExecutionContextTask; |
| 50 class LocalDOMWindow; | 50 class LocalDOMWindow; |
| 51 class PublicURLManager; | 51 class PublicURLManager; |
| 52 class SecurityOrigin; | 52 class SecurityOrigin; |
| 53 class ScriptCallStack; | 53 class ScriptCallStack; |
| 54 | 54 |
| 55 class ExecutionContext | 55 class ExecutionContext : public ContextLifecycleNotifier, public WillBeHeapSuppl
ementable<ExecutionContext> { |
| 56 : public ContextLifecycleNotifier, public WillBeHeapSupplementable<Execution
Context> { | |
| 57 public: | 56 public: |
| 58 DECLARE_VIRTUAL_TRACE(); | 57 DECLARE_VIRTUAL_TRACE(); |
| 59 | 58 |
| 60 virtual bool isDocument() const { return false; } | 59 virtual bool isDocument() const { return false; } |
| 61 virtual bool isWorkerGlobalScope() const { return false; } | 60 virtual bool isWorkerGlobalScope() const { return false; } |
| 62 virtual bool isDedicatedWorkerGlobalScope() const { return false; } | 61 virtual bool isDedicatedWorkerGlobalScope() const { return false; } |
| 63 virtual bool isSharedWorkerGlobalScope() const { return false; } | 62 virtual bool isSharedWorkerGlobalScope() const { return false; } |
| 64 virtual bool isServiceWorkerGlobalScope() const { return false; } | 63 virtual bool isServiceWorkerGlobalScope() const { return false; } |
| 65 virtual bool isJSExecutionForbidden() const { return false; } | 64 virtual bool isJSExecutionForbidden() const { return false; } |
| 66 | 65 |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 163 // Counter that keeps track of how many window interaction calls are allowed | 162 // Counter that keeps track of how many window interaction calls are allowed |
| 164 // for this ExecutionContext. Callers are expected to call | 163 // for this ExecutionContext. Callers are expected to call |
| 165 // |allowWindowInteraction()| and |consumeWindowInteraction()| in order to | 164 // |allowWindowInteraction()| and |consumeWindowInteraction()| in order to |
| 166 // increment and decrement the counter. | 165 // increment and decrement the counter. |
| 167 int m_windowInteractionTokens; | 166 int m_windowInteractionTokens; |
| 168 }; | 167 }; |
| 169 | 168 |
| 170 } // namespace blink | 169 } // namespace blink |
| 171 | 170 |
| 172 #endif // ExecutionContext_h | 171 #endif // ExecutionContext_h |
| OLD | NEW |