| 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 e52725ed443ed924cf168d1a99fd14afabfb322e..a59dd784e4e961ad1191fe4de01bf9c24f69995d 100644
|
| --- a/third_party/WebKit/Source/modules/background_fetch/BackgroundFetchManager.h
|
| +++ b/third_party/WebKit/Source/modules/background_fetch/BackgroundFetchManager.h
|
| @@ -9,11 +9,15 @@
|
| #include "bindings/core/v8/ScriptWrappable.h"
|
| #include "platform/heap/GarbageCollected.h"
|
| #include "platform/heap/Handle.h"
|
| +#include "public/platform/modules/background_fetch/background_fetch.mojom-blink.h"
|
|
|
| namespace blink {
|
|
|
| +class BackgroundFetchBridge;
|
| class BackgroundFetchOptions;
|
| +class BackgroundFetchRegistration;
|
| class RequestOrUSVString;
|
| +class ScriptPromiseResolver;
|
| class ScriptState;
|
| class ServiceWorkerRegistration;
|
|
|
| @@ -32,10 +36,10 @@ class BackgroundFetchManager final
|
|
|
| // Web Exposed methods defined in the IDL file.
|
| ScriptPromise fetch(ScriptState*,
|
| - String tag,
|
| + const String& tag,
|
| HeapVector<RequestOrUSVString> requests,
|
| const BackgroundFetchOptions&);
|
| - ScriptPromise get(ScriptState*, String tag);
|
| + ScriptPromise get(ScriptState*, const String& tag);
|
| ScriptPromise getTags(ScriptState*);
|
|
|
| DECLARE_TRACE();
|
| @@ -43,7 +47,15 @@ class BackgroundFetchManager final
|
| private:
|
| explicit BackgroundFetchManager(ServiceWorkerRegistration*);
|
|
|
| + void didGetRegistration(ScriptPromiseResolver*,
|
| + mojom::blink::BackgroundFetchError,
|
| + BackgroundFetchRegistration*);
|
| + void didGetTags(ScriptPromiseResolver*,
|
| + mojom::blink::BackgroundFetchError,
|
| + const Vector<String>& tags);
|
| +
|
| Member<ServiceWorkerRegistration> m_registration;
|
| + Member<BackgroundFetchBridge> m_bridge;
|
| };
|
|
|
| } // namespace blink
|
|
|