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

Side by Side Diff: Source/core/dom/ExecutionContext.cpp

Issue 916033002: Oilpan: Move LifecycleNotifier's hierarchy to Oilpan's heap Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/dom/ExecutionContext.h ('k') | Source/core/frame/DOMWindowLifecycleNotifier.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 const KURL& ExecutionContext::url() const 199 const KURL& ExecutionContext::url() const
200 { 200 {
201 return virtualURL(); 201 return virtualURL();
202 } 202 }
203 203
204 KURL ExecutionContext::completeURL(const String& url) const 204 KURL ExecutionContext::completeURL(const String& url) const
205 { 205 {
206 return virtualCompleteURL(url); 206 return virtualCompleteURL(url);
207 } 207 }
208 208
209 bool ExecutionContext::isIteratingOverObservers() const
210 {
211 return m_lifecycleNotifier && m_lifecycleNotifier->isIteratingOverObservers( );
212 }
213
214 void ExecutionContext::allowWindowInteraction() 209 void ExecutionContext::allowWindowInteraction()
215 { 210 {
216 ++m_windowInteractionTokens; 211 ++m_windowInteractionTokens;
217 } 212 }
218 213
219 void ExecutionContext::consumeWindowInteraction() 214 void ExecutionContext::consumeWindowInteraction()
220 { 215 {
221 if (m_windowInteractionTokens == 0) 216 if (m_windowInteractionTokens == 0)
222 return; 217 return;
223 --m_windowInteractionTokens; 218 --m_windowInteractionTokens;
(...skipping 11 matching lines...) Expand all
235 { 230 {
236 #if ENABLE(OILPAN) 231 #if ENABLE(OILPAN)
237 visitor->trace(m_pendingExceptions); 232 visitor->trace(m_pendingExceptions);
238 visitor->trace(m_publicURLManager); 233 visitor->trace(m_publicURLManager);
239 HeapSupplementable<ExecutionContext>::trace(visitor); 234 HeapSupplementable<ExecutionContext>::trace(visitor);
240 #endif 235 #endif
241 ContextLifecycleNotifier::trace(visitor); 236 ContextLifecycleNotifier::trace(visitor);
242 } 237 }
243 238
244 } // namespace blink 239 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/dom/ExecutionContext.h ('k') | Source/core/frame/DOMWindowLifecycleNotifier.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698