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

Unified Diff: third_party/WebKit/Source/modules/serviceworkers/ForeignFetchEvent.h

Issue 2034663002: ServiceWorker: Keep the worker alive until FetchEvent.waitUntil settles (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 6 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/serviceworkers/ForeignFetchEvent.h
diff --git a/third_party/WebKit/Source/modules/serviceworkers/ForeignFetchEvent.h b/third_party/WebKit/Source/modules/serviceworkers/ForeignFetchEvent.h
index 257bc58b0b31a3f06a5fb12a4efd819ddcf75cd1..2e9a2a9b611393cb6eddae37ed2f036d0f3b6381 100644
--- a/third_party/WebKit/Source/modules/serviceworkers/ForeignFetchEvent.h
+++ b/third_party/WebKit/Source/modules/serviceworkers/ForeignFetchEvent.h
@@ -12,6 +12,7 @@
#include "modules/serviceworkers/ExtendableEvent.h"
#include "modules/serviceworkers/ForeignFetchEventInit.h"
#include "modules/serviceworkers/ForeignFetchRespondWithObserver.h"
+#include "modules/serviceworkers/WaitUntilObserver.h"
#include "platform/heap/Handle.h"
namespace blink {
@@ -27,7 +28,7 @@ class MODULES_EXPORT ForeignFetchEvent final : public ExtendableEvent {
public:
static ForeignFetchEvent* create();
static ForeignFetchEvent* create(ScriptState*, const AtomicString& type, const ForeignFetchEventInit&);
- static ForeignFetchEvent* create(ScriptState*, const AtomicString& type, const ForeignFetchEventInit&, ForeignFetchRespondWithObserver*);
+ static ForeignFetchEvent* create(ScriptState*, const AtomicString& type, const ForeignFetchEventInit&, ForeignFetchRespondWithObserver*, WaitUntilObserver*);
Request* request() const;
String origin() const;
@@ -40,7 +41,7 @@ public:
protected:
ForeignFetchEvent();
- ForeignFetchEvent(ScriptState*, const AtomicString& type, const ForeignFetchEventInit&, ForeignFetchRespondWithObserver*);
+ ForeignFetchEvent(ScriptState*, const AtomicString& type, const ForeignFetchEventInit&, ForeignFetchRespondWithObserver*, WaitUntilObserver*);
private:
Member<ForeignFetchRespondWithObserver> m_observer;

Powered by Google App Engine
This is Rietveld 408576698