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

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

Issue 2751523008: Update Background Fetch IDLs following spec changes (Closed)
Patch Set: Update Background Fetch IDLs following spec changes 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/BackgroundFetchedEvent.cpp
diff --git a/third_party/WebKit/Source/modules/background_fetch/BackgroundFetchedEvent.cpp b/third_party/WebKit/Source/modules/background_fetch/BackgroundFetchedEvent.cpp
index 3551dbe69457edbdc4634f9f4b4e486765e4fc68..236a7794d9f93d7f03382de765d06034fe6b20b7 100644
--- a/third_party/WebKit/Source/modules/background_fetch/BackgroundFetchedEvent.cpp
+++ b/third_party/WebKit/Source/modules/background_fetch/BackgroundFetchedEvent.cpp
@@ -9,7 +9,7 @@
#include "core/dom/DOMException.h"
#include "modules/EventModulesNames.h"
#include "modules/background_fetch/BackgroundFetchBridge.h"
-#include "modules/background_fetch/BackgroundFetchSettledRequest.h"
+#include "modules/background_fetch/BackgroundFetchSettledFetch.h"
#include "modules/background_fetch/BackgroundFetchedEventInit.h"
namespace blink {
@@ -19,14 +19,14 @@ BackgroundFetchedEvent::BackgroundFetchedEvent(
const BackgroundFetchedEventInit& init,
ServiceWorkerRegistration* registration)
: BackgroundFetchEvent(type, init),
- m_completedFetches(init.completedFetches()),
+ m_fetches(init.fetches()),
m_registration(registration) {}
BackgroundFetchedEvent::~BackgroundFetchedEvent() = default;
-HeapVector<Member<BackgroundFetchSettledRequest>>
-BackgroundFetchedEvent::completedFetches() const {
- return m_completedFetches;
+HeapVector<Member<BackgroundFetchSettledFetch>>
+BackgroundFetchedEvent::fetches() const {
+ return m_fetches;
}
ScriptPromise BackgroundFetchedEvent::updateUI(ScriptState* scriptState,
@@ -68,7 +68,7 @@ const AtomicString& BackgroundFetchedEvent::interfaceName() const {
}
DEFINE_TRACE(BackgroundFetchedEvent) {
- visitor->trace(m_completedFetches);
+ visitor->trace(m_fetches);
visitor->trace(m_registration);
BackgroundFetchEvent::trace(visitor);
}

Powered by Google App Engine
This is Rietveld 408576698