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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 // Called after the construction of an ActiveDOMObject to synchronize suspen
d state. | 110 // Called after the construction of an ActiveDOMObject to synchronize suspen
d state. |
111 void suspendActiveDOMObjectIfNeeded(ActiveDOMObject*); | 111 void suspendActiveDOMObjectIfNeeded(ActiveDOMObject*); |
112 #if !ENABLE(OILPAN) | 112 #if !ENABLE(OILPAN) |
113 void ref() { refExecutionContext(); } | 113 void ref() { refExecutionContext(); } |
114 void deref() { derefExecutionContext(); } | 114 void deref() { derefExecutionContext(); } |
115 #endif | 115 #endif |
116 | 116 |
117 // Gets the next id in a circular sequence from 1 to 2^31-1. | 117 // Gets the next id in a circular sequence from 1 to 2^31-1. |
118 int circularSequentialID(); | 118 int circularSequentialID(); |
119 | 119 |
120 PassOwnPtr<LifecycleNotifier<ExecutionContext> > createLifecycleNotifier(); | |
121 | |
122 virtual EventTarget* errorEventTarget() = 0; | 120 virtual EventTarget* errorEventTarget() = 0; |
123 virtual EventQueue* eventQueue() const = 0; | 121 virtual EventQueue* eventQueue() const = 0; |
124 | 122 |
125 void enforceStrictMixedContentChecking() { m_strictMixedContentCheckingEnfor
ced = true; } | 123 void enforceStrictMixedContentChecking() { m_strictMixedContentCheckingEnfor
ced = true; } |
126 bool shouldEnforceStrictMixedContentChecking() const { return m_strictMixedC
ontentCheckingEnforced; } | 124 bool shouldEnforceStrictMixedContentChecking() const { return m_strictMixedC
ontentCheckingEnforced; } |
127 | 125 |
128 // Methods related to window interaction. It should be used to manage window | 126 // Methods related to window interaction. It should be used to manage window |
129 // focusing and window creation permission for an ExecutionContext. | 127 // focusing and window creation permission for an ExecutionContext. |
130 void allowWindowInteraction(); | 128 void allowWindowInteraction(); |
131 void consumeWindowInteraction(); | 129 void consumeWindowInteraction(); |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 // Counter that keeps track of how many window interaction calls are allowed | 165 // Counter that keeps track of how many window interaction calls are allowed |
168 // for this ExecutionContext. Callers are expected to call | 166 // for this ExecutionContext. Callers are expected to call |
169 // |allowWindowInteraction()| and |consumeWindowInteraction()| in order to | 167 // |allowWindowInteraction()| and |consumeWindowInteraction()| in order to |
170 // increment and decrement the counter. | 168 // increment and decrement the counter. |
171 int m_windowInteractionTokens; | 169 int m_windowInteractionTokens; |
172 }; | 170 }; |
173 | 171 |
174 } // namespace blink | 172 } // namespace blink |
175 | 173 |
176 #endif // ExecutionContext_h | 174 #endif // ExecutionContext_h |
OLD | NEW |