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

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

Issue 2527143002: Suspend frame schedulers on a page suspension (Closed)
Patch Set: mod a comment Created 4 years 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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 118
119 PublicURLManager& publicURLManager(); 119 PublicURLManager& publicURLManager();
120 120
121 virtual void removeURLFromMemoryCache(const KURL&); 121 virtual void removeURLFromMemoryCache(const KURL&);
122 122
123 void suspendActiveDOMObjects(); 123 void suspendActiveDOMObjects();
124 void resumeActiveDOMObjects(); 124 void resumeActiveDOMObjects();
125 void stopActiveDOMObjects(); 125 void stopActiveDOMObjects();
126 void notifyContextDestroyed() override; 126 void notifyContextDestroyed() override;
127 127
128 virtual void suspendScheduledTasks(); 128 void suspendScheduledTasks();
129 virtual void resumeScheduledTasks(); 129 void resumeScheduledTasks();
130 virtual bool tasksNeedSuspension() { return false; } 130 virtual bool tasksNeedSuspension() { return false; }
131 virtual void tasksWereSuspended() {} 131 virtual void tasksWereSuspended() {}
132 virtual void tasksWereResumed() {} 132 virtual void tasksWereResumed() {}
133 133
134 bool activeDOMObjectsAreSuspended() const { 134 bool activeDOMObjectsAreSuspended() const {
135 return m_activeDOMObjectsAreSuspended; 135 return m_activeDOMObjectsAreSuspended;
136 } 136 }
137 bool activeDOMObjectsAreStopped() const { 137 bool activeDOMObjectsAreStopped() const {
138 return m_activeDOMObjectsAreStopped; 138 return m_activeDOMObjectsAreStopped;
139 } 139 }
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 // |allowWindowInteraction()| and |consumeWindowInteraction()| in order to 201 // |allowWindowInteraction()| and |consumeWindowInteraction()| in order to
202 // increment and decrement the counter. 202 // increment and decrement the counter.
203 int m_windowInteractionTokens; 203 int m_windowInteractionTokens;
204 204
205 ReferrerPolicy m_referrerPolicy; 205 ReferrerPolicy m_referrerPolicy;
206 }; 206 };
207 207
208 } // namespace blink 208 } // namespace blink
209 209
210 #endif // ExecutionContext_h 210 #endif // ExecutionContext_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/Document.cpp ('k') | third_party/WebKit/Source/core/dom/MainThreadTaskRunner.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698