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

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

Issue 2775923002: Add origins to the Background Fetch Mojo calls. (Closed)
Patch Set: 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..582827e4c4da1b7ced6d64310ccd89142f78bcf7 100644
--- a/content/browser/background_fetch/background_fetch_service_impl.cc
+++ b/content/browser/background_fetch/background_fetch_service_impl.cc
@@ -12,6 +12,7 @@
#include "content/common/background_fetch/background_fetch_types.h"
#include "content/public/browser/browser_thread.h"
#include "mojo/public/cpp/bindings/strong_binding.h"
+#include "url/origin.h"
namespace content {
@@ -39,6 +40,7 @@ BackgroundFetchServiceImpl::BackgroundFetchServiceImpl(
BackgroundFetchServiceImpl::~BackgroundFetchServiceImpl() = default;
void BackgroundFetchServiceImpl::Fetch(int64_t service_worker_registration_id,
+ const url::Origin& origin,
const std::string& tag,
const BackgroundFetchOptions& options,
const FetchCallback& callback) {
@@ -59,6 +61,7 @@ void BackgroundFetchServiceImpl::Fetch(int64_t service_worker_registration_id,
void BackgroundFetchServiceImpl::UpdateUI(
int64_t service_worker_registration_id,
+ const url::Origin& origin,
const std::string& tag,
const std::string& title,
const UpdateUICallback& callback) {
@@ -71,6 +74,7 @@ void BackgroundFetchServiceImpl::UpdateUI(
}
void BackgroundFetchServiceImpl::Abort(int64_t service_worker_registration_id,
+ const url::Origin& origin,
const std::string& tag,
const AbortCallback& callback) {
DCHECK_CURRENTLY_ON(BrowserThread::IO);
@@ -83,6 +87,7 @@ void BackgroundFetchServiceImpl::Abort(int64_t service_worker_registration_id,
void BackgroundFetchServiceImpl::GetRegistration(
int64_t service_worker_registration_id,
+ const url::Origin& origin,
const std::string& tag,
const GetRegistrationCallback& callback) {
DCHECK_CURRENTLY_ON(BrowserThread::IO);
@@ -95,6 +100,7 @@ void BackgroundFetchServiceImpl::GetRegistration(
}
void BackgroundFetchServiceImpl::GetTags(int64_t service_worker_registration_id,
+ const url::Origin& origin,
const GetTagsCallback& callback) {
DCHECK_CURRENTLY_ON(BrowserThread::IO);

Powered by Google App Engine
This is Rietveld 408576698