| 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 #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 Loading... |
| 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 |
| OLD | NEW |