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

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

Issue 2774343002: Hook up BackgroundFetchServiceImpl::Fetch() to start a fetch (Closed)
Patch Set: rebase 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 "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
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 };
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/background_fetch/BackgroundFetchedEvent.cpp ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698