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

Unified Diff: third_party/WebKit/Source/modules/serviceworkers/FetchEvent.cpp

Issue 2715663002: ServiceWorker: Factor out FetchEvent related logics from RespondWithObserver. (Closed)
Patch Set: ServiceWorker: Factor out FetchEvent related logics from RespondWithObserver. Created 3 years, 9 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: third_party/WebKit/Source/modules/serviceworkers/FetchEvent.cpp
diff --git a/third_party/WebKit/Source/modules/serviceworkers/FetchEvent.cpp b/third_party/WebKit/Source/modules/serviceworkers/FetchEvent.cpp
index 8f4f9a01776170ab3cd3d5a5a4dedf2b40072320..9d394618e8f5b7ecd4e5e3cf2349167c631688aa 100644
--- a/third_party/WebKit/Source/modules/serviceworkers/FetchEvent.cpp
+++ b/third_party/WebKit/Source/modules/serviceworkers/FetchEvent.cpp
@@ -10,6 +10,7 @@
#include "modules/fetch/BytesConsumerForDataConsumerHandle.h"
#include "modules/fetch/Request.h"
#include "modules/fetch/Response.h"
+#include "modules/serviceworkers/FetchRespondWithObserver.h"
#include "modules/serviceworkers/ServiceWorkerError.h"
#include "modules/serviceworkers/ServiceWorkerGlobalScope.h"
#include "public/platform/WebURLResponse.h"
@@ -29,7 +30,7 @@ FetchEvent* FetchEvent::create(ScriptState* scriptState,
FetchEvent* FetchEvent::create(ScriptState* scriptState,
const AtomicString& type,
const FetchEventInit& initializer,
- RespondWithObserver* respondWithObserver,
+ FetchRespondWithObserver* respondWithObserver,
WaitUntilObserver* waitUntilObserver,
bool navigationPreloadSent) {
return new FetchEvent(scriptState, type, initializer, respondWithObserver,
@@ -67,7 +68,7 @@ const AtomicString& FetchEvent::interfaceName() const {
FetchEvent::FetchEvent(ScriptState* scriptState,
const AtomicString& type,
const FetchEventInit& initializer,
- RespondWithObserver* respondWithObserver,
+ FetchRespondWithObserver* respondWithObserver,
WaitUntilObserver* waitUntilObserver,
bool navigationPreloadSent)
: ExtendableEvent(type, initializer, waitUntilObserver),

Powered by Google App Engine
This is Rietveld 408576698