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

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

Issue 896043004: Tests for WaitUntilObserver and focus/openining windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@sw_client_focus_cleanup
Patch Set: 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 b95e68f69599b9ca9dcf54406afacc03a584bd3c..6a4b733b7cdf8007f79c3f474f89e3d09df52e3a 100644
--- a/Source/modules/serviceworkers/WaitUntilObserver.h
+++ b/Source/modules/serviceworkers/WaitUntilObserver.h
@@ -42,6 +42,7 @@ public:
virtual void trace(Visitor*) override;
private:
+ friend class InternalsServiceWorker;
class ThenFunction;
WaitUntilObserver(ExecutionContext*, EventType, int eventID);
@@ -53,6 +54,8 @@ private:
void consumeWindowInteraction(Timer<WaitUntilObserver>*);
+ static void overrideWindowInteractionTimeoutForTest(unsigned timeout);
+
EventType m_type;
int m_eventID;
int m_pendingActivity;

Powered by Google App Engine
This is Rietveld 408576698