| 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" |
| 11 #include "platform/Timer.h" | 11 #include "platform/Timer.h" |
| 12 #include "wtf/Forward.h" | 12 #include "wtf/Forward.h" |
| 13 #include "wtf/RefCounted.h" | 13 #include "wtf/RefCounted.h" |
| 14 | 14 |
| 15 namespace blink { | 15 namespace blink { |
| 16 | 16 |
| 17 class ExceptionState; | 17 class ExceptionState; |
| 18 class ExecutionContext; | 18 class ExecutionContext; |
| 19 class ScriptPromise; | 19 class ScriptPromise; |
| 20 class ScriptState; | 20 class ScriptState; |
| 21 class ScriptValue; | 21 class ScriptValue; |
| 22 | 22 |
| 23 // Created for each ExtendableEvent instance. | 23 // Created for each ExtendableEvent instance. |
| 24 class MODULES_EXPORT WaitUntilObserver final : public GarbageCollectedFinalized<
WaitUntilObserver>, public ContextLifecycleObserver { | 24 class MODULES_EXPORT WaitUntilObserver final : public GarbageCollectedFinalized<
WaitUntilObserver>, public ContextLifecycleObserver { |
| 25 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(WaitUntilObserver); | 25 USING_GARBAGE_COLLECTED_MIXIN(WaitUntilObserver); |
| 26 public: | 26 public: |
| 27 enum EventType { | 27 enum EventType { |
| 28 Activate, | 28 Activate, |
| 29 Install, | 29 Install, |
| 30 Message, | 30 Message, |
| 31 NotificationClick, | 31 NotificationClick, |
| 32 NotificationClose, | 32 NotificationClose, |
| 33 Push, | 33 Push, |
| 34 Sync | 34 Sync |
| 35 }; | 35 }; |
| (...skipping 27 matching lines...) Expand all Loading... |
| 63 int m_eventID; | 63 int m_eventID; |
| 64 int m_pendingActivity; | 64 int m_pendingActivity; |
| 65 bool m_hasError; | 65 bool m_hasError; |
| 66 bool m_eventDispatched; | 66 bool m_eventDispatched; |
| 67 Timer<WaitUntilObserver> m_consumeWindowInteractionTimer; | 67 Timer<WaitUntilObserver> m_consumeWindowInteractionTimer; |
| 68 }; | 68 }; |
| 69 | 69 |
| 70 } // namespace blink | 70 } // namespace blink |
| 71 | 71 |
| 72 #endif // WaitUntilObserver_h | 72 #endif // WaitUntilObserver_h |
| OLD | NEW |