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

Side by Side Diff: Source/core/dom/ScriptExecutionContext.h

Issue 17351003: Rename ContextDestructionObserver to ContextLifecycleObserver (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Reapplied Created 7 years, 6 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/NamedFlowCollection.cpp ('k') | Source/core/dom/ScriptExecutionContext.cpp » ('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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 virtual void suspendActiveDOMObjects(ActiveDOMObject::ReasonForSuspension); 86 virtual void suspendActiveDOMObjects(ActiveDOMObject::ReasonForSuspension);
87 virtual void resumeActiveDOMObjects(); 87 virtual void resumeActiveDOMObjects();
88 virtual void stopActiveDOMObjects(); 88 virtual void stopActiveDOMObjects();
89 89
90 bool activeDOMObjectsAreSuspended() const { return m_activeDOMObjectsAreSusp ended; } 90 bool activeDOMObjectsAreSuspended() const { return m_activeDOMObjectsAreSusp ended; }
91 bool activeDOMObjectsAreStopped() const { return m_activeDOMObjectsAreStoppe d; } 91 bool activeDOMObjectsAreStopped() const { return m_activeDOMObjectsAreStoppe d; }
92 92
93 // Called after the construction of an ActiveDOMObject to synchronize suspen d state. 93 // Called after the construction of an ActiveDOMObject to synchronize suspen d state.
94 void suspendActiveDOMObjectIfNeeded(ActiveDOMObject*); 94 void suspendActiveDOMObjectIfNeeded(ActiveDOMObject*);
95 95
96 // Called from the constructor and destructors of ContextDestructionObserver 96 // Called from the constructor and destructors of ContextLifecycleObserver
97 void wasObservedBy(ContextDestructionObserver*, ContextDestructionObserver:: Type as); 97 void wasObservedBy(ContextLifecycleObserver*, ContextLifecycleObserver::Type as);
98 void wasUnobservedBy(ContextDestructionObserver*, ContextDestructionObserver ::Type as); 98 void wasUnobservedBy(ContextLifecycleObserver*, ContextLifecycleObserver::Ty pe as);
99 99
100 // MessagePort is conceptually a kind of ActiveDOMObject, but it needs to be tracked separately for message dispatch. 100 // MessagePort is conceptually a kind of ActiveDOMObject, but it needs to be tracked separately for message dispatch.
101 void processMessagePortMessagesSoon(); 101 void processMessagePortMessagesSoon();
102 void dispatchMessagePortEvents(); 102 void dispatchMessagePortEvents();
103 void createdMessagePort(MessagePort*); 103 void createdMessagePort(MessagePort*);
104 void destroyedMessagePort(MessagePort*); 104 void destroyedMessagePort(MessagePort*);
105 const HashSet<MessagePort*>& messagePorts() const { return m_messagePorts; } 105 const HashSet<MessagePort*>& messagePorts() const { return m_messagePorts; }
106 106
107 void ref() { refScriptExecutionContext(); } 107 void ref() { refScriptExecutionContext(); }
108 void deref() { derefScriptExecutionContext(); } 108 void deref() { derefScriptExecutionContext(); }
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 bool m_activeDOMObjectsAreStopped; 189 bool m_activeDOMObjectsAreStopped;
190 190
191 OwnPtr<PublicURLManager> m_publicURLManager; 191 OwnPtr<PublicURLManager> m_publicURLManager;
192 192
193 RefPtr<DatabaseContext> m_databaseContext; 193 RefPtr<DatabaseContext> m_databaseContext;
194 }; 194 };
195 195
196 } // namespace WebCore 196 } // namespace WebCore
197 197
198 #endif // ScriptExecutionContext_h 198 #endif // ScriptExecutionContext_h
OLDNEW
« no previous file with comments | « Source/core/dom/NamedFlowCollection.cpp ('k') | Source/core/dom/ScriptExecutionContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698