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

Side by Side Diff: third_party/WebKit/Source/modules/background_fetch/BackgroundFetchManager.idl

Issue 2758493003: Support the full `request` attribute types for the BGFetchManager.fetch() (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 unified diff | Download patch
« no previous file with comments | « third_party/WebKit/Source/modules/background_fetch/BackgroundFetchManager.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 // https://wicg.github.io/background-fetch/#background-fetch-manager 5 // https://wicg.github.io/background-fetch/#background-fetch-manager
6 6
7 [ 7 [
8 Exposed=(Window,Worker), 8 Exposed=(Window,Worker),
9 RuntimeEnabled=BackgroundFetch 9 RuntimeEnabled=BackgroundFetch
10 ] interface BackgroundFetchManager { 10 ] interface BackgroundFetchManager {
11 // TODO(peter): The `requests` argument of `fetch()` should accept either an 11 [CallWith=ScriptState] Promise<BackgroundFetchRegistration> fetch(DOMString tag, (RequestInfo or sequence<RequestInfo>) requests, optional BackgroundFetchOp tions options);
12 // individual RequestInfo, or a sequence of them.
13 [CallWith=ScriptState] Promise<BackgroundFetchRegistration> fetch(DOMString tag, sequence<RequestInfo> requests, optional BackgroundFetchOptions options);
14
15 [CallWith=ScriptState] Promise<BackgroundFetchRegistration?> get(DOMString t ag); 12 [CallWith=ScriptState] Promise<BackgroundFetchRegistration?> get(DOMString t ag);
16 [CallWith=ScriptState] Promise<FrozenArray<DOMString>> getTags(); 13 [CallWith=ScriptState] Promise<FrozenArray<DOMString>> getTags();
17 }; 14 };
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/background_fetch/BackgroundFetchManager.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698