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

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

Issue 2549673004: Remove RefPtr<ScriptState> from PerformanceObserver (Closed)
Patch Set: temp 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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 void suspendScheduledTasks(); 128 void suspendScheduledTasks();
129 void resumeScheduledTasks(); 129 void resumeScheduledTasks();
130
131 // TODO(haraken): Remove these methods by making the customers inherit from
132 // ActiveDOMObject. ActiveDOMObject is a standard way to observe context
133 // suspension/resumption.
130 virtual bool tasksNeedSuspension() { return false; } 134 virtual bool tasksNeedSuspension() { return false; }
131 virtual void tasksWereSuspended() {} 135 virtual void tasksWereSuspended() {}
132 virtual void tasksWereResumed() {} 136 virtual void tasksWereResumed() {}
133 137
134 bool activeDOMObjectsAreSuspended() const { 138 bool activeDOMObjectsAreSuspended() const {
135 return m_activeDOMObjectsAreSuspended; 139 return m_activeDOMObjectsAreSuspended;
136 } 140 }
137 bool activeDOMObjectsAreStopped() const { 141 bool activeDOMObjectsAreStopped() const {
138 return m_activeDOMObjectsAreStopped; 142 return m_activeDOMObjectsAreStopped;
139 } 143 }
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 // |allowWindowInteraction()| and |consumeWindowInteraction()| in order to 205 // |allowWindowInteraction()| and |consumeWindowInteraction()| in order to
202 // increment and decrement the counter. 206 // increment and decrement the counter.
203 int m_windowInteractionTokens; 207 int m_windowInteractionTokens;
204 208
205 ReferrerPolicy m_referrerPolicy; 209 ReferrerPolicy m_referrerPolicy;
206 }; 210 };
207 211
208 } // namespace blink 212 } // namespace blink
209 213
210 #endif // ExecutionContext_h 214 #endif // ExecutionContext_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698