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

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

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
« no previous file with comments | « no previous file | content/browser/background_fetch/background_fetch_service_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/background_fetch/background_fetch_service_impl.h
diff --git a/content/browser/background_fetch/background_fetch_service_impl.h b/content/browser/background_fetch/background_fetch_service_impl.h
index 17f8423081eaa275819f6bcae8b293e887e541aa..de6299b8c5cc9ee7dd51b3371bd464b4d033d181 100644
--- a/content/browser/background_fetch/background_fetch_service_impl.h
+++ b/content/browser/background_fetch/background_fetch_service_impl.h
@@ -13,6 +13,10 @@
#include "base/memory/ref_counted.h"
#include "third_party/WebKit/public/platform/modules/background_fetch/background_fetch.mojom.h"
+namespace url {
+class Origin;
+}
+
namespace content {
class BackgroundFetchContext;
@@ -33,20 +37,25 @@ class BackgroundFetchServiceImpl : public blink::mojom::BackgroundFetchService {
// blink::mojom::BackgroundFetchService implementation.
void Fetch(int64_t service_worker_registration_id,
+ const url::Origin& origin,
const std::string& tag,
const BackgroundFetchOptions& options,
const FetchCallback& callback) override;
void UpdateUI(int64_t service_worker_registration_id,
+ const url::Origin& origin,
const std::string& tag,
const std::string& title,
const UpdateUICallback& callback) override;
void Abort(int64_t service_worker_registration_id,
+ const url::Origin& origin,
const std::string& tag,
const AbortCallback& callback) override;
void GetRegistration(int64_t service_worker_registration_id,
+ const url::Origin& origin,
const std::string& tag,
const GetRegistrationCallback& callback) override;
void GetTags(int64_t service_worker_registration_id,
+ const url::Origin& origin,
const GetTagsCallback& callback) override;
private:
« no previous file with comments | « no previous file | content/browser/background_fetch/background_fetch_service_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698