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

Unified Diff: third_party/WebKit/Source/modules/background_fetch/BackgroundFetchManager.h

Issue 2745543002: Implement BackgroundFetchManager::{get, fetch}() (Closed)
Patch Set: more webexposed tests 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/modules/background_fetch/BackgroundFetchManager.h
diff --git a/third_party/WebKit/Source/modules/background_fetch/BackgroundFetchManager.h b/third_party/WebKit/Source/modules/background_fetch/BackgroundFetchManager.h
index 67d18198a0b02d4b373a60c410eb68a1c0a777f3..e52725ed443ed924cf168d1a99fd14afabfb322e 100644
--- a/third_party/WebKit/Source/modules/background_fetch/BackgroundFetchManager.h
+++ b/third_party/WebKit/Source/modules/background_fetch/BackgroundFetchManager.h
@@ -12,6 +12,8 @@
namespace blink {
+class BackgroundFetchOptions;
+class RequestOrUSVString;
class ScriptState;
class ServiceWorkerRegistration;
@@ -28,6 +30,12 @@ class BackgroundFetchManager final
return new BackgroundFetchManager(registration);
}
+ // Web Exposed methods defined in the IDL file.
+ ScriptPromise fetch(ScriptState*,
+ String tag,
+ HeapVector<RequestOrUSVString> requests,
+ const BackgroundFetchOptions&);
+ ScriptPromise get(ScriptState*, String tag);
ScriptPromise getTags(ScriptState*);
DECLARE_TRACE();

Powered by Google App Engine
This is Rietveld 408576698