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

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

Issue 1079073003: 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..70f48f2b2db6a91571477d95c11e2ec2f8a3ca12 100644
--- a/Source/modules/serviceworkers/FetchEvent.h
+++ b/Source/modules/serviceworkers/FetchEvent.h
@@ -7,6 +7,7 @@
#include "modules/EventModules.h"
#include "modules/fetch/Request.h"
+#include "modules/serviceworkers/FetchEventInit.h"
#include "modules/serviceworkers/RespondWithObserver.h"
#include "platform/heap/Handle.h"
@@ -23,7 +24,8 @@ class FetchEvent final : public Event {
DEFINE_WRAPPERTYPEINFO();
public:
static PassRefPtrWillBeRawPtr<FetchEvent> create();
- static PassRefPtrWillBeRawPtr<FetchEvent> create(RespondWithObserver*, Request*);
+ static PassRefPtrWillBeRawPtr<FetchEvent> create(const AtomicString& type, const FetchEventInit&);
+ static PassRefPtrWillBeRawPtr<FetchEvent> create(const AtomicString& type, const FetchEventInit&, RespondWithObserver*);
Request* request() const;
bool isReload() const;
@@ -32,13 +34,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