Chromium Code Reviews| Index: Source/modules/serviceworkers/FetchEvent.h |
| diff --git a/Source/modules/serviceworkers/FetchEvent.h b/Source/modules/serviceworkers/FetchEvent.h |
| index 4c4d4b27701e03d19cbc3516ab1757c43dc46f5d..0086658d3d3ce8802bde5aa51f16bb647e5a400c 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,12 @@ public: |
| virtual const AtomicString& interfaceName() const override; |
| - void setIsReload(bool); |
| - |
| DECLARE_VIRTUAL_TRACE(); |
| protected: |
| FetchEvent(); |
| - FetchEvent(RespondWithObserver*, Request*); |
| + FetchEvent(const AtomicString& type, const FetchEventInit&); |
|
tkent
2015/04/20 23:31:41
Remove this constructor. We can use |new FetchEve
Paritosh Kumar
2015/04/21 05:37:14
Ah not required. Removed. Thanks.
|
| + FetchEvent(const AtomicString& type, const FetchEventInit&, RespondWithObserver*); |
| private: |
| PersistentWillBeMember<RespondWithObserver> m_observer; |