| 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/BackgroundFetchFailEvent.h" | 5 #include "modules/background_fetch/BackgroundFetchFailEvent.h" |
| 6 | 6 |
| 7 #include "modules/EventModulesNames.h" | 7 #include "modules/EventModulesNames.h" |
| 8 #include "modules/background_fetch/BackgroundFetchFailEventInit.h" | 8 #include "modules/background_fetch/BackgroundFetchFailEventInit.h" |
| 9 #include "modules/background_fetch/BackgroundFetchSettledFetch.h" | 9 #include "modules/background_fetch/BackgroundFetchSettledFetch.h" |
| 10 | 10 |
| 11 namespace blink { | 11 namespace blink { |
| 12 | 12 |
| 13 BackgroundFetchFailEvent::BackgroundFetchFailEvent( | 13 BackgroundFetchFailEvent::BackgroundFetchFailEvent( |
| 14 const AtomicString& type, | 14 const AtomicString& type, |
| 15 const BackgroundFetchFailEventInit& init) | 15 const BackgroundFetchFailEventInit& init) |
| 16 : BackgroundFetchEvent(type, init), m_fetches(init.fetches()) {} | 16 : BackgroundFetchEvent(type, init, nullptr /* observer */), |
| 17 m_fetches(init.fetches()) {} |
| 17 | 18 |
| 18 BackgroundFetchFailEvent::~BackgroundFetchFailEvent() = default; | 19 BackgroundFetchFailEvent::~BackgroundFetchFailEvent() = default; |
| 19 | 20 |
| 20 HeapVector<Member<BackgroundFetchSettledFetch>> | 21 HeapVector<Member<BackgroundFetchSettledFetch>> |
| 21 BackgroundFetchFailEvent::fetches() const { | 22 BackgroundFetchFailEvent::fetches() const { |
| 22 return m_fetches; | 23 return m_fetches; |
| 23 } | 24 } |
| 24 | 25 |
| 25 const AtomicString& BackgroundFetchFailEvent::interfaceName() const { | 26 const AtomicString& BackgroundFetchFailEvent::interfaceName() const { |
| 26 return EventNames::BackgroundFetchFailEvent; | 27 return EventNames::BackgroundFetchFailEvent; |
| 27 } | 28 } |
| 28 | 29 |
| 29 DEFINE_TRACE(BackgroundFetchFailEvent) { | 30 DEFINE_TRACE(BackgroundFetchFailEvent) { |
| 30 visitor->trace(m_fetches); | 31 visitor->trace(m_fetches); |
| 31 BackgroundFetchEvent::trace(visitor); | 32 BackgroundFetchEvent::trace(visitor); |
| 32 } | 33 } |
| 33 | 34 |
| 34 } // namespace blink | 35 } // namespace blink |
| OLD | NEW |