Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(885)

Side by Side Diff: third_party/WebKit/Source/core/dom/ExecutionContext.h

Issue 2433773006: Remove ExecutionContext::activeDOMObjectsAreStopped()
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 131
132 virtual void suspendScheduledTasks(); 132 virtual void suspendScheduledTasks();
133 virtual void resumeScheduledTasks(); 133 virtual void resumeScheduledTasks();
134 virtual bool tasksNeedSuspension() { return false; } 134 virtual bool tasksNeedSuspension() { return false; }
135 virtual void tasksWereSuspended() {} 135 virtual void tasksWereSuspended() {}
136 virtual void tasksWereResumed() {} 136 virtual void tasksWereResumed() {}
137 137
138 bool activeDOMObjectsAreSuspended() const { 138 bool activeDOMObjectsAreSuspended() const {
139 return m_activeDOMObjectsAreSuspended; 139 return m_activeDOMObjectsAreSuspended;
140 } 140 }
141 bool activeDOMObjectsAreStopped() const {
142 return m_activeDOMObjectsAreStopped;
143 }
144 141
145 // Called after the construction of an ActiveDOMObject to synchronize suspend 142 // Called after the construction of an ActiveDOMObject to synchronize suspend
146 // state. 143 // state.
147 void suspendActiveDOMObjectIfNeeded(ActiveDOMObject*); 144 void suspendActiveDOMObjectIfNeeded(ActiveDOMObject*);
148 145
149 // Gets the next id in a circular sequence from 1 to 2^31-1. 146 // Gets the next id in a circular sequence from 1 to 2^31-1.
150 int circularSequentialID(); 147 int circularSequentialID();
151 148
152 virtual EventTarget* errorEventTarget() = 0; 149 virtual EventTarget* errorEventTarget() = 0;
153 virtual EventQueue* getEventQueue() const = 0; 150 virtual EventQueue* getEventQueue() const = 0;
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 private: 187 private:
191 bool dispatchErrorEventInternal(ErrorEvent*, AccessControlStatus); 188 bool dispatchErrorEventInternal(ErrorEvent*, AccessControlStatus);
192 void runSuspendableTasks(); 189 void runSuspendableTasks();
193 190
194 unsigned m_circularSequentialID; 191 unsigned m_circularSequentialID;
195 192
196 bool m_inDispatchErrorEvent; 193 bool m_inDispatchErrorEvent;
197 HeapVector<Member<ErrorEvent>> m_pendingExceptions; 194 HeapVector<Member<ErrorEvent>> m_pendingExceptions;
198 195
199 bool m_activeDOMObjectsAreSuspended; 196 bool m_activeDOMObjectsAreSuspended;
200 bool m_activeDOMObjectsAreStopped;
201 197
202 Member<PublicURLManager> m_publicURLManager; 198 Member<PublicURLManager> m_publicURLManager;
203 199
204 // Counter that keeps track of how many window interaction calls are allowed 200 // Counter that keeps track of how many window interaction calls are allowed
205 // for this ExecutionContext. Callers are expected to call 201 // for this ExecutionContext. Callers are expected to call
206 // |allowWindowInteraction()| and |consumeWindowInteraction()| in order to 202 // |allowWindowInteraction()| and |consumeWindowInteraction()| in order to
207 // increment and decrement the counter. 203 // increment and decrement the counter.
208 int m_windowInteractionTokens; 204 int m_windowInteractionTokens;
209 205
210 Deque<std::unique_ptr<SuspendableTask>> m_suspendedTasks; 206 Deque<std::unique_ptr<SuspendableTask>> m_suspendedTasks;
211 bool m_isRunSuspendableTasksScheduled; 207 bool m_isRunSuspendableTasksScheduled;
212 208
213 ReferrerPolicy m_referrerPolicy; 209 ReferrerPolicy m_referrerPolicy;
214 }; 210 };
215 211
216 } // namespace blink 212 } // namespace blink
217 213
218 #endif // ExecutionContext_h 214 #endif // ExecutionContext_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/ActiveDOMObject.cpp ('k') | third_party/WebKit/Source/core/dom/ExecutionContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698