| 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);
|
| };
|
|
|