| Index: Source/modules/serviceworkers/RespondWithObserver.h
|
| diff --git a/Source/modules/serviceworkers/RespondWithObserver.h b/Source/modules/serviceworkers/RespondWithObserver.h
|
| index 372a97b115519cfa62a4cf54846472986c8c9b9b..b3a279b7b2e877cc888e549d34e5cd63b23f4d35 100644
|
| --- a/Source/modules/serviceworkers/RespondWithObserver.h
|
| +++ b/Source/modules/serviceworkers/RespondWithObserver.h
|
| @@ -7,6 +7,7 @@
|
|
|
| #include "core/dom/ContextLifecycleObserver.h"
|
| #include "platform/heap/Handle.h"
|
| +#include "public/platform/WebURLRequest.h"
|
| #include "wtf/Forward.h"
|
| #include "wtf/RefCounted.h"
|
|
|
| @@ -22,7 +23,7 @@ class ScriptValue;
|
| // notifies the client.
|
| class RespondWithObserver FINAL : public GarbageCollectedFinalized<RespondWithObserver>, public ContextLifecycleObserver {
|
| public:
|
| - static RespondWithObserver* create(ExecutionContext*, int eventID);
|
| + static RespondWithObserver* create(ExecutionContext*, int eventID, WebURLRequest::ServiceWorkerRequestMode);
|
|
|
| virtual void contextDestroyed() OVERRIDE;
|
|
|
| @@ -40,9 +41,10 @@ public:
|
| private:
|
| class ThenFunction;
|
|
|
| - RespondWithObserver(ExecutionContext*, int eventID);
|
| + RespondWithObserver(ExecutionContext*, int eventID, WebURLRequest::ServiceWorkerRequestMode);
|
|
|
| int m_eventID;
|
| + WebURLRequest::ServiceWorkerRequestMode m_requestMode;
|
|
|
| enum State { Initial, Pending, Done };
|
| State m_state;
|
|
|