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

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

Issue 2025143003: [Fetch API] Request's JS wrapper should be kept alive in FetchEvent (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 d8c6b81f80a026a65d21153753168502b8220427..257bc58b0b31a3f06a5fb12a4efd819ddcf75cd1 100644
--- a/third_party/WebKit/Source/modules/serviceworkers/ForeignFetchEvent.h
+++ b/third_party/WebKit/Source/modules/serviceworkers/ForeignFetchEvent.h
@@ -26,8 +26,8 @@ class MODULES_EXPORT ForeignFetchEvent final : public ExtendableEvent {
DEFINE_WRAPPERTYPEINFO();
public:
static ForeignFetchEvent* create();
- static ForeignFetchEvent* create(const AtomicString& type, const ForeignFetchEventInit&);
- static ForeignFetchEvent* create(const AtomicString& type, const ForeignFetchEventInit&, ForeignFetchRespondWithObserver*);
+ static ForeignFetchEvent* create(ScriptState*, const AtomicString& type, const ForeignFetchEventInit&);
+ static ForeignFetchEvent* create(ScriptState*, const AtomicString& type, const ForeignFetchEventInit&, ForeignFetchRespondWithObserver*);
Request* request() const;
String origin() const;
@@ -40,7 +40,7 @@ public:
protected:
ForeignFetchEvent();
- ForeignFetchEvent(const AtomicString& type, const ForeignFetchEventInit&, ForeignFetchRespondWithObserver*);
+ ForeignFetchEvent(ScriptState*, const AtomicString& type, const ForeignFetchEventInit&, ForeignFetchRespondWithObserver*);
private:
Member<ForeignFetchRespondWithObserver> m_observer;

Powered by Google App Engine
This is Rietveld 408576698