Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 144 #if !ENABLE(OILPAN) | 144 #if !ENABLE(OILPAN) |
| 145 virtual void refExecutionContext() = 0; | 145 virtual void refExecutionContext() = 0; |
| 146 virtual void derefExecutionContext() = 0; | 146 virtual void derefExecutionContext() = 0; |
| 147 #endif | 147 #endif |
| 148 // LifecycleContext implementation. | 148 // LifecycleContext implementation. |
| 149 | 149 |
| 150 // Implementation details for DOMTimer. No other classes should call these f unctions. | 150 // Implementation details for DOMTimer. No other classes should call these f unctions. |
| 151 int installNewTimeout(PassOwnPtr<ScheduledAction>, int timeout, bool singleS hot); | 151 int installNewTimeout(PassOwnPtr<ScheduledAction>, int timeout, bool singleS hot); |
| 152 void removeTimeoutByID(int timeoutID); // This makes underlying DOMTimer ins tance destructed. | 152 void removeTimeoutByID(int timeoutID); // This makes underlying DOMTimer ins tance destructed. |
| 153 | 153 |
| 154 public: | |
| 154 ExecutionContextClient* m_client; | 155 ExecutionContextClient* m_client; |
|
dstockwell
2014/08/29 01:05:43
Not sure why this is public. FIXME?
nainar1
2014/08/29 06:01:39
There should be getters and setters for this
| |
| 156 private: | |
| 155 SandboxFlags m_sandboxFlags; | 157 SandboxFlags m_sandboxFlags; |
| 156 | 158 |
| 157 int m_circularSequentialID; | 159 int m_circularSequentialID; |
| 158 typedef HashMap<int, OwnPtr<DOMTimer> > TimeoutMap; | 160 typedef HashMap<int, OwnPtr<DOMTimer> > TimeoutMap; |
| 159 TimeoutMap m_timeouts; | 161 TimeoutMap m_timeouts; |
| 160 | 162 |
| 161 bool m_inDispatchErrorEvent; | 163 bool m_inDispatchErrorEvent; |
| 162 class PendingException; | 164 class PendingException; |
| 163 OwnPtrWillBeMember<WillBeHeapVector<OwnPtrWillBeMember<PendingException> > > m_pendingExceptions; | 165 OwnPtrWillBeMember<WillBeHeapVector<OwnPtrWillBeMember<PendingException> > > m_pendingExceptions; |
| 164 | 166 |
| 165 bool m_activeDOMObjectsAreSuspended; | 167 bool m_activeDOMObjectsAreSuspended; |
| 166 bool m_activeDOMObjectsAreStopped; | 168 bool m_activeDOMObjectsAreStopped; |
| 167 | 169 |
| 168 OwnPtr<PublicURLManager> m_publicURLManager; | 170 OwnPtr<PublicURLManager> m_publicURLManager; |
| 169 | 171 |
| 170 // The location of this member is important; to make sure contextDestroyed() notification on | 172 // The location of this member is important; to make sure contextDestroyed() notification on |
| 171 // ExecutionContext's members (notably m_timeouts) is called before they are destructed, | 173 // ExecutionContext's members (notably m_timeouts) is called before they are destructed, |
| 172 // m_lifecycleNotifer should be placed *after* such members. | 174 // m_lifecycleNotifer should be placed *after* such members. |
| 173 OwnPtr<ContextLifecycleNotifier> m_lifecycleNotifier; | 175 OwnPtr<ContextLifecycleNotifier> m_lifecycleNotifier; |
| 174 }; | 176 }; |
| 175 | 177 |
| 176 } // namespace blink | 178 } // namespace blink |
| 177 | 179 |
| 178 #endif // ExecutionContext_h | 180 #endif // ExecutionContext_h |
| OLD | NEW |