OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef WaitUntilObserver_h | 5 #ifndef WaitUntilObserver_h |
6 #define WaitUntilObserver_h | 6 #define WaitUntilObserver_h |
7 | 7 |
8 #include "core/dom/ContextLifecycleObserver.h" | 8 #include "core/dom/ContextLifecycleObserver.h" |
9 #include "modules/ModulesExport.h" | 9 #include "modules/ModulesExport.h" |
10 #include "modules/serviceworkers/ServiceWorkerGlobalScopeClient.h" | 10 #include "modules/serviceworkers/ServiceWorkerGlobalScopeClient.h" |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 class ThenFunction; | 57 class ThenFunction; |
58 | 58 |
59 WaitUntilObserver(ExecutionContext*, EventType, int eventID); | 59 WaitUntilObserver(ExecutionContext*, EventType, int eventID); |
60 | 60 |
61 void reportError(const ScriptValue&); | 61 void reportError(const ScriptValue&); |
62 | 62 |
63 void consumeWindowInteraction(TimerBase*); | 63 void consumeWindowInteraction(TimerBase*); |
64 | 64 |
65 EventType m_type; | 65 EventType m_type; |
66 int m_eventID; | 66 int m_eventID; |
67 int m_pendingActivity; | 67 int m_pendingActivity = 0; |
68 bool m_hasError; | 68 bool m_hasError = false; |
69 bool m_eventDispatched; | 69 bool m_eventDispatched = false; |
| 70 double m_eventDispatchTime = 0; |
70 Timer<WaitUntilObserver> m_consumeWindowInteractionTimer; | 71 Timer<WaitUntilObserver> m_consumeWindowInteractionTimer; |
71 }; | 72 }; |
72 | 73 |
73 } // namespace blink | 74 } // namespace blink |
74 | 75 |
75 #endif // WaitUntilObserver_h | 76 #endif // WaitUntilObserver_h |
OLD | NEW |