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

Unified Diff: Source/modules/serviceworkers/FetchEvent.h

Issue 1099073002: Introducing FetchEventInit Dictionary. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 8 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
« no previous file with comments | « Source/modules/modules.gypi ('k') | Source/modules/serviceworkers/FetchEvent.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/serviceworkers/FetchEvent.h
diff --git a/Source/modules/serviceworkers/FetchEvent.h b/Source/modules/serviceworkers/FetchEvent.h
index 4c4d4b27701e03d19cbc3516ab1757c43dc46f5d..5bc1d55fa0f18b9e6290a504f215ab60c4be841f 100644
--- a/Source/modules/serviceworkers/FetchEvent.h
+++ b/Source/modules/serviceworkers/FetchEvent.h
@@ -7,6 +7,8 @@
#include "modules/EventModules.h"
#include "modules/fetch/Request.h"
+#include "modules/serviceworkers/ExtendableEvent.h"
+#include "modules/serviceworkers/FetchEventInit.h"
#include "modules/serviceworkers/RespondWithObserver.h"
#include "platform/heap/Handle.h"
@@ -19,11 +21,12 @@ class RespondWithObserver;
// A fetch event is dispatched by the client to a service worker's script
// context. RespondWithObserver can be used to notify the client about the
// service worker's response.
-class FetchEvent final : public Event {
+class FetchEvent final : public ExtendableEvent {
DEFINE_WRAPPERTYPEINFO();
public:
static PassRefPtrWillBeRawPtr<FetchEvent> create();
- static PassRefPtrWillBeRawPtr<FetchEvent> create(RespondWithObserver*, Request*);
+ static PassRefPtrWillBeRawPtr<FetchEvent> create(const AtomicString& type, FetchEventInit&);
+ static PassRefPtrWillBeRawPtr<FetchEvent> create(const AtomicString& type, FetchEventInit&, RespondWithObserver*);
Request* request() const;
bool isReload() const;
@@ -32,13 +35,11 @@ public:
virtual const AtomicString& interfaceName() const override;
- void setIsReload(bool);
-
DECLARE_VIRTUAL_TRACE();
protected:
FetchEvent();
- FetchEvent(RespondWithObserver*, Request*);
+ FetchEvent(const AtomicString& type, const FetchEventInit&, RespondWithObserver*);
private:
PersistentWillBeMember<RespondWithObserver> m_observer;
« no previous file with comments | « Source/modules/modules.gypi ('k') | Source/modules/serviceworkers/FetchEvent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698