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

Unified Diff: third_party/WebKit/Source/modules/serviceworkers/FetchEvent.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/FetchEvent.h
diff --git a/third_party/WebKit/Source/modules/serviceworkers/FetchEvent.h b/third_party/WebKit/Source/modules/serviceworkers/FetchEvent.h
index 57dd18156669b07a85e8251fd6d32ca622e81a62..74e7b964a2a57d98481fc392f76311a0cf9c674d 100644
--- a/third_party/WebKit/Source/modules/serviceworkers/FetchEvent.h
+++ b/third_party/WebKit/Source/modules/serviceworkers/FetchEvent.h
@@ -12,6 +12,7 @@
#include "modules/serviceworkers/ExtendableEvent.h"
#include "modules/serviceworkers/FetchEventInit.h"
#include "modules/serviceworkers/RespondWithObserver.h"
+#include "modules/serviceworkers/WaitUntilObserver.h"
#include "platform/heap/Handle.h"
namespace blink {
@@ -28,7 +29,7 @@ class MODULES_EXPORT FetchEvent final : public ExtendableEvent {
public:
static FetchEvent* create();
static FetchEvent* create(ScriptState*, const AtomicString& type, const FetchEventInit&);
- static FetchEvent* create(ScriptState*, const AtomicString& type, const FetchEventInit&, RespondWithObserver*);
+ static FetchEvent* create(ScriptState*, const AtomicString& type, const FetchEventInit&, RespondWithObserver*, WaitUntilObserver*);
Request* request() const;
String clientId() const;
@@ -42,7 +43,7 @@ public:
protected:
FetchEvent();
- FetchEvent(ScriptState*, const AtomicString& type, const FetchEventInit&, RespondWithObserver*);
+ FetchEvent(ScriptState*, const AtomicString& type, const FetchEventInit&, RespondWithObserver*, WaitUntilObserver*);
private:
Member<RespondWithObserver> m_observer;

Powered by Google App Engine
This is Rietveld 408576698