Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(648)

Unified Diff: third_party/WebKit/Source/modules/background_fetch/BackgroundFetchFailEvent.cpp

Issue 2744873002: Implement the Request/Response bits of Background Fetch (Closed)
Patch Set: comments Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698