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

Side by Side Diff: third_party/WebKit/public/platform/modules/background_fetch/background_fetch.mojom

Issue 2762303002: Enable transmitting Fetch Requests over Mojo (Closed)
Patch Set: Enable transmitting Fetch Requests over Mojo Created 3 years, 8 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 unified diff | Download patch
OLDNEW
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 "third_party/WebKit/public/platform/modules/fetch/fetch_api_request.mojom ";
7 import "url/mojo/origin.mojom"; 8 import "url/mojo/origin.mojom";
8 9
9 enum BackgroundFetchError { 10 enum BackgroundFetchError {
10 NONE, 11 NONE,
11 DUPLICATED_TAG, 12 DUPLICATED_TAG,
12 INVALID_ARGUMENT, 13 INVALID_ARGUMENT,
13 INVALID_TAG 14 INVALID_TAG
14 }; 15 };
15 16
16 // Represents the definition of an icon developers can optionally provide with a 17 // Represents the definition of an icon developers can optionally provide with a
(...skipping 23 matching lines...) Expand all
40 int64 total_download_size; 41 int64 total_download_size;
41 string title; 42 string title;
42 }; 43 };
43 44
44 interface BackgroundFetchService { 45 interface BackgroundFetchService {
45 // Creates a new Background Fetch registration identified by |tag| with the 46 // Creates a new Background Fetch registration identified by |tag| with the
46 // given |options| for the sequence of |requests|. 47 // given |options| for the sequence of |requests|.
47 Fetch(int64 service_worker_registration_id, 48 Fetch(int64 service_worker_registration_id,
48 url.mojom.Origin origin, 49 url.mojom.Origin origin,
49 string tag, 50 string tag,
51 array<FetchAPIRequest> requests,
50 BackgroundFetchOptions options) 52 BackgroundFetchOptions options)
51 => (BackgroundFetchError error, 53 => (BackgroundFetchError error,
52 BackgroundFetchRegistration? registration); 54 BackgroundFetchRegistration? registration);
53 55
54 // Updates the user interface for the Background Fetch identified by the 56 // Updates the user interface for the Background Fetch identified by the
55 // |service_worker_registration_id| and the |tag|. 57 // |service_worker_registration_id| and the |tag|.
56 UpdateUI(int64 service_worker_registration_id, 58 UpdateUI(int64 service_worker_registration_id,
57 url.mojom.Origin origin, 59 url.mojom.Origin origin,
58 string tag, 60 string tag,
59 string title) 61 string title)
(...skipping 13 matching lines...) Expand all
73 string tag) 75 string tag)
74 => (BackgroundFetchError error, 76 => (BackgroundFetchError error,
75 BackgroundFetchRegistration? registration); 77 BackgroundFetchRegistration? registration);
76 78
77 // Gets the sequence of tags for active Background Fetch registrations given 79 // Gets the sequence of tags for active Background Fetch registrations given
78 // the |service_worker_registration_id|. 80 // the |service_worker_registration_id|.
79 GetTags(int64 service_worker_registration_id, url.mojom.Origin origin) 81 GetTags(int64 service_worker_registration_id, url.mojom.Origin origin)
80 => (BackgroundFetchError error, 82 => (BackgroundFetchError error,
81 array<string> tags); 83 array<string> tags);
82 }; 84 };
OLDNEW
« no previous file with comments | « third_party/WebKit/public/BUILD.gn ('k') | third_party/WebKit/public/platform/modules/fetch/FetchAPIRequest.typemap » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698