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

Side by Side Diff: third_party/WebKit/Source/modules/serviceworkers/WaitUntilObserver.h

Issue 2640153003: ServiceWorker: Migrate Timer to TaskRunnerTimer in WaitUntilObserver (Closed)
Patch Set: Created 3 years, 11 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 unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/serviceworkers/WaitUntilObserver.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "modules/ModulesExport.h" 8 #include "modules/ModulesExport.h"
9 #include "modules/serviceworkers/ServiceWorkerGlobalScopeClient.h" 9 #include "modules/serviceworkers/ServiceWorkerGlobalScopeClient.h"
10 #include "platform/Timer.h" 10 #include "platform/Timer.h"
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 64
65 void consumeWindowInteraction(TimerBase*); 65 void consumeWindowInteraction(TimerBase*);
66 66
67 Member<ExecutionContext> m_executionContext; 67 Member<ExecutionContext> m_executionContext;
68 EventType m_type; 68 EventType m_type;
69 int m_eventID; 69 int m_eventID;
70 int m_pendingActivity = 0; 70 int m_pendingActivity = 0;
71 bool m_hasError = false; 71 bool m_hasError = false;
72 bool m_eventDispatched = false; 72 bool m_eventDispatched = false;
73 double m_eventDispatchTime = 0; 73 double m_eventDispatchTime = 0;
74 Timer<WaitUntilObserver> m_consumeWindowInteractionTimer; 74 TaskRunnerTimer<WaitUntilObserver> m_consumeWindowInteractionTimer;
75 }; 75 };
76 76
77 } // namespace blink 77 } // namespace blink
78 78
79 #endif // WaitUntilObserver_h 79 #endif // WaitUntilObserver_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/serviceworkers/WaitUntilObserver.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698