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

Unified Diff: content/browser/background_fetch/background_fetch_service_impl.cc

Issue 2762303002: Enable transmitting Fetch Requests over Mojo (Closed)
Patch Set: rebase 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: content/browser/background_fetch/background_fetch_service_impl.cc
diff --git a/content/browser/background_fetch/background_fetch_service_impl.cc b/content/browser/background_fetch/background_fetch_service_impl.cc
index ac93b612b2cb256b7f80c42b1fb6426296296738..2461e5980c3b13db932305c53d2c75e147f30904 100644
--- a/content/browser/background_fetch/background_fetch_service_impl.cc
+++ b/content/browser/background_fetch/background_fetch_service_impl.cc
@@ -10,6 +10,7 @@
#include "content/browser/background_fetch/background_fetch_context.h"
#include "content/browser/service_worker/service_worker_context_wrapper.h"
#include "content/common/background_fetch/background_fetch_types.h"
+#include "content/common/service_worker/service_worker_types.h"
#include "content/public/browser/browser_thread.h"
#include "mojo/public/cpp/bindings/strong_binding.h"
@@ -38,15 +39,17 @@ BackgroundFetchServiceImpl::BackgroundFetchServiceImpl(
BackgroundFetchServiceImpl::~BackgroundFetchServiceImpl() = default;
-void BackgroundFetchServiceImpl::Fetch(int64_t service_worker_registration_id,
- const std::string& tag,
- const BackgroundFetchOptions& options,
- const FetchCallback& callback) {
+void BackgroundFetchServiceImpl::Fetch(
+ int64_t service_worker_registration_id,
+ const std::string& tag,
+ const std::vector<ServiceWorkerFetchRequest>& requests,
+ const BackgroundFetchOptions& options,
+ const FetchCallback& callback) {
DCHECK_CURRENTLY_ON(BrowserThread::IO);
// TODO(peter): Create a new job with the BackgroundFetchContext for the
- // given tag, requests and options. For now we return a registration that's
- // based on the given |options|, to make sure round-trip is covered.
+ // given |tag|, |requests| and |options|. For now we return a registration
+ // that's based on the given |options|, to make sure round-trip is covered.
BackgroundFetchRegistration registration;
registration.tag = tag;

Powered by Google App Engine
This is Rietveld 408576698