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

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

Issue 587213003: [ServiceWorker] Plumbing the request mode from the renderer to the ServiceWorker. [1/2 blink] (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: git cl format Created 6 years, 3 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: Source/modules/serviceworkers/RespondWithObserver.h
diff --git a/Source/modules/serviceworkers/RespondWithObserver.h b/Source/modules/serviceworkers/RespondWithObserver.h
index 372a97b115519cfa62a4cf54846472986c8c9b9b..ec26c3c3fc3fb0a1452c4f271ca8316aca69effe 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::FetchRequestMode);
virtual void contextDestroyed() OVERRIDE;
@@ -40,9 +41,10 @@ public:
private:
class ThenFunction;
- RespondWithObserver(ExecutionContext*, int eventID);
+ RespondWithObserver(ExecutionContext*, int eventID, WebURLRequest::FetchRequestMode);
int m_eventID;
+ WebURLRequest::FetchRequestMode m_requestMode;
enum State { Initial, Pending, Done };
State m_state;
« no previous file with comments | « Source/modules/serviceworkers/FetchRequestData.cpp ('k') | Source/modules/serviceworkers/RespondWithObserver.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698