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

Unified Diff: third_party/WebKit/public/platform/modules/background_fetch/background_fetch.mojom

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 | « third_party/WebKit/Source/modules/background_fetch/BackgroundFetchBridge.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/public/platform/modules/background_fetch/background_fetch.mojom
diff --git a/third_party/WebKit/public/platform/modules/background_fetch/background_fetch.mojom b/third_party/WebKit/public/platform/modules/background_fetch/background_fetch.mojom
index da50934a03af1d7984c571ba7cbc80057fb508c8..2ed9ea493ca435cb8cd691ed9218d5d7e904381f 100644
--- a/third_party/WebKit/public/platform/modules/background_fetch/background_fetch.mojom
+++ b/third_party/WebKit/public/platform/modules/background_fetch/background_fetch.mojom
@@ -4,6 +4,8 @@
module blink.mojom;
+import "url/mojo/origin.mojom";
+
enum BackgroundFetchError {
NONE,
DUPLICATED_TAG,
@@ -42,6 +44,7 @@ interface BackgroundFetchService {
// Creates a new Background Fetch registration identified by |tag| with the
// given |options| for the sequence of |requests|.
Fetch(int64 service_worker_registration_id,
+ url.mojom.Origin origin,
string tag,
BackgroundFetchOptions options)
=> (BackgroundFetchError error,
@@ -49,23 +52,30 @@ interface BackgroundFetchService {
// Updates the user interface for the Background Fetch identified by the
// |service_worker_registration_id| and the |tag|.
- UpdateUI(int64 service_worker_registration_id, string tag, string title)
+ UpdateUI(int64 service_worker_registration_id,
+ url.mojom.Origin origin,
+ string tag,
+ string title)
=> (BackgroundFetchError error);
// Aborts the Background Fetch registration identified by the
// |service_worker_registration_id| and the |tag|.
- Abort(int64 service_worker_registration_id, string tag)
+ Abort(int64 service_worker_registration_id,
+ url.mojom.Origin origin,
+ string tag)
=> (BackgroundFetchError error);
// Gets the Background Fetch registration identified by the
// |service_worker_registration_id| and the |tag|.
- GetRegistration(int64 service_worker_registration_id, string tag)
+ GetRegistration(int64 service_worker_registration_id,
+ url.mojom.Origin origin,
+ string tag)
=> (BackgroundFetchError error,
BackgroundFetchRegistration? registration);
// Gets the sequence of tags for active Background Fetch registrations given
// the |service_worker_registration_id|.
- GetTags(int64 service_worker_registration_id)
+ GetTags(int64 service_worker_registration_id, url.mojom.Origin origin)
=> (BackgroundFetchError error,
array<string> tags);
};
« no previous file with comments | « third_party/WebKit/Source/modules/background_fetch/BackgroundFetchBridge.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698