OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 module blink.mojom; | 5 module blink.mojom; |
6 | 6 |
7 import "url/mojo/origin.mojom"; | 7 import "url/mojo/origin.mojom"; |
8 | 8 |
9 enum BackgroundFetchError { | 9 enum BackgroundFetchError { |
10 NONE, | 10 NONE, |
11 DUPLICATED_TAG, | 11 DUPLICATED_TAG, |
| 12 INVALID_ARGUMENT, |
12 INVALID_TAG | 13 INVALID_TAG |
13 }; | 14 }; |
14 | 15 |
15 // Represents the definition of an icon developers can optionally provide with a | 16 // Represents the definition of an icon developers can optionally provide with a |
16 // Background Fetch fetch. Analogous to the following structure in the spec: | 17 // Background Fetch fetch. Analogous to the following structure in the spec: |
17 // https://wicg.github.io/background-fetch/#background-fetch-manager | 18 // https://wicg.github.io/background-fetch/#background-fetch-manager |
18 struct IconDefinition { | 19 struct IconDefinition { |
19 string src; | 20 string src; |
20 string sizes; | 21 string sizes; |
21 string type; | 22 string type; |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 string tag) | 73 string tag) |
73 => (BackgroundFetchError error, | 74 => (BackgroundFetchError error, |
74 BackgroundFetchRegistration? registration); | 75 BackgroundFetchRegistration? registration); |
75 | 76 |
76 // Gets the sequence of tags for active Background Fetch registrations given | 77 // Gets the sequence of tags for active Background Fetch registrations given |
77 // the |service_worker_registration_id|. | 78 // the |service_worker_registration_id|. |
78 GetTags(int64 service_worker_registration_id, url.mojom.Origin origin) | 79 GetTags(int64 service_worker_registration_id, url.mojom.Origin origin) |
79 => (BackgroundFetchError error, | 80 => (BackgroundFetchError error, |
80 array<string> tags); | 81 array<string> tags); |
81 }; | 82 }; |
OLD | NEW |