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

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

Issue 2762243002: Convert Background Fetch' input to a WebServiceWorkerRequest vector (Closed)
Patch Set: IWYU 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/BackgroundFetchBridge.cpp
diff --git a/third_party/WebKit/Source/modules/background_fetch/BackgroundFetchBridge.cpp b/third_party/WebKit/Source/modules/background_fetch/BackgroundFetchBridge.cpp
index c65ff59ec9c440ae743fe50a027ee5407b8f2f07..a0b283e6cf0f7528beb7508bfed29ef2102e6436 100644
--- a/third_party/WebKit/Source/modules/background_fetch/BackgroundFetchBridge.cpp
+++ b/third_party/WebKit/Source/modules/background_fetch/BackgroundFetchBridge.cpp
@@ -12,6 +12,7 @@
#include "public/platform/InterfaceProvider.h"
#include "public/platform/Platform.h"
#include "public/platform/modules/serviceworker/WebServiceWorkerRegistration.h"
+#include "public/platform/modules/serviceworker/WebServiceWorkerRequest.h"
namespace blink {
@@ -46,8 +47,10 @@ BackgroundFetchBridge::~BackgroundFetchBridge() = default;
void BackgroundFetchBridge::fetch(
const String& tag,
+ Vector<WebServiceWorkerRequest> requests,
const BackgroundFetchOptions& options,
std::unique_ptr<RegistrationCallback> callback) {
+ // TODO(peter): Include |requests| in the Mojo call.
getService()->Fetch(
supplementable()->webRegistration()->registrationId(), tag,
mojom::blink::BackgroundFetchOptions::From(options),

Powered by Google App Engine
This is Rietveld 408576698