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 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
184 case NotificationClose: | 184 case NotificationClose: |
185 client->didHandleNotificationCloseEvent(m_eventID, result, | 185 client->didHandleNotificationCloseEvent(m_eventID, result, |
186 m_eventDispatchTime); | 186 m_eventDispatchTime); |
187 break; | 187 break; |
188 case Push: | 188 case Push: |
189 client->didHandlePushEvent(m_eventID, result, m_eventDispatchTime); | 189 client->didHandlePushEvent(m_eventID, result, m_eventDispatchTime); |
190 break; | 190 break; |
191 case Sync: | 191 case Sync: |
192 client->didHandleSyncEvent(m_eventID, result, m_eventDispatchTime); | 192 client->didHandleSyncEvent(m_eventID, result, m_eventDispatchTime); |
193 break; | 193 break; |
| 194 case PaymentRequest: |
| 195 client->didHandlePaymentRequestEvent(m_eventID, result, |
| 196 m_eventDispatchTime); |
| 197 break; |
194 } | 198 } |
195 setContext(nullptr); | 199 setContext(nullptr); |
196 } | 200 } |
197 | 201 |
198 void WaitUntilObserver::consumeWindowInteraction(TimerBase*) { | 202 void WaitUntilObserver::consumeWindowInteraction(TimerBase*) { |
199 if (!getExecutionContext()) | 203 if (!getExecutionContext()) |
200 return; | 204 return; |
201 getExecutionContext()->consumeWindowInteraction(); | 205 getExecutionContext()->consumeWindowInteraction(); |
202 } | 206 } |
203 | 207 |
204 DEFINE_TRACE(WaitUntilObserver) { | 208 DEFINE_TRACE(WaitUntilObserver) { |
205 ContextLifecycleObserver::trace(visitor); | 209 ContextLifecycleObserver::trace(visitor); |
206 } | 210 } |
207 | 211 |
208 } // namespace blink | 212 } // namespace blink |
OLD | NEW |