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

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

Issue 2191533003: Refactor Timer classes in preparation for landing FrameTimers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More build fixes Created 4 years, 4 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
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 #include "modules/serviceworkers/WaitUntilObserver.h" 5 #include "modules/serviceworkers/WaitUntilObserver.h"
6 6
7 #include "bindings/core/v8/ScriptFunction.h" 7 #include "bindings/core/v8/ScriptFunction.h"
8 #include "bindings/core/v8/ScriptPromise.h" 8 #include "bindings/core/v8/ScriptPromise.h"
9 #include "bindings/core/v8/ScriptValue.h" 9 #include "bindings/core/v8/ScriptValue.h"
10 #include "bindings/core/v8/V8Binding.h" 10 #include "bindings/core/v8/V8Binding.h"
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 case Push: 183 case Push:
184 client->didHandlePushEvent(m_eventID, result); 184 client->didHandlePushEvent(m_eventID, result);
185 break; 185 break;
186 case Sync: 186 case Sync:
187 client->didHandleSyncEvent(m_eventID, result); 187 client->didHandleSyncEvent(m_eventID, result);
188 break; 188 break;
189 } 189 }
190 setContext(nullptr); 190 setContext(nullptr);
191 } 191 }
192 192
193 void WaitUntilObserver::consumeWindowInteraction(Timer<WaitUntilObserver>*) 193 void WaitUntilObserver::consumeWindowInteraction(TimerBase*)
194 { 194 {
195 if (!getExecutionContext()) 195 if (!getExecutionContext())
196 return; 196 return;
197 getExecutionContext()->consumeWindowInteraction(); 197 getExecutionContext()->consumeWindowInteraction();
198 } 198 }
199 199
200 DEFINE_TRACE(WaitUntilObserver) 200 DEFINE_TRACE(WaitUntilObserver)
201 { 201 {
202 ContextLifecycleObserver::trace(visitor); 202 ContextLifecycleObserver::trace(visitor);
203 } 203 }
204 204
205 } // namespace blink 205 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698