| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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/background_fetch/BackgroundFetchedEvent.h" | 5 #include "modules/background_fetch/BackgroundFetchedEvent.h" |
| 6 | 6 |
| 7 #include "bindings/core/v8/ScriptPromiseResolver.h" | 7 #include "bindings/core/v8/ScriptPromiseResolver.h" |
| 8 #include "bindings/core/v8/ScriptState.h" | |
| 9 #include "core/dom/DOMException.h" | 8 #include "core/dom/DOMException.h" |
| 10 #include "modules/EventModulesNames.h" | 9 #include "modules/EventModulesNames.h" |
| 11 #include "modules/background_fetch/BackgroundFetchBridge.h" | 10 #include "modules/background_fetch/BackgroundFetchBridge.h" |
| 12 #include "modules/background_fetch/BackgroundFetchSettledFetch.h" | 11 #include "modules/background_fetch/BackgroundFetchSettledFetch.h" |
| 13 #include "modules/background_fetch/BackgroundFetchedEventInit.h" | 12 #include "modules/background_fetch/BackgroundFetchedEventInit.h" |
| 14 #include "modules/fetch/Request.h" | 13 #include "modules/fetch/Request.h" |
| 15 #include "modules/fetch/Response.h" | 14 #include "modules/fetch/Response.h" |
| 15 #include "platform/bindings/ScriptState.h" |
| 16 #include "public/platform/modules/background_fetch/WebBackgroundFetchSettledFetc
h.h" | 16 #include "public/platform/modules/background_fetch/WebBackgroundFetchSettledFetc
h.h" |
| 17 | 17 |
| 18 namespace blink { | 18 namespace blink { |
| 19 | 19 |
| 20 BackgroundFetchedEvent::BackgroundFetchedEvent( | 20 BackgroundFetchedEvent::BackgroundFetchedEvent( |
| 21 const AtomicString& type, | 21 const AtomicString& type, |
| 22 const BackgroundFetchedEventInit& initializer) | 22 const BackgroundFetchedEventInit& initializer) |
| 23 : BackgroundFetchEvent(type, initializer, nullptr /* observer */), | 23 : BackgroundFetchEvent(type, initializer, nullptr /* observer */), |
| 24 fetches_(initializer.fetches()) {} | 24 fetches_(initializer.fetches()) {} |
| 25 | 25 |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 return EventNames::BackgroundFetchedEvent; | 89 return EventNames::BackgroundFetchedEvent; |
| 90 } | 90 } |
| 91 | 91 |
| 92 DEFINE_TRACE(BackgroundFetchedEvent) { | 92 DEFINE_TRACE(BackgroundFetchedEvent) { |
| 93 visitor->Trace(fetches_); | 93 visitor->Trace(fetches_); |
| 94 visitor->Trace(registration_); | 94 visitor->Trace(registration_); |
| 95 BackgroundFetchEvent::Trace(visitor); | 95 BackgroundFetchEvent::Trace(visitor); |
| 96 } | 96 } |
| 97 | 97 |
| 98 } // namespace blink | 98 } // namespace blink |
| OLD | NEW |