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

Unified Diff: Source/modules/serviceworkers/WaitUntilObserver.h

Issue 866983004: Allow creating new windows from a notificationclick event in SW. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase 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 side-by-side diff with in-line comments
Download patch
Index: Source/modules/serviceworkers/WaitUntilObserver.h
diff --git a/Source/modules/serviceworkers/WaitUntilObserver.h b/Source/modules/serviceworkers/WaitUntilObserver.h
index 4c70d23d795d8433022156c5a5e96180f477abce..b95e68f69599b9ca9dcf54406afacc03a584bd3c 100644
--- a/Source/modules/serviceworkers/WaitUntilObserver.h
+++ b/Source/modules/serviceworkers/WaitUntilObserver.h
@@ -7,6 +7,7 @@
#include "core/dom/ContextLifecycleObserver.h"
#include "modules/serviceworkers/ServiceWorkerGlobalScopeClient.h"
+#include "platform/Timer.h"
#include "wtf/Forward.h"
#include "wtf/RefCounted.h"
@@ -50,11 +51,14 @@ private:
void incrementPendingActivity();
void decrementPendingActivity();
+ void consumeWindowInteraction(Timer<WaitUntilObserver>*);
+
EventType m_type;
int m_eventID;
int m_pendingActivity;
bool m_hasError;
bool m_eventDispatched;
+ Timer<WaitUntilObserver> m_consumeWindowInteractionTimer;
};
} // namespace blink
« no previous file with comments | « Source/modules/serviceworkers/ServiceWorkerWindowClient.cpp ('k') | Source/modules/serviceworkers/WaitUntilObserver.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698