Index: third_party/WebKit/Source/modules/background_fetch/BackgroundFetchFailEvent.cpp |
diff --git a/third_party/WebKit/Source/modules/background_fetch/BackgroundFetchFailEvent.cpp b/third_party/WebKit/Source/modules/background_fetch/BackgroundFetchFailEvent.cpp |
index 7f95187352248ea3ca7f44e999d383c335631c7e..307fcd6452be9dfb2fa51b2de8c8897bb7d457f5 100644 |
--- a/third_party/WebKit/Source/modules/background_fetch/BackgroundFetchFailEvent.cpp |
+++ b/third_party/WebKit/Source/modules/background_fetch/BackgroundFetchFailEvent.cpp |
@@ -6,18 +6,29 @@ |
#include "modules/EventModulesNames.h" |
#include "modules/background_fetch/BackgroundFetchFailEventInit.h" |
+#include "modules/background_fetch/BackgroundFetchSettledRequest.h" |
namespace blink { |
BackgroundFetchFailEvent::BackgroundFetchFailEvent( |
const AtomicString& type, |
const BackgroundFetchFailEventInit& init) |
- : BackgroundFetchEvent(type, init) {} |
+ : BackgroundFetchEvent(type, init), m_failedFetches(init.failedFetches()) {} |
BackgroundFetchFailEvent::~BackgroundFetchFailEvent() = default; |
+HeapVector<Member<BackgroundFetchSettledRequest>> |
+BackgroundFetchFailEvent::failedFetches() const { |
+ return m_failedFetches; |
+} |
+ |
const AtomicString& BackgroundFetchFailEvent::interfaceName() const { |
return EventNames::BackgroundFetchFailEvent; |
} |
+DEFINE_TRACE(BackgroundFetchFailEvent) { |
+ visitor->trace(m_failedFetches); |
+ BackgroundFetchEvent::trace(visitor); |
+} |
+ |
} // namespace blink |